Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've installed the latest version of lightbox5.x-1.0-1 and copied the files from scriptaculous-drupal.zip to a clean installed drupal5.1
I'm trying to get the lightbox working together with the "image galleries". Something like when I click on the thumbnail, the lightbox will appear instead of the node page. I couldn't get it working even though the options under "Site Configuration" are all enabled.
Why lightbox still doesn't work with image galleries? Can somebody help me out?
Comments
Comment #1
stella CreditAttribution: stella commentedcan you provide me with a URL to your site? Or can you tell me by looking at the html source what the class names are for the images in your gallery?
Cheers,
Stella
Comment #2
seakayjay CreditAttribution: seakayjay commentedActually i tested it on my local machine. It's not available on the internet yet. Below are the codes for the gallery:
FYI, I'm testing it on Apache 2.2.3/MySQL 5.0/PHP5.2.1
Comment #3
stella CreditAttribution: stella commentedChange line 8 on lightbox2/js/image_nodes.js and lightbox2/js/image_nodes_nogroup.js from
if (Element.hasClassName(nodes[i], "image-thumbnail")) {
toif (Element.hasClassName(nodes[i], "thumbnail")) {
Stella
Comment #4
seakayjay CreditAttribution: seakayjay commentedThank you. it works. =)
Comment #5
stella CreditAttribution: stella commentedShould be fixed in lightbox2 5.x-1.1.
Cheers,
Stella
Comment #6
stella CreditAttribution: stella commented