Page 89 of 169 FirstFirst ... 3979878889909199139 ... LastLast
Results 881 to 890 of 1688
  1. #881
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default Re: Image Handler 4 (for v1.5.x) Support Thread

    Hi,

    I'm in my fourth try to install IH 4 and it's not happening for me. I use Firefox, Dreamweaver and Filezilla for transfer. I did the drag and drop thing for the files... everything shows as the instructions say however, when I get back to clicking a link on my admin, I get the blank page.

    I can't get the auto-installer to kick in. I've checked the logs for errors and nothing shows there. I've found on the net that if my default language was other then English, removing the other language, installing IH and reinstalling the language could work, but it did not for me.

    I've also found on this thread that for some, the admin>includes>configuration.php file was getting modified automatically in regards to the admin folder but mine isn`t. It is as it should be

    define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
    I have the latest Zencart installed

    canada post
    ceon uri mapping
    french language

    I did a file compare on the zen cart original file YOUR_ADMIN/includes/modules/category_product_listing.php and mine with Beyond Compare and the file was unchanged so went ahead and installed as instructed...

    still no go... am I missing something?

  2. #882
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Image Handler 4 (for v1.5.x) Support Thread

    Quote Originally Posted by marieAA View Post
    Hi,

    I'm in my fourth try to install IH 4 and it's not happening for me. I use Firefox, Dreamweaver and Filezilla for transfer. I did the drag and drop thing for the files... everything shows as the instructions say however, when I get back to clicking a link on my admin, I get the blank page.

    I can't get the auto-installer to kick in. I've checked the logs for errors and nothing shows there. I've found on the net that if my default language was other then English, removing the other language, installing IH and reinstalling the language could work, but it did not for me.

    I've also found on this thread that for some, the admin>includes>configuration.php file was getting modified automatically in regards to the admin folder but mine isn`t. It is as it should be



    I have the latest Zencart installed

    canada post
    ceon uri mapping
    french language

    I did a file compare on the zen cart original file YOUR_ADMIN/includes/modules/category_product_listing.php and mine with Beyond Compare and the file was unchanged so went ahead and installed as instructed...

    still no go... am I missing something?
    Blank page = an error log.. so without know what error is being kicked out, I couldn't begin to guess what's going on.. Post the error logs generated when you install..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #883
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default Re: Image Handler 4 (for v1.5.x) Support Thread

    sorry, I still have nothing in the logs folder of the store. and no error log on my host either. I see that some posted images of a list of errors that shows up at the top of the page.. is there a way to turn that on?

  4. #884
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,376
    Plugin Contributions
    94

    Default Re: Image Handler 4 (for v1.5.x) Support Thread

    I've been running one of my client's test stores with error-reporting level E_ALL and wound up with a bunch of E_NOTICE logs of the form:
    Code:
    [17-Sep-2013 13:18:53 Europe/Berlin] PHP Notice:  Use of undefined constant IH_RESIZE_TITLE - assumed 'IH_RESIZE_TITLE' in C:\xampp\htdocs\testsite\testadmin\includes\languages\english\extra_definitions\bmz_language_admin.php on line 3
    It turns out that none of the constants named in the referenced file are enclosed in quotes; here's the updated bmz_language_admin.php module, with the quotes added:
    Code:
    <?php
    
    define('IH_RESIZE_TITLE', 'IH resize images');
    define('IH_RESIZE_TEXT', 'Select either -no- which is old Zen-Cart behaviour or -yes- to activate automatic resizing and caching of images. --Note: If you select -no-, all of the Image Handler specific image settings will be unavailable including: image filetype selection, background colors, compression, image hover, and watermarking-- If you want to use ImageMagick you have to specify the location of the <strong>convert</strong> binary in <em>includes/extra_configures/bmz_image_handler_conf.php</em>.');
    
    define('SMALL_IMAGE_FILETYPE_TITLE', 'IH small images filetype');
    define('SMALL_IMAGE_FILETYPE_TEXT', 'Select one of -jpg-, -gif- or -png-. Older versions of Internet Explorer -v6.0 and older- will have issues displaying -png- images with transparent areas. You better stick to -gif- for transparency if you MUST support older versions of Internet Explorer. However -png- is a MUCH BETTER format for transparency. Use -jpg- or -png- for larger images. -no_change- is old zen-cart behavior, use the same file extension for small images as uploaded image');
    
    define('SMALL_IMAGE_BACKGROUND_TITLE', 'IH small images background');
    define('SMALL_IMAGE_BACKGROUND_TEXT', 'If converted from an uploaded image with transparent areas, these areas become the specified color. Set to -transparent- to keep transparency.');
    
    define('SMALL_IMAGE_QUALITY_TITLE', 'IH small images compression quality');
    define('SMALL_IMAGE_QUALITY_TEXT', 'Specify the desired image quality for small jpg images, decimal values ranging from 0 to 100. Higher is better quality and takes more space. Default is 85 which is ok unless you have very specific needs.');
    
    define('WATERMARK_SMALL_IMAGES_TITLE', 'IH small images watermark');
    define('WATERMARK_SMALL_IMAGES_TEXT', 'Set to -yes-, if you want to show watermarked small images instead of unmarked small images.');
    
    define('ZOOM_SMALL_IMAGES_TITLE', 'IH small images zoom on hover');
    define('ZOOM_SMALL_IMAGES_TEXT', 'Set to -yes-, if you want to enable a nice zoom overlay while hovering the mouse pointer over small images.');
    
    define('ZOOM_IMAGE_SIZE_TITLE', 'IH small images zoom on hover size');
    define('ZOOM_IMAGE_SIZE_TEXT', 'Set to -Medium-, if you want to the zoom on hover display to use the medium sized image. Otherwise, to use the large sized image on hover, set to -Large-');
    
    define('MEDIUM_IMAGE_FILETYPE_TITLE', 'IH medium images filetype');
    define('MEDIUM_IMAGE_FILETYPE_TEXT', 'Select one of -jpg-, -gif- or -png-. Older versions of Internet Explorer -v6.0 and older- will have issues displaying -png- images with transparent areas. You better stick to -gif- for transparency if you MUST support older versions of Internet Explorer. However -png- is a MUCH BETTER format for transparency. Use -jpg- or -png- for larger images. -no_change- is old zen-cart behavior, use the same file extension for medium images as uploaded image-s.');
    
    define('MEDIUM_IMAGE_BACKGROUND_TITLE', 'IH medium images background');
    define('MEDIUM_IMAGE_BACKGROUND_TEXT', 'If converted from an uploaded image with transparent areas, these areas become the specified color. Set to -transparent- to keep transparency.');
    
    define('MEDIUM_IMAGE_QUALITY_TITLE', 'IH medium images compression quality');
    define('MEDIUM_IMAGE_QUALITY_TEXT', 'Specify the desired image quality for medium jpg images, decimal values ranging from 0 to 100. Higher is better quality and takes more space. Default is 85 which is ok unless you have very specific needs.');
    
    define('WATERMARK_MEDIUM_IMAGES_TITLE', 'IH medium images watermark');
    define('WATERMARK_MEDIUM_IMAGES_TEXT', 'Set to -yes-, if you want to show watermarked medium images instead of unmarked medium images.');
    
    define('LARGE_IMAGE_FILETYPE_TITLE', 'IH large images filetype');
    define('LARGE_IMAGE_FILETYPE_TEXT', 'Select one of -jpg-, -gif- or -png-. Older versions of Internet Explorer -v6.0 and older- will have issues displaying -png- images with transparent areas. You better stick to -gif- for transparency if you MUST support older versions of Internet Explorer. However -png- is a MUCH BETTER format for transparency. Use -jpg- or -png- for larger images. -no_change- is old zen-cart behavior, use the same file extension for large images as uploaded image-s.');
    
    define('LARGE_IMAGE_BACKGROUND_TITLE', 'IH large images background');
    define('LARGE_IMAGE_BACKGROUND_TEXT', 'If converted from an uploaded image with transparent areas, these areas become the specified color. Set to -transparent- to keep transparency.');
    
    define('LARGE_IMAGE_QUALITY_TITLE', 'IH large images compression quality');
    define('LARGE_IMAGE_QUALITY_TEXT', 'Specify the desired image quality for large jpg images, decimal values ranging from 0 to 100. Higher is better quality and takes more space. Default is 85 which is ok unless you have very specific needs.');
    
    define('WATERMARK_LARGE_IMAGES_TITLE', 'IH large images watermark');
    define('WATERMARK_LARGE_IMAGES_TEXT', 'Set to -yes-, if you want to show watermarked large images instead of unmarked large images.');
    
    define('LARGE_IMAGE_MAX_WIDTH_TITLE', 'IH large images maximum width');
    define('LARGE_IMAGE_MAX_WIDTH_TEXT', 'Specify a maximum width for your large images. If width and height are empty or set to 0, no resizing of large images is done.');
    
    define('LARGE_IMAGE_MAX_HEIGHT_TITLE', 'IH large images maximum height');
    define('LARGE_IMAGE_MAX_HEIGHT_TEXT', 'Specify a maximum height for your large images. If width and height are empty or set to 0, no resizing of large images is done.');
    
    define('WATERMARK_GRAVITY_TITLE', 'IH watermark gravity');
    define('WATERMARK_GRAVITY_TEXT', 'Select the position for the watermark relative to the image-s canvas. Default is <strong>Center</Strong>.');
    
    define('IH_VERSION_TITLE', 'IH version');
    define('IH_VERSION_TEXT', 'IH Version is stored but not shown on configuration menus');

  5. #885
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Image Handler 4 (for v1.5.x) Support Thread

    Quote Originally Posted by lat9 View Post
    I've been running one of my client's test stores with error-reporting level E_ALL and wound up with a bunch of E_NOTICE logs of the form:
    Code:
    [17-Sep-2013 13:18:53 Europe/Berlin] PHP Notice:  Use of undefined constant IH_RESIZE_TITLE - assumed 'IH_RESIZE_TITLE' in C:\xampp\htdocs\testsite\testadmin\includes\languages\english\extra_definitions\bmz_language_admin.php on line 3
    It turns out that none of the constants named in the referenced file are enclosed in quotes; here's the updated bmz_language_admin.php module, with the quotes added:
    Code:
    <?php
    
    define('IH_RESIZE_TITLE', 'IH resize images');
    define('IH_RESIZE_TEXT', 'Select either -no- which is old Zen-Cart behaviour or -yes- to activate automatic resizing and caching of images. --Note: If you select -no-, all of the Image Handler specific image settings will be unavailable including: image filetype selection, background colors, compression, image hover, and watermarking-- If you want to use ImageMagick you have to specify the location of the <strong>convert</strong> binary in <em>includes/extra_configures/bmz_image_handler_conf.php</em>.');
    
    define('SMALL_IMAGE_FILETYPE_TITLE', 'IH small images filetype');
    define('SMALL_IMAGE_FILETYPE_TEXT', 'Select one of -jpg-, -gif- or -png-. Older versions of Internet Explorer -v6.0 and older- will have issues displaying -png- images with transparent areas. You better stick to -gif- for transparency if you MUST support older versions of Internet Explorer. However -png- is a MUCH BETTER format for transparency. Use -jpg- or -png- for larger images. -no_change- is old zen-cart behavior, use the same file extension for small images as uploaded image');
    
    define('SMALL_IMAGE_BACKGROUND_TITLE', 'IH small images background');
    define('SMALL_IMAGE_BACKGROUND_TEXT', 'If converted from an uploaded image with transparent areas, these areas become the specified color. Set to -transparent- to keep transparency.');
    
    define('SMALL_IMAGE_QUALITY_TITLE', 'IH small images compression quality');
    define('SMALL_IMAGE_QUALITY_TEXT', 'Specify the desired image quality for small jpg images, decimal values ranging from 0 to 100. Higher is better quality and takes more space. Default is 85 which is ok unless you have very specific needs.');
    
    define('WATERMARK_SMALL_IMAGES_TITLE', 'IH small images watermark');
    define('WATERMARK_SMALL_IMAGES_TEXT', 'Set to -yes-, if you want to show watermarked small images instead of unmarked small images.');
    
    define('ZOOM_SMALL_IMAGES_TITLE', 'IH small images zoom on hover');
    define('ZOOM_SMALL_IMAGES_TEXT', 'Set to -yes-, if you want to enable a nice zoom overlay while hovering the mouse pointer over small images.');
    
    define('ZOOM_IMAGE_SIZE_TITLE', 'IH small images zoom on hover size');
    define('ZOOM_IMAGE_SIZE_TEXT', 'Set to -Medium-, if you want to the zoom on hover display to use the medium sized image. Otherwise, to use the large sized image on hover, set to -Large-');
    
    define('MEDIUM_IMAGE_FILETYPE_TITLE', 'IH medium images filetype');
    define('MEDIUM_IMAGE_FILETYPE_TEXT', 'Select one of -jpg-, -gif- or -png-. Older versions of Internet Explorer -v6.0 and older- will have issues displaying -png- images with transparent areas. You better stick to -gif- for transparency if you MUST support older versions of Internet Explorer. However -png- is a MUCH BETTER format for transparency. Use -jpg- or -png- for larger images. -no_change- is old zen-cart behavior, use the same file extension for medium images as uploaded image-s.');
    
    define('MEDIUM_IMAGE_BACKGROUND_TITLE', 'IH medium images background');
    define('MEDIUM_IMAGE_BACKGROUND_TEXT', 'If converted from an uploaded image with transparent areas, these areas become the specified color. Set to -transparent- to keep transparency.');
    
    define('MEDIUM_IMAGE_QUALITY_TITLE', 'IH medium images compression quality');
    define('MEDIUM_IMAGE_QUALITY_TEXT', 'Specify the desired image quality for medium jpg images, decimal values ranging from 0 to 100. Higher is better quality and takes more space. Default is 85 which is ok unless you have very specific needs.');
    
    define('WATERMARK_MEDIUM_IMAGES_TITLE', 'IH medium images watermark');
    define('WATERMARK_MEDIUM_IMAGES_TEXT', 'Set to -yes-, if you want to show watermarked medium images instead of unmarked medium images.');
    
    define('LARGE_IMAGE_FILETYPE_TITLE', 'IH large images filetype');
    define('LARGE_IMAGE_FILETYPE_TEXT', 'Select one of -jpg-, -gif- or -png-. Older versions of Internet Explorer -v6.0 and older- will have issues displaying -png- images with transparent areas. You better stick to -gif- for transparency if you MUST support older versions of Internet Explorer. However -png- is a MUCH BETTER format for transparency. Use -jpg- or -png- for larger images. -no_change- is old zen-cart behavior, use the same file extension for large images as uploaded image-s.');
    
    define('LARGE_IMAGE_BACKGROUND_TITLE', 'IH large images background');
    define('LARGE_IMAGE_BACKGROUND_TEXT', 'If converted from an uploaded image with transparent areas, these areas become the specified color. Set to -transparent- to keep transparency.');
    
    define('LARGE_IMAGE_QUALITY_TITLE', 'IH large images compression quality');
    define('LARGE_IMAGE_QUALITY_TEXT', 'Specify the desired image quality for large jpg images, decimal values ranging from 0 to 100. Higher is better quality and takes more space. Default is 85 which is ok unless you have very specific needs.');
    
    define('WATERMARK_LARGE_IMAGES_TITLE', 'IH large images watermark');
    define('WATERMARK_LARGE_IMAGES_TEXT', 'Set to -yes-, if you want to show watermarked large images instead of unmarked large images.');
    
    define('LARGE_IMAGE_MAX_WIDTH_TITLE', 'IH large images maximum width');
    define('LARGE_IMAGE_MAX_WIDTH_TEXT', 'Specify a maximum width for your large images. If width and height are empty or set to 0, no resizing of large images is done.');
    
    define('LARGE_IMAGE_MAX_HEIGHT_TITLE', 'IH large images maximum height');
    define('LARGE_IMAGE_MAX_HEIGHT_TEXT', 'Specify a maximum height for your large images. If width and height are empty or set to 0, no resizing of large images is done.');
    
    define('WATERMARK_GRAVITY_TITLE', 'IH watermark gravity');
    define('WATERMARK_GRAVITY_TEXT', 'Select the position for the watermark relative to the image-s canvas. Default is <strong>Center</Strong>.');
    
    define('IH_VERSION_TITLE', 'IH version');
    define('IH_VERSION_TEXT', 'IH Version is stored but not shown on configuration menus');
    Thanks for this.. will make the change and submit update..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #886
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: Image Handler 4 (for v1.5.x) Support Thread

    Quote Originally Posted by marieAA View Post
    sorry, I still have nothing in the logs folder of the store. and no error log on my host either. I see that some posted images of a list of errors that shows up at the top of the page.. is there a way to turn that on?
    The list of errors at the top of the page appears when the auto installer tries to process the files and comes across an error in that process.
    Btw, the configure.php file is not touched by the installer, the fact that your file contains what you showed, indicates that ZC knows where the admin directory is and no changes to your configure.php should be expected by IH.
    You stated that you did a file compare of one file, but did you do a file compare with all core files modified by IH as part of the instructions? Ie was this a first time install, or an upgrade? (Verifying the meaning of the statement of fourth time trying to install IH4.) Cache and sessions were cleared? Anything presented when viewing the source from within the browser? Do you happen to have a cache folder in addition to a logs folder and did an error get logged into the cache folder? (Yes I'm guessing at areas, because there really should be an error somewhere about this lack of system response.) Is there possibly so many error logs that the system is slow to respond to provide the list of error logs which contains the error associated with this event?

  7. #887
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default Re: Image Handler 4 (for v1.5.x) Support Thread

    Quote Originally Posted by mc12345678 View Post
    The list of errors at the top of the page appears when the auto installer tries to process the files and comes across an error in that process.
    Btw, the configure.php file is not touched by the installer, the fact that your file contains what you showed, indicates that ZC knows where the admin directory is and no changes to your configure.php should be expected by IH.
    You stated that you did a file compare of one file, but did you do a file compare with all core files modified by IH as part of the instructions? Ie was this a first time install, or an upgrade? (Verifying the meaning of the statement of fourth time trying to install IH4.) Cache and sessions were cleared? Anything presented when viewing the source from within the browser? Do you happen to have a cache folder in addition to a logs folder and did an error get logged into the cache folder? (Yes I'm guessing at areas, because there really should be an error somewhere about this lack of system response.) Is there possibly so many error logs that the system is slow to respond to provide the list of error logs which contains the error associated with this event?
    fourth try installing it for the first time... not upgrading.

    Nothing at all when looking at the source.. I get this:

    <html>
    <head></head>
    <body></body>
    </html>
    I did check on the other core files but didn't do Beyond Compare on them because all of those were original files for me, I didn't modify any of them prior to IH. I did check the cache folder, sorry should have mentioned it, and this one too is empty. I can't figure it out. Every single time I revert to my older backup, everything is running smoothly, no errors and everytime I try to put in the files again, blank page again. As for the quantity of errors, I would have had to have other errors prior to IH to make a list so long right? Things is that I fix all errors as I find them and there are none prior to IH and I don't get either why nothing happens when I add the IH files. I'll try again from the beginning again.

  8. #888
    Join Date
    Jan 2013
    Posts
    113
    Plugin Contributions
    0

    Default Re: Image Handler 4 (for v1.5.x) Support Thread

    My apologies for taking of your time. I had done a major stupid. I always take a fresh copy of my site and place it in a separate folder to test new mods to make sure I don't break the live one. While looking again at the configure.php files, I realised that I had forgotten to rename the store folder. So the errors were getting logged in the live store folder.

    and if it can help anyone else with a different default language, I installed it again while having the default different language installed and it wasn't an issue at all. So no need to remove the language etc...

    My sincere apologies, all is well now.
    Last edited by marieAA; 17 Sep 2013 at 06:04 PM.

  9. #889
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    help question Main image not showing on product page

    Hi,

    Can someone put me in the right direction here, as my main images are not showing in zen-cart-v1.5.1-full-fileset-09182012

    I was using Image Handler 4 for v1.5.x - Version: v4.3.1, but it did not show the images in the IH manager in admin (see post above - and included screen shots), so I did a complete uninstall of IH4.3.1 (used the IH built in uninstaller from ZC_admin), and deleted all the files that IH left behind (checked against the original IH file structure), also deleted the bmz_cache folder.

    As it is suggested in your image_handler_readme.html, zen_lightbox needs to be installed (or some files to be re-written) after IH installation.

    Therefore I uninstalled zen_lightbox-v1.6.4_1, by manually deleting all the files and running the uninstall.sql to make sure that nothing remainde of both IH and zen_lightbox installations.

    Following your install instructions, I did reinstall Image Handler 4 for v1.5.x - Version: v4.3.2. In ZC_admin the installation went ok (all green messages).

    Then I proceeded with the installation of zen_lightbox-v1.6.4_1

    Here is the URL of a test product:
    http://leather-jackets-leather-fashi...t-002-p-9.html

    Looking at the DOM source of the page, I am puzzled by looking at the directories that the images are located in:
    • productMainImage: <img src="images/medium/FOLDER_NAME/002_MED.jpg".........../>
    • productAdditionalImages: <img src="images/FOLDER_NAME/002_01.jpg"........./>


    Here is part of the DOM source code:
    Code:
    <!--bof Main Product Image -->
    <div id="productMainImage" class="centeredContent back">
      <script language="javascript" type="text/javascript">
      <!--
    	document.write('<a href="bmz_cache/3/350e73bc2a07baf3477b70c4fa4a3c69.image.736x800.jpg" rel="lightbox-g" title="High-Neck Leather Jacket - 002"><img src="images/medium/FOLDER_NAME/002_MED.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 " /><br /><span class="imgLink">larger image</span></a>');
      //-->
      </script>
      <a href="bmz_cache/3/350e73bc2a07baf3477b70c4fa4a3c69.image.736x800.jpg" rel="lightbox-g" title="High-Neck Leather Jacket - 002"><img src="images/medium/FOLDER_NAME/002_MED.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 "><br><span class="imgLink">larger image</span></a>
      <noscript>
      <a href="http://leather-jackets-leather-fashion.com/index.php?main_page=popup_image&amp;pID=9" target="_blank"><img src="images/medium/FOLDER_NAME/002_MED.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 " /><br /><span class="imgLink">larger image</span></a>
      </noscript>
    </div><!--eof Main Product Image-->
    
    <!--bof Additional Product Images -->
     <div id="productAdditionalImages">
      <div class="additionalImages centeredContent back" style="width:25%;">
    	<script language="javascript" type="text/javascript">
    	<!--
    	document.write('<a href="bmz_cache/4/49744121e52c7d8d3fcdd0ac7c72cf72.image.661x800.jpg" rel="lightbox-g" title="High-Neck Leather Jacket - 002"><img src="images/FOLDER_NAME/002_01.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 " width="144.666666667" height="175" /><br />larger image</a>');
    Here is the code from main_product_image.php, showing that IH made the needed changes:
    Code:
    <?php
    /**mod Image Handler 4.3.2
     * main_product_image module
     *
     * @package templateSystem
     * @copyright Copyright 2005-2006 Tim Kroeger
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: main_product_image.php 4663 2006-10-02 04:08:32Z drbyte $
     * Last modified by DerManoMann 2010-05-31 23:41:53
     */
    if (!defined('IS_ADMIN_FLAG')) {
      die('Illegal Access');
    }
    $products_image_extension = substr($products_image, strrpos($products_image, '.'));
    //Begin Image Handler changes 1 of 2
    //the next three lines are commented out for Image Handler 4
    //$products_image_base = str_replace($products_image_extension, '', $products_image);
    //$products_image_medium = $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension;
    //$products_image_large = $products_image_base . IMAGE_SUFFIX_LARGE . $products_image_extension;
    $products_image_base = preg_replace('/'.$products_image_extension . '$/', '', $products_image);
    $products_image_medium = DIR_WS_IMAGES . 'medium/' . $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension;
    $products_image_large  = DIR_WS_IMAGES . 'large/' . $products_image_base . IMAGE_SUFFIX_LARGE .  $products_image_extension;
    //End Image Handler changes 1 of 2
    
    //Begin Image Handler changes 2 of 2 (this entire section is commented out for Image Handler 4)
    // check for a medium image else use small
    //if (!file_exists(DIR_WS_IMAGES . 'medium/' . $products_image_medium)) {
    //  $products_image_medium = DIR_WS_IMAGES . $products_image;
    //} else {
    //  $products_image_medium = DIR_WS_IMAGES . 'medium/' . $products_image_medium;
    //}
    // check for a large image else use medium else use small
    //if (!file_exists(DIR_WS_IMAGES . 'large/' . $products_image_large)) {
    //  if (!file_exists(DIR_WS_IMAGES . 'medium/' . $products_image_medium)) {
    //    $products_image_large = DIR_WS_IMAGES . $products_image;
    //  } else {
    //    $products_image_large = DIR_WS_IMAGES . 'medium/' . $products_image_medium;
    //  }
    //} else {
    //  $products_image_large = DIR_WS_IMAGES . 'large/' . $products_image_large;
    //}
    //End Image Handler changes 2 of 2 (this entire section is commented out for Image Handler 4)
      /*
        echo
        'Base ' . $products_image_base . ' - ' . $products_image_extension . '<br>' .
        'Medium ' . $products_image_medium . '<br><br>' .
        'Large ' . $products_image_large . '<br><br>';
      */
    // to be built into a single variable string
    So please can you tell me what went wrong, and why I have 2 different URL's showing?

    Many thanks for your help,

    Goshawk

  10. #890
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: Image Handler 4 (for v1.5.x) Support Thread

    Quote Originally Posted by Goshawk View Post
    Hi,

    Can someone put me in the right direction here, as my main images are not showing in zen-cart-v1.5.1-full-fileset-09182012

    I was using Image Handler 4 for v1.5.x - Version: v4.3.1, but it did not show the images in the IH manager in admin (see post above - and included screen shots), so I did a complete uninstall of IH4.3.1 (used the IH built in uninstaller from ZC_admin), and deleted all the files that IH left behind (checked against the original IH file structure), also deleted the bmz_cache folder.

    As it is suggested in your image_handler_readme.html, zen_lightbox needs to be installed (or some files to be re-written) after IH installation.

    Therefore I uninstalled zen_lightbox-v1.6.4_1, by manually deleting all the files and running the uninstall.sql to make sure that nothing remainde of both IH and zen_lightbox installations.

    Following your install instructions, I did reinstall Image Handler 4 for v1.5.x - Version: v4.3.2. In ZC_admin the installation went ok (all green messages).

    Then I proceeded with the installation of zen_lightbox-v1.6.4_1

    Here is the URL of a test product:
    http://leather-jackets-leather-fashi...t-002-p-9.html

    Looking at the DOM source of the page, I am puzzled by looking at the directories that the images are located in:
    • productMainImage: <img src="images/medium/FOLDER_NAME/002_MED.jpg".........../>
    • productAdditionalImages: <img src="images/FOLDER_NAME/002_01.jpg"........./>


    Here is part of the DOM source code:
    Code:
    <!--bof Main Product Image -->
    <div id="productMainImage" class="centeredContent back">
      <script language="javascript" type="text/javascript">
      <!--
    	document.write('<a href="bmz_cache/3/350e73bc2a07baf3477b70c4fa4a3c69.image.736x800.jpg" rel="lightbox-g" title="High-Neck Leather Jacket - 002"><img src="images/medium/FOLDER_NAME/002_MED.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 " /><br /><span class="imgLink">larger image</span></a>');
      //-->
      </script>
      <a href="bmz_cache/3/350e73bc2a07baf3477b70c4fa4a3c69.image.736x800.jpg" rel="lightbox-g" title="High-Neck Leather Jacket - 002"><img src="images/medium/FOLDER_NAME/002_MED.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 "><br><span class="imgLink">larger image</span></a>
      <noscript>
      <a href="http://leather-jackets-leather-fashion.com/index.php?main_page=popup_image&amp;pID=9" target="_blank"><img src="images/medium/FOLDER_NAME/002_MED.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 " /><br /><span class="imgLink">larger image</span></a>
      </noscript>
    </div><!--eof Main Product Image-->
    
    <!--bof Additional Product Images -->
     <div id="productAdditionalImages">
      <div class="additionalImages centeredContent back" style="width:25%;">
    	<script language="javascript" type="text/javascript">
    	<!--
    	document.write('<a href="bmz_cache/4/49744121e52c7d8d3fcdd0ac7c72cf72.image.661x800.jpg" rel="lightbox-g" title="High-Neck Leather Jacket - 002"><img src="images/FOLDER_NAME/002_01.jpg" alt="High-Neck Leather Jacket - 002" title=" High-Neck Leather Jacket - 002 " width="144.666666667" height="175" /><br />larger image</a>');
    Here is the code from main_product_image.php, showing that IH made the needed changes:
    Code:
    <?php
    /**mod Image Handler 4.3.2
     * main_product_image module
     *
     * @package templateSystem
     * @copyright Copyright 2005-2006 Tim Kroeger
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: main_product_image.php 4663 2006-10-02 04:08:32Z drbyte $
     * Last modified by DerManoMann 2010-05-31 23:41:53
     */
    if (!defined('IS_ADMIN_FLAG')) {
      die('Illegal Access');
    }
    $products_image_extension = substr($products_image, strrpos($products_image, '.'));
    //Begin Image Handler changes 1 of 2
    //the next three lines are commented out for Image Handler 4
    //$products_image_base = str_replace($products_image_extension, '', $products_image);
    //$products_image_medium = $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension;
    //$products_image_large = $products_image_base . IMAGE_SUFFIX_LARGE . $products_image_extension;
    $products_image_base = preg_replace('/'.$products_image_extension . '$/', '', $products_image);
    $products_image_medium = DIR_WS_IMAGES . 'medium/' . $products_image_base . IMAGE_SUFFIX_MEDIUM . $products_image_extension;
    $products_image_large  = DIR_WS_IMAGES . 'large/' . $products_image_base . IMAGE_SUFFIX_LARGE .  $products_image_extension;
    //End Image Handler changes 1 of 2
    
    //Begin Image Handler changes 2 of 2 (this entire section is commented out for Image Handler 4)
    // check for a medium image else use small
    //if (!file_exists(DIR_WS_IMAGES . 'medium/' . $products_image_medium)) {
    //  $products_image_medium = DIR_WS_IMAGES . $products_image;
    //} else {
    //  $products_image_medium = DIR_WS_IMAGES . 'medium/' . $products_image_medium;
    //}
    // check for a large image else use medium else use small
    //if (!file_exists(DIR_WS_IMAGES . 'large/' . $products_image_large)) {
    //  if (!file_exists(DIR_WS_IMAGES . 'medium/' . $products_image_medium)) {
    //    $products_image_large = DIR_WS_IMAGES . $products_image;
    //  } else {
    //    $products_image_large = DIR_WS_IMAGES . 'medium/' . $products_image_medium;
    //  }
    //} else {
    //  $products_image_large = DIR_WS_IMAGES . 'large/' . $products_image_large;
    //}
    //End Image Handler changes 2 of 2 (this entire section is commented out for Image Handler 4)
      /*
        echo
        'Base ' . $products_image_base . ' - ' . $products_image_extension . '<br>' .
        'Medium ' . $products_image_medium . '<br><br>' .
        'Large ' . $products_image_large . '<br><br>';
      */
    // to be built into a single variable string
    So please can you tell me what went wrong, and why I have 2 different URL's showing?

    Many thanks for your help,

    Goshawk
    If understand correctly, in places that are normally a medium image, are wondering why IH4 doesn't override that. For that, read the instructions. Medium images are not handled by IH. I forget the explanation why, but if you want a different image to be displayed so that it is handled by IH then would need to change the ZC code to display a different sized image in place of the medium image.

 

 

Similar Threads

  1. v158 Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread
    By lat9 in forum All Other Contributions/Addons
    Replies: 711
    Last Post: 10 May 2025, 02:13 PM
  2. Attribute image replaces main product image on select [Support Thread]
    By exoticcorpse in forum All Other Contributions/Addons
    Replies: 160
    Last Post: 28 Oct 2024, 10:50 PM
  3. 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
  4. v138a Image Handler 2 (for ZC v1.3.8 ONLY) Support
    By timkroeger in forum All Other Contributions/Addons
    Replies: 7098
    Last Post: 12 Oct 2014, 03:48 AM
  5. Image Handler Support Please
    By nadinesky in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Sep 2013, 03:47 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR