Closed (fixed)
Project:
Lightbox2
Version:
5.x-2.8
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2008 at 21:31 UTC
Updated:
7 Oct 2008 at 13:25 UTC
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
Comment #1
stella commentedDavide 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 betriggeringon line by itself in the input box. Please ensure that you do not have rich text enabled for this Lightbox2 config textarea.Cheers,
Stella
Comment #2
bocio commentedHi 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