Like many people who've been using the Image Swap Mouseover mod, I've been desperate for a way to get it working with Image Handler (IH2). Now I'm not a programmer, but I've had a Eureka moment and I've come up with a solution which involves bypassing the Product Info pages so that Image Handler can use the Proportional Images setting on other pages.
The file that needs to be edited is includes/functions/html_output.php
Code to edit:
PHP Code:
if (strstr($src, 'includes/templates') or strstr($src, 'includes/languages') or PROPORTIONAL_IMAGES_STATUS == '0') {
return zen_image_OLD($src, $alt, $width, $height, $parameters);
}
Change to:
PHP Code:
if($_GET['main_page'] == "product_info" or strstr($src, 'includes/templates') or strstr($src, 'includes/languages') or PROPORTIONAL_IMAGES_STATUS == '0') {
return zen_image_OLD($src, $alt, $width, $height, $parameters);
}
Then change the 'Use Proportional Images on Products and Categories' setting to 1. You'll probably need to adjust the product image settings to slightly smaller widths before IH2 will start doing its work.
This is all I did, and I now have Image Handler working fine on category and product listing pages:
http://www.scotiafairtrade.com/silk-...08_10_220.html
and my additional images are still swapping over on the Product Info pages:
http://www.scotiafairtrade.com/green...ut-p-4090.html
Hope this is of some use!
Bookmarks