I want the original image link so that it opens up in thickbox.

Can anyone tell me how I change it from the class="image_size_originial active" to class="thickbox".

Thanks!

Comments

drewish’s picture

Status: Active » Fixed

you should be able to do that in a theme_image_display theme funciton.

jrejfek’s picture

isn't theme_image_display is the image itself? I want to add the thickbox class to the links to larger images.

jrejfek’s picture

Status: Fixed » Postponed (maintainer needs more info)

I am still having trouble finding where i should add thickbox to the larger or original size links. Can anyone help?

pillarsdotnet’s picture

jrejfek wrote:

I want to add the thickbox class to the links to larger images.

Don't think so, but... (browsing thickbox.js code...)

lessee.... Should be possible by adding a few attributes...

--- orig/image/image.module     2007-09-26 15:40:42.000000000 -0400
+++ patched/image/image.module  2007-09-30 07:31:14.000000000 -0400
@@ -464,6 +464,9 @@
     if (!user_access('view original images')) {
       unset($links['image_size_'. IMAGE_ORIGINAL]);
     }
+    else {
+      $links['image_size_' . IMAGE_ORIGINAL]['attributes']['onclick'] = "tb_show('" . $node->title . "','" . $node->images[IMAGE_ORIGINAL] . '",NULL);';
+    }
   }
 
   return $links;

But something is calling check_plain() on the attribute values before they get passed to the browser, so that doesn't work.

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Thickbox module has built-in support for this in the meantime, I think. If not, please consult Thickbox's issue queue.