Modal popup box does not work

Phoca Gallery plugins - plugins for Phoca Gallery extension
ifritz
Phoca Member
Phoca Member
Posts: 13
Joined: 29 May 2008, 23:58

I guess i found the

Post 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?!?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

what to confirm? I d

Post by Jan »

what to confirm? I didn't test it without doctype, so if ti works for you, everything is ok...

Jan
If you find Phoca extensions useful, please support the project
fvdb06
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 26 Aug 2008, 14:33

Re: Modal popup box does not work

Post 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
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: Modal popup box does not work

Post 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)
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
xpla
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 14 Mar 2009, 21:38

Re: Modal popup box does not work

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Modal popup box does not work

Post by Jan »

Hi, search for this code in phoca gallery files:
JHTML::_('behavior.modal', '...');

e.g.:
JHTML::_('behavior.modal', 'a.modal-button');
If you find Phoca extensions useful, please support the project
BMOD
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 25 Sep 2009, 18:18

Re: Modal popup box does not work

Post 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.
BMOD
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 25 Sep 2009, 18:18

Re: Modal popup box does not work

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Modal popup box does not work

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
psychohamster
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 06 Dec 2012, 07:08

Re: Modal popup box does not work

Post 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.
Post Reply