After putting rel="lightbox" on a single image I am now getting ALL images on the same page (ie; node blog listing) showing up with the features of lightbox. Not sure if this is a feature or not. I DID NOT use the rel="lightbox[roadtrip]" grouping as stated in the readme. So I think this may be a bug. Although I am using drupal 4.7 beta 6. Maybe it's different on the release candidates.

CommentFileSizeAuthor
#3 image_nodes.js424 bytesbugz_nz

Comments

bugz_nz’s picture

Try deselecting the "Enable for Image Nodes" option on the Lightbox2 settings page and let me know what happens.

creatorsdream’s picture

Okay I deselected the "Enable for Image Nodes" option and now a get the spinning mac gear, blackened screen for the image I had put the rel tag into, but that's it. The actual image does not show up at all. It's like it's stuck somewhere. The other images on the page though do work normally. So, the problem is not yet fixed. Any other suggestions?

bugz_nz’s picture

Assigned: Unassigned » bugz_nz
Status: Active » Needs review
StatusFileSize
new424 bytes

Replace the image_nodes.js file in the modules JS directory with the attached version and this will solve your particular requirements.

By design, the module will place all image nodes on a particular page into a gallery container, i.e., the phrase contained within the [ ].

I'll add an option to disable this in the next CVS release.

bugz_nz’s picture

Also, re-select "Enable for Image Nodes" when you do this.

bugz_nz’s picture

Status: Needs review » Fixed

Latest CVS solves this issue by adding a check box to enable automatic grouping of images.

http://ftp.osuosl.org/pub/drupal/files/projects/lightbox2-cvs.tar.gz

creatorsdream’s picture

This is fantastic bugz_nz! Truly a wonderful addition to image display for drupal. Now I don't have to even worry about putting the rel tag into my images. My users are going to love you!

One concern though...

Seems that when I display a blog page (/node) with images, clicking the thumbnails does exactly what its suppose to do. However, when I go to the overal gallery page (/image) lightbox does not work. Also, if I go to the individual gallery page (/image/tid/103) lightbox still does not work. Seems that the standard navigation when clicking on the image is what happens. Strange that the news page (/node) works, but not the galleries (/image) page.

I only have Use Lightbox2 Plus and Enable for Image Nodes checked. Any suggestions on getting this to work on the /image Galleries?

btw, I'm still using drupal 4.7 beta 6...

bugz_nz’s picture

Latest CVS fixes this. I'd also recommend installing the latest image.module.

bugz_nz’s picture

Project: » Lightbox2
Anonymous’s picture

Status: Fixed » Closed (fixed)