Hi all,
I followed instructions on http://drupal.org/node/252153 but lightbox doesn't works and my image gets displayed on the same brower window.
The code generated for my image is:

<a href="/files/u8/barthes.jpg"><img hspace="5" height="104" width="150" vspace="5" border="1" align="left" class="triggering" alt="pppp" src="/files/u8/barthes_0.jpg" />

Reading different posts it seems correct to me.
If I manually insert the triggering code by myself then lightbox works. I wrote something like this, moving the lightbox code to the anchor tag:

<a href="/files/u8/barthes.jpg" rel="lightbox"><img hspace="5" height="104" width="150" vspace="5" border="1" align="left" alt="pppp" src="/files/u8/barthes_0.jpg" />

I'm completely stuck on this
I'm running Drupal 5.10 with the JQuery 2 update successfully installed (as I can see from my logs):

Thank you in advance

Davide

Comments

stella’s picture

Davide sent url to site separately.

From looking at the site, it looks like you've got some crud text on either side of the class name you entered into the list of custom lightbox trigger classes on admin/settings/lightbox2/automatic.

Lightbox2 receives this as the class name \x3cp\x3etriggering\x3c/p\x3e. Please remove any characters that appear on either side of the class name. It should just be triggering on line by itself in the input box. Please ensure that you do not have rich text enabled for this Lightbox2 config textarea.

Cheers,
Stella

bocio’s picture

Status: Active » Closed (fixed)

Hi Stella,
Yes I switched to plain text editor to discover that the triggering class name was between two paragraph tags!

< p >triggering< /p >
I removed them, cleared the cache et voilà, everything is fine now.
Thank you indeed I owe you a box of beer.

Davide