Page 6 of 7

I guess i found the

Posted: 01 Jun 2008, 12:30
by ifritz
I guess i found the error. It's <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or
g/TR/xhtml1/DTD/xhtml1-transitional.dtd">

in your index.php.
For some reason i deleted it.
Can you confirm that?!?

what to confirm? I d

Posted: 01 Jun 2008, 21:18
by Jan
what to confirm? I didn't test it without doctype, so if ti works for you, everything is ok...

Jan

Re: Modal popup box does not work

Posted: 26 Aug 2008, 15:10
by fvdb06
Hello everybody,

I have the same problems, The Modal Pop-up opens in a full window and the close button doesn't work!

Can anybody tell me what Jan means with :shock: : please change the modal box window to standard javascript window in parameters - component in menu link and let me know if this work.

ThankX

Re: Modal popup box does not work

Posted: 26 Aug 2008, 16:18
by caro84g
Hi,
Can anybody tell me what Jan means with : please change the modal box window to standard javascript window in parameters - component in menu link and let me know if this work.
if you created a menu-link,
then in menu >> your menu >> your phocagallery link >> component parameters (second box on the right side) you can choose the parameter detail window. Select standard pop-up window instead of modal popup.

if you're using the plugin in an article
add/change the following in the code (so add the detail parameter)
{phocagallery view=####|#####|detail=1|#####}

So change de detail-parameter.

Good luck!

Carolien

P.S. try it with the standard Joomla! template (rhuk_milkyway)

Re: Modal popup box does not work

Posted: 02 May 2009, 23:30
by xpla
Could someone pls tell me where exactly phocagallery loads modal.js from the J1.5 Framework? I want to modify it to load a copy of it with changed parameters but i can't find the file where the modal.js is loaded.

Re: Modal popup box does not work

Posted: 03 May 2009, 22:19
by Jan
Hi, search for this code in phoca gallery files:
JHTML::_('behavior.modal', '...');

e.g.:
JHTML::_('behavior.modal', 'a.modal-button');

Re: Modal popup box does not work

Posted: 25 Sep 2009, 18:36
by BMOD
Hallo,

I got an selfmade-template, and the modalbox isn't workin.

I tried it with rhuk_milkyway and it works with this template.

When I'm logged in in the frontend, the modalbox works.

In the index.php I found the following code:

Code: Select all

	<?php
		$user =& JFactory::getUser();
		if ($user->get('guest') == 1) {
			$headerstuff = $this->getHeadData();
			$headerstuff['scripts'] = array();
			$this->setHeadData($headerstuff);
		} 
		
		if($my->id)
		{
			if(isset($_REQUEST['task']) && ($_REQUEST['task'] == 'edit' || $_REQUEST['task'] == 'new'))
			{
				initEditor();	
			}
		}
    ?>	
Is it possible that this if-twig (if ($user->get('guest') == 1) ) is the problem?

If you want, you can find the template in this zip-file http://ju-bayern.de/data/JU_Homepagebau ... 202009.zip and it is called tmpl_junge_union.zip

Perhaps you can tell me whats the problem.

Otherwise can you tell me where shoud I search for the problem? In the index.php or in the css-files?

Thank you very much
BMOD

Edit: I just recognized, that the Firefox-Webdeveloper-Toolbar alarts the following mistake:
mistake: window.addEvent is not a function
file: http://localhost/joomla/index.php/bilder
line: 18

and this is the code around the mistake

Code: Select all

  <script type="text/javascript">

		window.addEvent('domready', function() {

			SqueezeBox.initialize({});

			$$('a.modal-button').each(function(el) {
				el.addEvent('click', function(e) {
					new Event(e).stop();
					SqueezeBox.fromElement(el);
				});
			});
		});
  </script>
And when I'm logged in, there is no mistake.

Re: Modal popup box does not work

Posted: 30 Sep 2009, 14:52
by BMOD
I changed to standard javascript window and it worked well.

I have upwnloaded the website to http://www.ju-weingarts.de/ju and modal box window is activated.

Thank you

BMOD

Re: Modal popup box does not work

Posted: 30 Sep 2009, 16:34
by Jan
Ok

Re: Modal popup box does not work

Posted: 06 Dec 2012, 22:40
by psychohamster
Okay, so I had this problem... and I found out what was going on.
I had the plug in
AntiCopy
And the option "No framing" was disallowing the framing modal image.