Results 1 to 10 of 7098

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    814
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    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_IMAGESDIR_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_imageaddslashes($products_name), SMALL_IMAGE_WIDTHSMALL_IMAGE_HEIGHT);
        
    // remove additional single quotes from image attributes (important!)
        
    $thumb_slashes preg_replace("/([^\\\\])'/"'$1\\\''$thumb_slashes);
        
    $thumb_regular zen_image($base_image$products_nameSMALL_IMAGE_WIDTHSMALL_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

  2. #2
    Join Date
    Jan 2007
    Location
    1.5 miles from Home
    Posts
    674
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    Quote Originally Posted by bumba000 View Post
    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_IMAGESDIR_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_imageaddslashes($products_name), SMALL_IMAGE_WIDTHSMALL_IMAGE_HEIGHT);
        
    // remove additional single quotes from image attributes (important!)
        
    $thumb_slashes preg_replace("/([^\\\\])'/"'$1\\\''$thumb_slashes);
        
    $thumb_regular zen_image($base_image$products_nameSMALL_IMAGE_WIDTHSMALL_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
    I'm not a coder.
    But might look at how the main image is called on the product info page.

 

 

Similar Threads

  1. v150 Image Handler 4 (for v1.5.x) Support Thread
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1687
    Last Post: 17 Nov 2024, 07:26 PM
  2. v139h Image Handler 3 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1095
    Last Post: 2 Oct 2017, 12:42 PM
  3. Image Handler Support Please
    By nadinesky in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Sep 2013, 03:47 PM
  4. Image handler only covers part of screen
    By shaneburton in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 14 May 2009, 07:15 PM
  5. Is Image Handler the only way to go?
    By wwwursa in forum Installing on a Windows Server
    Replies: 2
    Last Post: 23 Dec 2007, 09:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg