Page 228 of 710 FirstFirst ... 128178218226227228229230238278328 ... LastLast
Results 2,271 to 2,280 of 7099
  1. #2271
    Join Date
    Mar 2007
    Posts
    153
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    If instead of safe_mode, you set an open_basedir directory then all file operations will be limited to files under the specified directory. .....
    ----perhaps host has set new restrictions----


    Warning: main() [function.main]: open_basedir restriction in effect..

  2. #2272
    Join Date
    Feb 2008
    Posts
    20
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    My new site has Image Handler2 install and was working OK till I installed Zen lightbox v1.4. Zen lightbox works OK but not Image Handler2.

    I have looked for help in the forum but not yet found a fix.

    Please help

    My new site http://www.indigosilvergems.com

  3. #2273
    Join Date
    Feb 2007
    Location
    NNJ
    Posts
    212
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    Jatocar,

    Your problem sounds fairly common. If you haven't seen that here then you haven't looked all that hard.

    There is most likely a file that these two mods share in common.
    By installing the Litebox, you most likely negated the modification made to that file by IH2.

    When this happens, you have to merge the changes into a single version as opposed to blindly uploading the file.

    Go back and trace over your steps to see if this is the case, if you find a common file that both mods have modified, pick one version and then merge in the changes from the other one.

    Let us know how that goes for you.
    Elliot

    The loves of my life are a good white zinfandel and my dog Homer.

  4. #2274
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    These are possibly two files from ZenLight Box that you might want to compare to IH2 if IH2 uses these files as well.

    \includes\templates\YOUR-TEMPLATE-FOLDER\templatestpl_modules_main_product_image.php
    \includes\modules\YOUR-TEMPLATE-FOLDER\additional_images.php


    IH2 and Zen Litebox works fine. You can see it on our site. To see additional images in effect search for CSGFT0004.

  5. #2275
    Join Date
    Feb 2008
    Posts
    20
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    Quote Originally Posted by BlessIsaacola View Post
    These are possibly two files from ZenLight Box that you might want to compare to IH2 if IH2 uses these files as well.

    \includes\templates\YOUR-TEMPLATE-FOLDER\templatestpl_modules_main_product_image.php
    \includes\modules\YOUR-TEMPLATE-FOLDER\additional_images.php


    IH2 and Zen Litebox works fine. You can see it on our site. To see additional images in effect search for CSGFT0004.
    Thanks for your info, will it be easier for me to reinstall IH2 as I am new to Zen cart and not yet know my way round.

    Is a more detail fix available to dig me out this one?

    Thanks

  6. #2276
    Join Date
    Feb 2007
    Location
    Sacramento, CA
    Posts
    64
    Plugin Contributions
    1

    Default Re: Image Handler 2 Support

    Hi,

    I'm having an annoying little problem. IH is working great for me on the front end, but a lot of the product images on the backend are broken. The reason why the images are broken is that IH is giving the wrong relative URL.

    My site is at www.domain.com/new/, but IH is saying that the relative URLs for the images on the backend are at /new//new/index.php instead of /new/index.php

    Anybody have any idea how to change this?

    Thanks a lot,

    Luke

  7. #2277
    Join Date
    Jul 2007
    Posts
    156
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    Hi,
    Can anyone tell me is the latest version of IH2 (updated oct 2007 in download section) compatible with zen cart 1.3.8a, there seems to be a lot of differences in the admin/includes/modules/catagory_product_listing.php file

  8. #2278
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    Quote Originally Posted by Jatocar View Post
    Thanks for your info, will it be easier for me to reinstall IH2 as I am new to Zen cart and not yet know my way round.

    Is a more detail fix available to dig me out this one?

    Thanks
    Whether you reinstall or keep your current installation, the key is to use a file compare tool like winmerge or beyond and compare to make sure that you incorporate changes that you need into the file that is shared by both. I am going to be installing this on test site soon, if you're still having problem, I will post the changes here.

  9. #2279
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    Quote Originally Posted by Jatocar View Post
    Thanks for your info, will it be easier for me to reinstall IH2 as I am new to Zen cart and not yet know my way round.

    Is a more detail fix available to dig me out this one?

    Thanks
    Okay, I just checked our production installation. The file that they both shared is \includes\modules\YOUR-TEMPLATE-FOLDER\additional_images.php

    Both IH2 and Zen Lightbox touches this file so you want to merge the changes.

    Pasted below is the file in my override folder.
    PHP Code:
    <?php
    /**
     * additional_images module
     *
     * Prepares list of additional product images to be displayed in template
     *
     * @package templateSystem
     * @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: additional_images.php 5369 2006-12-23 10:55:52Z drbyte $
     */
    if (!defined('IS_ADMIN_FLAG')) {
      die(
    'Illegal Access');
    }
    if (!
    defined('IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE')) define('IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE','Yes');
    $images_array = array();

    if (
    $products_image != '') {
      
    // prepare image name
      
    $products_image_extension substr($products_imagestrrpos($products_image'.'));
      
    $products_image_base ereg_replace($products_image_extension '$'''$products_image);

      
    // if in a subdirectory
      
    if (strrpos($products_image'/')) {
        
    $products_image_match substr($products_imagestrrpos($products_image'/')+1);
        
    //echo 'TEST 1: I match ' . $products_image_match . ' - ' . $file . ' -  base ' . $products_image_base . '<br>';
        
    $products_image_match ereg_replace($products_image_extension''$products_image_match) . '_';
        
    $products_image_base $products_image_match;
      }

      
    $products_image_directory ereg_replace($products_image''substr($products_imagestrrpos($products_image'/')));
      if (
    $products_image_directory != '') {
        
    $products_image_directory DIR_WS_IMAGES ereg_replace($products_image_directory''$products_image) . "/";
      } else {
        
    $products_image_directory DIR_WS_IMAGES;
      }

      
    // Check for additional matching images
      
    $file_extension $products_image_extension;
      
    $products_image_match_array = array();
      if (
    $dir = @dir($products_image_directory)) {
        while (
    $file $dir->read()) {
          if (!
    is_dir($products_image_directory $file)) {
            if(
    preg_match("/" $products_image_base "/i"$file) == '1') {
              if (
    substr($file0strrpos($file'.')) != substr($products_image0strrpos($products_image'.'))) {
                if (
    $products_image_base ereg_replace($products_image_base''$file) == $file) {
                    
    //echo 'I AM A MATCH ' . $file . '<br />';
                  
    $images_array[] = $file;
                } else {
                    
    //echo 'I AM NOT A MATCH ' . $file . '<br />';
                
    }
              }
            }
          }
        }
        if (
    sizeof($images_array)) {
          
    sort($images_array);
        }
        
    $dir->close();
      }
    }

    // Build output based on images found
    $num_images sizeof($images_array);
    $list_box_contents '';
    $title '';

    if (
    $num_images) {
      
    $row 0;
      
    $col 0;
      if (
    $num_images IMAGES_AUTO_ADDED || IMAGES_AUTO_ADDED == ) {
        
    $col_width floor(100/$num_images);
      } else {
        
    $col_width floor(100/IMAGES_AUTO_ADDED);
      }

      for (
    $i=0$n=$num_images$i<$n$i++) {
        
    $file $images_array[$i];
        
    $file_extension substr($filestrrpos($file'.'));
        
    $products_image_large ereg_replace('^' DIR_WS_IMAGESDIR_WS_IMAGES 'large/'$products_image_directory) . ereg_replace($file_extension '$'''$file) . IMAGE_SUFFIX_LARGE $file_extension;
        
    $flag_has_large true;
        
    $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);

        
    // Link Preparation:
        // bof Zen Lightbox v1.4 aclarke 2007-09-22
        
    if (ZEN_LIGHTBOX_STATUS == 'true') {
        
        
    $script_link '<script language="javascript" type="text/javascript"><!--' "\n" 'document.write(\'' . ($flag_display_large '<a href="' zen_lightbox($products_image_largeaddslashes($products_name), LARGE_IMAGE_WIDTHLARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" title="' addslashes($products_name) . '">' $thumb_slashes '<br />' TEXT_CLICK_TO_ENLARGE '</a>' $thumb_slashes) . '\');' "\n" '//--></script>';
        
        } else {
                
        
    $script_link '<script language="javascript" type="text/javascript"><!--' "\n" 'document.write(\'' . ($flag_display_large '<a href="javascript:popupWindow(\\\'' $large_link '\\\')">' $thumb_slashes '<br />' TEXT_CLICK_TO_ENLARGE '</a>' $thumb_slashes) . '\');' "\n" '//--></script>';
        
        }
        
    // eof Zen Lightbox v1.4 aclarke 2007-09-22

        
    $noscript_link '<noscript>' . ($flag_display_large '<a href="' zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL'pID=' $_GET['products_id'] . '&pic=' $i '&products_image_large_additional=' $products_image_large) . '" target="_blank">' $thumb_regular '<br /><span class="imgLinkAdditional">' TEXT_CLICK_TO_ENLARGE '</span></a>' $thumb_regular ) . '</noscript>';

        
    //      $alternate_link = '<a href="' . $products_image_large . '" onclick="javascript:popupWindow(\''. $large_link . '\') return false;" title="' . $products_name . '" target="_blank">' . $thumb_regular . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>';

        
    $link $script_link "\n      " $noscript_link;
        
    //      $link = $alternate_link;

        // List Box array generation:
        
    $list_box_contents[$row][$col] = array('params' => 'class="additionalImages centeredContent back"' ' ' 'style="width:' $col_width '%;"',
        
    'text' => "\n      " $link);
        
    $col ++;
        if (
    $col > (IMAGES_AUTO_ADDED -1)) {
          
    $col 0;
          
    $row ++;
        }
      } 
    // end for loop
    // endif

    ?>

  10. #2280
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    Quote Originally Posted by Phil020782 View Post
    Hi,
    Can anyone tell me is the latest version of IH2 (updated oct 2007 in download section) compatible with zen cart 1.3.8a, there seems to be a lot of differences in the admin/includes/modules/catagory_product_listing.php file
    It's compatible as long as you use a file compare to merge the changes.

 

 

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

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