Hello,
We've been using Image Handler without problem in one site and are now trying to implement it in a second. This is causing more trouble though, as it's a custom setup, carried over from the previous, non-ZC setup.
On a category page we display thumbnails (small) of all products in a scrollbar, when you click on one, a layer pops up with help of ajax, showing product info and the medium size image. When clicking on this image, the large one shows in a lightbox layer. Using standard ZC, this wouldn't be so hard as we'd upload images into images/, images/medium/ and images/large/. But we don't know how to call the various sizes from the Image Handler cache and would love if someone could help us! We've searched the forum and this thread, but it's a mile long so we might have missed something - if so, sorry!
SMALL - in includes/modules/product_listing.php we've got the $output_product[] variable which loops through the images we use for thumbnails. At the moment, we've got:
<img src="'.DIR_WS_IMAGES . $listing->fields['products_image'].'" title="'.$listing->fields['products_name'].'" alt="'.$listing->fields['products_name'].'" border="0" onclick="javascript:img_click(this,\'?products_id='.$listing->fields['products_id'].'&cPath='.$cPath.'\');" id="img_thumb" class="product_thumb" style="cursor: hand" />'."\n";
which isn't right. How can we call the smaller IH image and at the same time keep our onclick-bits?
MEDIUM - in a custom template we call the medium sized image. We've tried *$products_image_medium *but don't seem to get the IH medium image.. we'd like to show the cached medium version.
LARGE - we've tried to implement the pop-up on the medium image, to display the large in a lightbox-layer, something like:
<a href="'.$products_image.'" rel="lightbox[grafik]" title="'.$products_name.'">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '</a>
but we can't get it to work either..
Sorry for the long post, we're a little stumped as we don't know how to use IH in our custom setup and trial-and-error hasn't helped us here!
Grateful for any pointers,
Karl