Hi Everyone,

I am migrating my squarespace site to Drupal 6.15.
My old site used lightbox quite heavily. I have install and enabled the lightbox2 module and somehow any link I click the lightbox appear... even the [Edit] button will trigger the lightbox...

Can someone please tell me how to set it up so that:-

- only the specified images will pop up
- and how to show them in group, i mean navigate through different images with next and prev
- and how to specify in my html file for the images I want to show up in lightbox... I tried putting rel="lightbox" in my < a > link but doesn't seem to work...

Please help... and sorry if this is a stupid question....

Cheers.

Comments

blackarma’s picture

You should probably read this stuff Lightbox2 Docs
That should help you clear out your issues.

snackmoore’s picture

Thanks but I have read all that before I post this.

Do I just put rel="lightbox" for the link I want it to trigger the lightbox? Doesn't seem to work for me....

Also, the lightbox only comes up when I set the "Automatic Handlers->image node setting->automatic handler for images nodes" to "Disabled"... if I set it to "Lightbox" or anything else... then nothing work...

What's worse it if I set it to "disabled" then any link will trigger the lightbox even the [Edit] button....

I understand I must be doing something wrong...
is there a way to implement this using jquery library without using the drupal lightbox module?

Please help...

Cheers.

blackarma’s picture

Well drupal lightbox2 uses jQuery to work.
What about your problem if you can afford it you might try to simply reinstalling this module.
If it won't help then i'll install this module on my website and test it out.

snackmoore’s picture

Hi there...

As soon as I removed the following line.... it works...

drupal_add_js('sites/all/js/jquery-1.3.2.js');

But I am planning added qTip (mouseover hints effect with images using jQuery) to my page...
should i switch to a different version of jQuery or have I placed it in the wrong place...

Thanks for the help.

Cheers.

blackarma’s picture

Oke i got you. Drupal comes with jquery included already no need to upload your version that's why you have strange behavior.
Drupal 6 comes with 1.2.6 Jquery i would suggest you to upgrade it to 1.3.2 because it's much faster.
You can use this module Jquery Update to update jquery.
qTip is good plugin i'm using it too.