Page 1 of 1

Lightbox plugin not working for me

Posted: Fri Jun 27, 2008 4:51 pm
by carl_galloway
I've just installed the lightbox/thickbox/greybox plugin and can't seem to get it to work.

I've checked index.tpl and I've got {serendipity_hookPlugin hook="frontend_header"} so I think no problem with getting the javascript into the head of the page. I've tried using the default and also the bulletproof themes and it didn't work.

I've also go all boxes as 'yes' in the plugin config, and at the moment it's configured on lightbox2. The image that it should work on is the rug inside the entry.

If anyone can help, the site is here

EDIT: Uh oh, I've just tested the page in Camino and it works but it's giving me two popups, the lightbox one, and also a regular browser window.

Posted: Fri Jun 27, 2008 4:55 pm
by carl_galloway
This is really wierd. In Camino it works but I get two windows, the lightbox one and the browser window, but in Safari, Firefox, and Flock I only get the browser popup.

Posted: Fri Jun 27, 2008 6:30 pm
by carl_galloway
I don't know what I've done, but the lightbox now works on the home page in Safari but not on the other pages. If I add the lightbox javascript stuff into index.tpl and manually add the rel="lightbox" will this work? Also, how do I get Serendipity to stop opening two windows for each image?

Posted: Sat Jun 28, 2008 11:07 am
by garvinhicking
Hi!

Maybe you've embeded the s9y images with the "adaptive popup" method? In that case this conflickts with lightbox. Lightbox only works if you inserted images through s9y via the usual <a href=""><img /></a> method?

Do you have an actual URL where large format images should work?

Regards,
Garvin

Posted: Sat Jun 28, 2008 11:16 am
by carl_galloway
Garvin, you're my hero, that worked exactly the way I wanted it to. Thanks.

Posted: Sat Jun 28, 2008 11:20 am
by carl_galloway
Uh oh, sorry Garvin it's only working on the front page not on the entry pages. Is there something else I need to do?

Posted: Sat Jun 28, 2008 11:42 am
by garvinhicking
Hi!

Can you give me a sample URL of such an entry?

Regards,
Garvin

Posted: Sat Jun 28, 2008 11:47 am
by carl_galloway
sure, I've used tinyurl again just so the SEs don't index the temporary page,

http://tinyurl.com/5ayu86

As you can see on this the javascript files don't appear in the head although the images have the lightbox code in them. The strange thing is that the metadesc plugin is working on the entry page. Also, in the lightbox plugin I've got everything marked as 'Yes'

Posted: Sat Jun 28, 2008 12:32 pm
by garvinhicking
Hi!

Can you try to turn of the lightbox option for JS optimizations? I believe those make trouble on certain event plugin combinations.

The script in the head must appear, there must be an event plugin interference...

Regards,
Garvin

Posted: Sat Jun 28, 2008 12:38 pm
by carl_galloway
Thanks Garvin, that definitely seemed to fix it. Now I need to go and sort out all the other images on the site. Cheers, Carl