Page 306 of 710 FirstFirst ... 206256296304305306307308316356406 ... LastLast
Results 3,051 to 3,060 of 7099
  1. #3051
    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 miriam_t View Post
    I have a problem with the hover effect in IE6 and IE7 and in Opera. The Firefox version 2 and 3 and also Safari is working well with the hover on the category-pages. But IE only hovers on the product info pages, not on the category or featured products. I stared quite a long time at the code, but cannot find what causes this...

    Here's a url: http://rabe-und-rose.de/index.php

    Thanks in advance for any helpful hints!

    regards, miriam
    Found this which is not in your style sheet in the "featured products" code.
    Code:
    <div class="centerBoxContentsFeatured centeredContent back"
    M

  2. #3052
    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 1PLM View Post
    Thanks for the feedback. I checked where you mentioned and the ending portion of the file is pasted below. What do I change and which line? Also Please click on a product and proceed to check out and see the Error At The Checkout Screen.
    Thanks.

    CONTENTS OF FILE:
    // 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 == 0 ) {
    $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];
    $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 = 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);
    $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);

    // Link Preparation:
    $script_link = '<script language="javascript" type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascriptopupWindow(\\\'' . $large_link . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';

    $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="javascriptopupWindow(\''. $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

    ?>xt' => "\n " . $link);
    $col ++;
    if ($col > (IMAGES_AUTO_ADDED -1)) {
    $col = 0;
    $row ++;
    }
    } // end for loop
    } // endif

    ?>
    Your code in red is not correct.
    If you look at what is red, you will see it is a repeat of the next 9 lines. The code ends at the first // endif ?> and everything after that is displaying on your page.

    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_image, strrpos($products_image, '.'));
      $products_image_base = str_replace($products_image_extension, '', $products_image);
    
      // if in a subdirectory
      if (strrpos($products_image, '/')) {
        $products_image_match = substr($products_image, strrpos($products_image, '/')+1);
        //echo 'TEST 1: I match ' . $products_image_match . ' - ' . $file . ' -  base ' . $products_image_base . '<br>';
        $products_image_match = str_replace($products_image_extension, '', $products_image_match) . '_';
        $products_image_base = $products_image_match;
      }
    
      $products_image_directory = str_replace($products_image, '', substr($products_image, strrpos($products_image, '/')));
      if ($products_image_directory != '') {
        $products_image_directory = DIR_WS_IMAGES . str_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 (substr($file, strrpos($file, '.')) == $file_extension) {
              //          if(preg_match("/" . $products_image_match . "/i", $file) == '1') {
              if(preg_match("/" . $products_image_base . "/i", $file) == '1') {
                if ($file != $products_image) {
                  if ($products_image_base . str_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 == 0 ) {
        $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];
        $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);
    
        // Link Preparation:
        $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>';
    
        $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
    
    ?>
    M

  3. #3053
    Join Date
    Aug 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    Quote Originally Posted by tophand View Post
    Darn time limit...
    Atma Ram

    1) See post 3042
    2) If you type the url of the image in your browser, can you view it?

    M
    Nice to see that Problems are getting solved little bit...

    I have replaced the file but that has resolved only one problem. Its showing perfectly in IE now...

    The other problem like in CHrome and in Admin Sections... All are the same still.....

    What should I do now?

  4. #3054
    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 Atma Ram View Post
    Nice to see that Problems are getting solved little bit...

    I have replaced the file but that has resolved only one problem. Its showing perfectly in IE now...

    The other problem like in CHrome and in Admin Sections... All are the same still.....

    What should I do now?
    Can you answer my #2 question?
    Possible you have corrupt png image(s).

    Possible that Chrome doesn't support this or maybe you need to tune something on??

  5. #3055
    Join Date
    May 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    Tophand! Thank you very much! Great work here...

    Quote Originally Posted by tophand View Post
    Found this which is not in your style sheet in the "featured products" code.
    Code:
    <div class="centerBoxContentsFeatured centeredContent back"
    M
    You are right - it is hardcoded in includes/modules/featured_products.php.

    What should I do with this? I only need the styling of centerBoxContentsFeatured...
    The class of .centeredContent or .back is are mentioned in the css-file and but should not interfere with the rendering of the site, shouldn't it?

    I don't know what I should do? Or is this difference the only thing you found so far, what "could" mess up with IE6, IE7 ?

    I changed the featured_products.php to use only .centerBoxContentsFeatured, but that made no difference - hover images are not showing up.

  6. #3056
    Join Date
    Mar 2007
    Location
    Scotland
    Posts
    41
    Plugin Contributions
    0

    image problem Image Handler 2 Support - Mixed up images

    One of my clients is using Image Handler on their site (and has been quite happily for a couple of years).

    Recently they added some new items to their shop and images for the new items and some of their existing items, became mixed up. Old items with new images, some images appearing on multiple items. All very random.

    Has anyone else had this happening to them?

    Any ideas would be great.

    Thanks!

  7. #3057
    Join Date
    Aug 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    Quote Originally Posted by tophand View Post
    Can you answer my #2 question?
    Possible you have corrupt png image(s).

    Possible that Chrome doesn't support this or maybe you need to tune something on??
    Checked with the direct link to PNG image.... It is viewable and was okay...

    What I have seen is, on the product listing page, its not showing the small image but when I mouse over, the zoom image comes up....

    Regarding Chrome.. It doesn't support checked other websites on it....

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

    Default Re: Image Handler 2 Support - Mixed up images

    Quote Originally Posted by ndg_uk View Post
    One of my clients is using Image Handler on their site (and has been quite happily for a couple of years).

    Recently they added some new items to their shop and images for the new items and some of their existing items, became mixed up. Old items with new images, some images appearing on multiple items. All very random.

    Has anyone else had this happening to them?

    Any ideas would be great.

    Thanks!
    Images are not named correctly.

    https://www.zen-cart.com/tutorials/index.php?article=58
    https://www.zen-cart.com/tutorials/i...hp?article=315

    M

  9. #3059
    Join Date
    Mar 2007
    Location
    Scotland
    Posts
    41
    Plugin Contributions
    0

    Default Re: Image Handler 2 Support

    Seems to have done the trick!

    Thanks for your help

  10. #3060
    Join Date
    Nov 2007
    Posts
    11
    Plugin Contributions
    0

    help question Re: Image Handler 2 Support

    I am using latest version of image handler. Everything is working out fine for me.

    There is only one problem. I am able to see watermarking on medium size image that gets howered up. But Watermarking does not appar on large size additional images that i add to the product.

 

 

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