Hi thanks for this wonderful module, it really make my site looks more professional.

I understand that thickbox only pickup thumbnail preset from image module, but I need thickbox to pick up at lease 1 more preset. I am using preview as the 2nd one. Since i am not php or js programmer, after trying for days with no luck and finally turn to community for help.

I can get thickbox_auto to assign "thickbox a href class for preview" as well as the original thumbnail, but cannot get both to work. Can manage to get either one to display original size when click but the other one will display thumbnail size within thickbox popup.

This is how far i get by hacking into thickbox_auto.js.

under function TB i added preview for thickbox to change the a href class

function TB_drupal_rewrite(context, group) {
  // Process only images, that have not been rewritten (.thickbox) and that are not categories.
  $("a > img.image.image-thumbnail, a > img.image.image-preview", context).parent().not(".thickbox").not(".category").each(function(i)

then the if statement to check if img.class= preview or thumbnail

    if (img.class = "preview") {
	  var href = img.attr("src").replace(".preview", "");
	}
	else {
      var href = img.attr("src").replace(".thumbnail", "");
    }

Anyone can help?
Thank you

Comments

frjo’s picture

Status: Active » Closed (won't fix)