Hi All,
I would like to change the size of my additional images without changing the size of the small images site wide.
In the includes/templates/mytemp/templates/additional_images.php from row 84-95 there is this
PHP Code:
for ($i=0, $n=$num_images; $i<$n; $i++) {
$file = $images_array[$i];
$products_image_large = str_replace(DIR_WS_IMAGES, DIR_WS_IMAGES . 'large/', $products_image_directory) . str_replace($products_image_extension, '', $file) . IMAGE_SUFFIX_LARGE . $products_image_extension;
$flag_has_large = true;//file_exists($products_image_large);
$products_image_large = ($flag_has_large ? $products_image_large : $products_image_directory . $file);
$flag_display_large = (IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE == 'Yes' || $flag_has_large);
$base_image = $products_image_directory . $file;
$thumb_slashes = zen_image($base_image, addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
// remove additional single quotes from image attributes (important!)
$thumb_slashes = preg_replace("/([^\\\\])'/", '$1\\\'', $thumb_slashes);
$thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large);
I changed the SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT in both locations in this file to HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT.
It works fine but it also breaks IH2 small image handling. They no longer pop up on hover.
I also tried SMALL_IMAGE_WIDTH/2, SMALL_IMAGE_HEIGHT/2
This works too but once again. . . broken IH2.
How can I do this without breaking the IH2?
Thanks in Advance,
John
Bookmarks