Lightbox plugin not working for me

Creating and modifying plugins.
Post Reply
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Lightbox plugin not working for me

Post 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.
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post 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.
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

Garvin, you're my hero, that worked exactly the way I wanted it to. Thanks.
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

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

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post 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'
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

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