Can't get lightbox, thickbox, or craqbox to work on Drupal 5.

xamox - May 11, 2007 - 19:16

I am not quite sure why, but I can not get lightbox, thickbox, or craqbox to work on Drupal 5. I have got it working on setups before but not quite sure what the problem is. I have the latest module versions. They are not all enabled at the same time either. I have tried each one individually, as well as checked access control to make sure I wasn't missing something.

In fact at first lightbox complained when I rendered the page that I didn't have the sciptalicous libraries installed when I rendered a page with a thumbnail on it, but when I installed them, it didn't complain, and rendered the page without errors, but wasn't working.

Anyone have a clue what I need to do? I need this to work soon!

Try jquery.corner

mlle.yotnottin - May 12, 2007 - 01:18

I had problems getting a few of those to work as well and finally settled on jquery.corner.js. at http://methvin.com/jquery/jq-corner.html. It works well for me under D5.

No, I don't want corners

xamox - May 13, 2007 - 01:42

No, I don't want corners like that, I'm looking for something like the functionality of thickbox, where you can click an thumbnail and it will enlarge to fullsize, I know thickbox is what I want, I just have no idea why it's not working.

---------------------------------------------------------------
Proxous, Inc.
http://www.proxous.com

Opps...

mlle.yotnottin - May 13, 2007 - 02:33

I think I've been looking at too many modules lately so I'm starting to get them confused. My apologies.

Thickbox - I had it working on my 5.1 test site for a while but the jury is still out as to whether or not I'll continue to use it. I don't recall that I had to do anything special to make it work except to format my <a> tags properly and to make sure those tags used class="thickbox".

Since I don't use any of the image modules I set up links to my images ($dwgfull, $dwgpreview) prior to the <a> tags. Here's a sample tag that works for me:

<a href="<?php print $dwgfull ?>" class="thickbox"><img src= "<?php print $dwgpreview ?>" alt="<?php print $dwgname ?>"/></a>

HTH

solution

xamox - May 13, 2007 - 20:07

Ahh, you helped me figure it out. When creating a gallery with thumbnails (using views) I didn't have "image as link" set as an option. I didn't realize that thickbox would append the class to the as oppossed to the tag. So it works if I set the option to "image as a link" on my Image field in views.

Thanks.

---------------------------------------------------------------
Proxous, Inc.
http://www.proxous.com

I've only tried Thickbox so

MacRonin - May 13, 2007 - 01:53

I've only tried Thickbox so I can't speak for the others. I've only used it so far as part of a CCK imagefield. If you use it there you have to select an option on the display menu that is something like Thickbox:imagecache-profile It worked on pages generated by CCK automatically. I haven't gotten a chance to build the anchor tag yet for my custom node. But you do have to add a REL= parm and I think a class=thickbox

-------------------
http://www.PrivacyDigest.com/ News from the Privacy Front
http://www.SunflowerChildren.org/ Helping children around the world

Tried all of the above

Imre Gmelig Meijling - June 11, 2007 - 20:26

Ok, so I tried "Image with link" in my view settings. I have the Image module and Thickbox. I have some image galleries and some image nodes. I noticed there is no class="thickbox"... on anchors around my images, so I put this there. But I don't see any sign of thickbox whatsoever. How do I know it's even working? Any help would be greatly appreciated.

I've noticed this as well. I

lazyman - June 12, 2007 - 00:45

I've noticed this as well. I am using the img_assist tinymce plugin using the filter tag. Cant figure it out.

I would make sure jQuery is

xamox - June 13, 2007 - 16:08

I would make sure jQuery is being loaded on that page too. You could also try using the devel module to see if things are being loaded.

---------------------------------------------------------------
Proxous, Inc.
http://www.proxous.com

Verify thickbox is loading

mlle.yotnottin - June 16, 2007 - 02:33

Have you verified that thickbox.css and thickbox.js are being loaded from your modules/thickbox directory?

Also, what behaviour are you experiencing when you say you don't see any sign of thickbox? On my installation, when using thickbox, clicking a small image causes the page to go gray, a small "Loading..." icon to appear in the middle of the page then the full image is displayed in a box in the middle of the page.

Without thickbox enabled, clicking on the same small image will cause the larger image to load just like a normal link.

 
 

Drupal is a registered trademark of Dries Buytaert.