Hello, I am using Thickbox with the Image Module. After patching to the newest Drupal version the Thickbox always closes the window when I click on the Pictures instead of jumping to the next picture. Can anyone help me to solve this problem?

Comments

achernen’s picture

I have the same issue

frjo’s picture

Example page?

Does all the image links have the same "rel" attribute? That's how Thickbox knows what images to group as a gallery.

achernen’s picture

achernen’s picture

for example, here
http://www.antonchernenko.info/image/tid/2

It shows only one image and closes on click, no matter of settings I choose in thickbox
however, I run the same site locally, having exactly the same content, modules etc and it work great there..
I have the same problem with lightbox2

frjo’s picture

Priority: Critical » Normal

The jQuery script thickbox_auto.js that takes care of supporting the image module seems to assume that galleries are built with ul-tags. The example above is a table.

My guess is that the image module has made some changes and that thickbox_auto.js needs to be updated.

I don't use the image module myself and support for it was contributed from other users. If someone sends in a clean looking patch and I get confirmation that it works I will commit it.

Looking forward I would recommend you all started to use Imagefield/Imagecache/Views/Views attach for image galleries instead. All but the last module are included in Drupal 7 and they have good stable releases for Drupal 6.

This screencast shows how it's done and they have even packed it all up as a feature.

Photo galleries with Views Attach | Lullabot

achernen’s picture

tack! I will try it out!

achernen’s picture

Status: Active » Fixed

I found the reason, the problem was with image_gallery view, I changed style: grid to gallery and now it works fine
I had a look at lullabot way, cant say I like it..

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.