Thickbox Image does not jump to next Picture on Click

schlotterich - October 27, 2009 - 16:37
Project:Thickbox
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:fixed
Description

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?

#1

achernen - November 15, 2009 - 18:15

I have the same issue

#2

frjo - November 17, 2009 - 19:18

Example page?

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

#3

achernen - November 17, 2009 - 20:09

#4

achernen - November 17, 2009 - 20:05

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

#5

frjo - November 18, 2009 - 06:10
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

#6

achernen - November 18, 2009 - 07:27

tack! I will try it out!

#7

achernen - November 19, 2009 - 08:37
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..

 
 

Drupal is a registered trademark of Dries Buytaert.