Page 83 of 169 FirstFirst ... 3373818283848593133 ... LastLast
Results 821 to 830 of 1688
  1. #821
    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 DivaVocals View Post
    Given the issue EHSI is having I still suggest a rollback and re-install..
    *nodding head in agreement* but was curious if the system responds differently based on "where" the image is input. Hopefully/expectedly after the reinstall it will work as foreseen, but at least then EHSI will have a deeper understanding of how it all fits together and works.

    I did agree to the reinstall right? :) good luck.

  2. #822
    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 DivaVocals View Post
    I need to add that I remember reporting to ckosloff that the additional images were an issue when IH was updated for 1.3.9.. I also remember that he and had a bit of back and forth on the matter because he didn't think that what I was reporting was an issue.. That is part of the reason the large image popup got rolled back to an old version from a prior version of Zen Cart to begin with.. I had NO IDEA at the time that this would leave the image popups subject to XSS vulnerabilities.. I just knew that the popups and additional images were not working correctly, and I thought I found a solution..

    Anyway.. mc12345678 again.. thanks for your tenacity, and patience..
    Quite welcome, not to say that I didn't have a vested interest in resolving it. :) Thanks for reaching out for assistance.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #823
    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 mc12345678 View Post
    Quite welcome, not to say that I didn't have a vested interest in resolving it. :) Thanks for reaching out for assistance.
    No seriously.. NO WAY I would have ever been able to fix this.. NEVER!!! Thanks soooooo much!! NOW I am going to go get some lunch!!!
    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.

  4. #824
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

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

    Ok, I see all the excitement that it now works. I just don't follow what needs to be done to make it function properly? Can you recap on what you found and what "fix" we need to apply? Thanks.
    Live and learn... the Zen way.

  5. #825
    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 mydanilo View Post
    Ok, I see all the excitement that it now works. I just don't follow what needs to be done to make it function properly? Can you recap on what you found and what "fix" we need to apply? Thanks.
    All I would do is search through the post to write up a recap anyway.. So I'm gonna respectfully ask you to go back through the post..I'm on a mobile device right now (at a restaurant), and recapping things including the code on this tiny device will not be easy.. I promise the required changes are QUITE easy to follow.. The code changes is posted around page 78 or 79..
    Last edited by DivaVocals; 23 Aug 2013 at 09:35 PM.
    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. #826
    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 DivaVocals View Post
    No seriously.. NO WAY I would have ever been able to fix this.. NEVER!!! Thanks soooooo much!! NOW I am going to go get some lunch!!!
    Well, you probably should get some rest too. I saw you were awake a long time.

  7. #827
    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 mydanilo View Post
    Ok, I see all the excitement that it now works. I just don't follow what needs to be done to make it function properly? Can you recap on what you found and what "fix" we need to apply? Thanks.
    The code originally posted and seeming to work is provided here below and at the associated link:
    Quote Originally Posted by mc12345678 View Post
    So here is the code that works for the includes/modules/YOUR_TEMPLATE/additional_images.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;
    //  Begin Image Handler changes 1 of 2
    //next line is commented out for Image Handler
    if (function_exists('handle_image')) {
    $newimg = handle_image($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT);
    list($src, $alt, $width, $height, $parameters) = $newimg;
    
    $products_image_large = zen_output_string($src);
    } 
    
    $flag_has_large = file_exists($products_image_large);
    //  End Image Handler changes 1 of 2
    To be coupled with the following code in the includes/templates/YOUR_TEMPLATE/popup_image_additional/tpl_main_page.php file:

    Code:
    <?php
    /**mod Image Handler 4.1
     * Override Template for common/tpl_main_page.php
     *
     * @package templateSystem
     * @copyright Copyright 2005-2006 Tim Kroeger
     * @copyright Copyright 2003-2005 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: tpl_main_page.php,v 2.0 Rev 8 2010-05-31 23:46:5 DerManoMann Exp $
     */
    ?>
    <body id="popupAdditionalImage" class="centeredContent" onload="resize();">
    <div>
    <?php
    // $products_values->fields['products_image']
    //Begin Image Handler changes 1 of 2
    //the next line is commented out for Image Handler 3
      if (file_exists($_GET['products_image_large_additional'])) {
    //End Image Handler changes 1 of 2
      echo '<a href="javascript:window.close()">' . zen_image($_GET['products_image_large_additional'], $products_values->fields['products_name'] . ' ' . TEXT_CLOSE_WINDOW) . '</a>';
    //Begin Image Handler changes 2 of 2
    //the next three lines are commented out for Image Handler 3
      } else {
        echo '<a href="javascript:window.close()">' . zen_image(DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, POPUP_ADDITIONAL_NO_IMAGE . ' ' . TEXT_CLOSE_WINDOW) . '</a>'; /*v4.3.1c-lat9*/ 
      }
    //End Image Handler changes 2 of 2
    ?>
    </div>
    </body>
    The above code does a check for the existence of the file on the server, and goes to present an image which if the image path is wrong/a non-image on the server, would not display anything as indicated by Dr. Byte if I understood correctly.

  8. #828
    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 mc12345678 View Post
    Well, you probably should get some rest too. I saw you were awake a long time.
    I was!!!! But first I gotta eat!!!
    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.

  9. #829
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

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

    Awesome! @mc1234567 thank you for consolidating the current solution. I'll implement over the weekend.
    Live and learn... the Zen way.

  10. #830
    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 mydanilo View Post
    Awesome! @mc1234567 thank you for consolidating the current solution. I'll implement over the weekend.
    Wasn't anything to "consolidate" really.. simply some changes that needed to be made to the additional_images.php file to work properly with the new
    tpl_main_page.php popup code included in the current IH4 fileset.. and FYI, you need to include the fix to the popup code that torvista posted earlier..
    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.

 

 

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