Hi all,

I want to set image up so that when someone tries to open up the image for the original view it gets piped through the lightbox module.

Has anyone set this up?

Thanks in advance for any ideas

Ken

Comments

kulvik’s picture

Hi.

It's pretty easy. If you use Drupal 4.7 and the latest version of the lightbox module (i'm using the one from CVS) this is done automatically (you can specify it under administration -> settings -> lightbox2).

Not sure what to do if you're still running drupal 4.6.

Good luck!

- Thomas -

"If I do this, he might kick me back. That's not what I want. So I break his arm" - Bas Rutten

bugz_nz’s picture

Here's a link to the latest CVS version which has the ability to do this automatically.

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

There is a 4.6 version of this module, but it doesn't have nearly as many features due to my lack of motivations and the fact that Drupal 4.7 is so kickass.

I'd recommend having the latest version of the image.module installed too, but it isn't necessary.

kenwen’s picture

I'm going to implement that - both modules kick the proverbial butt, really good stuff, thx for the advice.

kennysto’s picture

Just tried to get this running. I am using the img_assist module to include images in nodes. The lightbox effect seems to work when the thumbnail is included in the node but not the preview and I cannot work out how to include the rel="lightbox" in the link. Any pointers?

Ahh this is driving me nuts.. I have image module, img_assist module and lightbox2 module.

If I have understood correctly the:

image module lets me upload the images to my site and also automatically creates a thumbnail and preview image.

img_assist allows me to include one of my uploaded images in a post.

lightbox creates that cool effect of opening the full sized image in a pop up window.

Now I want the preview image included in posts and the full size image to open when it is clicked on. But the image is opening in a node and i cant find out how to change this. Which module settings should I be looking in :(

bugz_nz’s picture

Edit the HTML "code img_assist creates for your inline image - when inserting the preview size image, replace class="image preview" with class="image thumbnail

toonopoly’s picture

I would like the same thing and after 2 days of trying to figure it out I'm pretty ticked.

I'm running 4.7 and it doesn't "automatically do it", I don't even see an option in the settings to make it do it.

bugz_nz’s picture

The module automatically converts the image node thumbnail into a lightbox link when viewing the image node in a list or in an image gallery setting - this is when used in conjunction with the image.module and it's gallery option.

The setting for this is located on the settings page with the title: "Enable for Image Nodes", under the sub heading "Lightbox2 Plus Image Node options" - I know it's there because I wrote it.

If you feel that the module could have other features that it currently does not possess, you are free to log a feature request against the module.

http://drupal.org/node/55200

mjohnq3’s picture

Nice work. This is a great feature. Thanks.