Lightbox Problem

Phoca Gallery - image gallery extension
ryan777
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 14 Sep 2010, 18:13

Lightbox Problem

Post by ryan777 »

Hi, I love the look and quickness of phocagallery, but I'm having a problem on 2 different sites I'm building. For whatever reason, the lightbox effect only displays properly when I'm signed in on the frontend of the site. To the average visitor though, the picture pops up in a new browser tab which is no good. I have a feeling it's something to do with the template, but I'm not sure. I read on another post that the shadowbox library could be conflicting with another, but as far as I know the template does not have shadowbox built in. Some of the other component's i'm using are: JCE, Jumi and the Modules anywhere plugin.

Has anyone ever encountered this? If so, how or where would I even start looking in order to fix it? Thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Lightbox Problem

Post by Jan »

Hi, did you test it with other template (switching to e.g. standard rhuk_milkyway) or did you test to disable modules loaded at the same time like Phoca Gallery is loaded?

Jan
If you find Phoca extensions useful, please support the project
ryan777
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 14 Sep 2010, 18:13

Re: Lightbox Problem

Post by ryan777 »

jan, thanks for the reply. I switched out templates and the shadowbox worked, so it has to be the template and not any of my components. Any idea what sort of file could be conflicting? The template is ABC logic and only has a few js files associated with it. Could it be one of those that are causing the problem?
TacTic
Phoca Member
Phoca Member
Posts: 14
Joined: 15 Sep 2010, 14:41

Re: Lightbox Problem

Post by TacTic »

I had the same problem with safecontact and I got a good solution.

If your template is a templatemonster you may want to look in your index file and remove this:

Code: Select all

if ($user->get('guest') == 1) {  

$headerstuff = $this->getHeadData();  

$headerstuff['scripts'] = array();  

$this->setHeadData($headerstuff); } 
ryan777
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 14 Sep 2010, 18:13

Re: Lightbox Problem

Post by ryan777 »

TacTic,

As my template is from templatemonster, taking that bit out fixed the problem. YOU ARE AWESOME!!! Thank you!
Post Reply