Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler 2 (for ZC v1.3.8 ONLY) Support

Image Handler 2 (for ZC v1.3.8 ONLY) Support

Views: 2,510,696

Results 3,021 to 3,040 of 7,094
20 Sep 2008, 10:08 PM
#3021
stevensmedia avatar

stevensmedia

New Zenner

Join Date:
Jan 2006
Posts:
88
Plugin Contributions:
0

Image Handler 2 (for ZC v1.3.8 ONLY) Support

Wow, more than 300 pages in this thread! IH2 is such a popular contribution, perhaps it deserves it's own sub-forum...?

Anyway, I just noticed an issue with IE7: When I click on a medium image on a product description page, the window that opens to display the large image is not properly sized---it's only 100px high.

It works flawlessly in FF3.

I see this code in the head:

<script language="javascript" type="text/javascript"><!--
function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}
function popupWindowPrice(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=400,screenX=150,screenY=150,top=150,left=150')
}
//--></script>

It seems like IE is calling the first function rather than dynamically sizing the window to the image size.

ZC 1.3.7.

Any ideas?

TIA!!

21 Sep 2008, 2:05 AM
#3022
justmark avatar

justmark

New Zenner

Join Date:
Aug 2008
Location:
Canada
Posts:
46
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Hi guys!

I fix it!!! Stupid me: it was just the option in
Configuration>Images>IH resize images... it was "no"... so it was easy... once I found it!

Try to check this one too because a lot of people seem to loose this nice effect just because they just play with some options that don't really know [see my case]

21 Sep 2008, 2:09 AM
#3023
justmark avatar

justmark

New Zenner

Join Date:
Aug 2008
Location:
Canada
Posts:
46
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

And about the problem with the additional images: the swap was caused by a stupid *.js that I forgot there from previous tries... so... again, my fault! Hi hi!!

I would like if comebody can tell me how can I make the additional images to be seen on the product info page and if I can make them hover... on top of everything... I would like to put my category description in the product info page and to take of the name of the category, to just let there the image...

Anyone?

If you help me I promis I will help you with nice graphics for your site :)

25 Sep 2008, 7:31 AM
#3024
tslav avatar

tslav

New Zenner

Join Date:
Aug 2008
Posts:
22
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

:(

I did not find a solution for my problem.

Any help will be appreciated.

Tzachi

tslav:

I have just installed IH2 and i have a few interesting bugs.

  1. Suppose i have a big product list which is needed to scroll down in order to view all the products. When i hover over small products pictures without scrolling showtrail works fine. I can see the large image near the small image.
    However, when i scroll down a bit i the the big picture stays in a cretin place and not near the small product picture (See Screenshot attached).

  2. My website has two different languages. Hebrew (Right to Left) and English. In the Hebrew language there is a weird bug. Show trail works only for some of the pictures. On the others it just doesn't show the large picture. When i switch to English, everything works like a charm.

Hope you could help me fixing these issues.

Tzachi

25 Sep 2008, 2:29 PM
#3025
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

tslav:

:(

I did not find a solution for my problem.

Any help will be appreciated.

Tzachi

Problem 1. was addressed in post 1255
However the link there is no longer valid

Here is the file you need to replace

26 Sep 2008, 11:37 AM
#3026
tslav avatar

tslav

New Zenner

Join Date:
Aug 2008
Posts:
22
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Thanks mate!

Great help :)

Regarding question (1), I am getting closer to the solution. Because I am using the Hebrew language i need to use the Quote Mark (") in the header some times. The problem occurs only for the products with quote mark. I wonder how I change it in the JavaScript code so it won't make a difference.

Tzachi

26 Sep 2008, 12:10 PM
#3027
tslav avatar

tslav

New Zenner

Join Date:
Aug 2008
Posts:
22
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

HAHA! I made it. I found the solution for (1). :clap:

The function gettrail() uses the (') sign to display the image alt where it should use the (") sign. I.E The function should use the following code:
onmouseover="showtrail('images//b12.jpg',"B12 CHESS INFORMANT Caro-Cann by Sirawan**",56,80,235,331,this,0,0,56,80);"
Instead of:
onmouseover="showtrail('images//b12.jpg',
'B12 CHESS INFORMANT Caro-Cann by Sirawan'**,56,80,235,331,this,0,0,56,80);"

Hope it helps anyone :)

27 Sep 2008, 8:24 PM
#3028
1plm avatar

1plm

New Zenner

Join Date:
Jul 2008
Location:
Cape-Coast, Ghana WestAfrica
Posts:
53
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Sorry guys/gals to bring this issue up again as I have pasted it under the CherryZen Template forum. i dont't know if this post belongs here or there.
I was runing a "sage" template and installed IH2. Ater that whenever you clicked on my sample test Image I got the message/error below even though everything looks right at https://www.afrosupermarket.com
Meaasge or Error Displayed"

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

I thought it was a template error and so I switched to "Cherry zen" template and still get the same error. I have searched the developers tool kit to where I can locate that line of code for correction.
Is it with IH2 or I need to adjust some code to avoid seeing the message displayed.

28 Sep 2008, 4:44 AM
#3029
audradh avatar

audradh

Zen Follower

Join Date:
Oct 2005
Location:
Eastern US
Posts:
429
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

I see that others have had trouble getting additional images working, as am I. I cannot find any solutions in the thread however. Here are a couple of product pages that should be showing additional images:

http://www.naturewearorganics.com/index.php?main_page=product_info&cPath=1_8_28&products_id=378

http://www.naturewearorganics.com/index.php?main_page=product_info&products_id=424

I can see the additional images in IH2. I just reuploaded all of the IH2 files to my server in case I had missed something, no change.

Does anyone have any ideas what else I can look at?

28 Sep 2008, 5:36 AM
#3030
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

1PLM:

Sorry guys/gals to bring this issue up again as I have pasted it under the CherryZen Template forum. i dont't know if this post belongs here or there.
I was runing a "sage" template and installed IH2. Ater that whenever you clicked on my sample test Image I got the message/error below even though everything looks right at www.afrosupermarket.com
Meaasge or Error Displayed"

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

I thought it was a template error and so I switched to "Cherry zen" template and still get the same error. I have searched the developers tool kit to where I can locate that line of code for correction.
Is it with IH2 or I need to adjust some code to avoid seeing the message displayed.

Check your additional_images.php file in the modules folder.

M

28 Sep 2008, 5:56 AM
#3031
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

audradh:

I see that others have had trouble getting additional images working, as am I. I cannot find any solutions in the thread however. Here are a couple of product pages that should be showing additional images:

http://www.naturewearorganics.com/index.php?main_page=product_info&cPath=1_8_28&products_id=378

http://www.naturewearorganics.com/index.php?main_page=product_info&products_id=424

I can see the additional images in IH2. I just reuploaded all of the IH2 files to my server in case I had missed something, no change.

Does anyone have any ideas what else I can look at?

The code for additional images is not being loaded.
You have additional images turned on?
Check to be sure you uploaded all IH files and they are in the correct folders?
M

29 Sep 2008, 9:22 AM
#3032
miriam_t avatar

miriam_t

New Zenner

Join Date:
May 2007
Posts:
38
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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

30 Sep 2008, 3:29 PM
#3033
atma_ram avatar

atma_ram

New Zenner

Join Date:
Aug 2008
Posts:
7
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Hi Every Body......

I have installed IH2 on my website and I am having a problem in it.

  1. When we do mouseover on an image which is on the bottom half of the window, the status bar shows "Error on Page" in IE browser.
    Where as Google Chrome shows all the zoomed images on the top of the website which are not visible if the page is long.
    In Firefox it is working absolutely fine.

  2. In the Admin Section when I click "Preview" the PNG images doesn't show up anything. Some times they show Error message in line 646.

I have seen my Servers info, there PNG was enabled.
I have also tried by reinstalling as well as restoring all the files.

Please solve my problem, I am ready to pay for this.

1 Oct 2008, 1:55 AM
#3034
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Atma Ram:

Hi Every Body......

I have installed IH2 on my website and I am having a problem in it.

  1. When we do mouseover on an image which is on the bottom half of the window, the status bar shows "Error on Page" in IE browser.
    Where as Google Chrome shows all the zoomed images on the top of the website which are not visible if the page is long.
    In Firefox it is working absolutely fine.

  2. In the Admin Section when I click "Preview" the PNG images doesn't show up anything. Some times they show Error message in line 646.

I have seen my Servers info, there PNG was enabled.
I have also tried by reinstalling as well as restoring all the files.

Please solve my problem, I am ready to pay for this.

See post # 3042

M

1 Oct 2008, 2:07 AM
#3035
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

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

1 Oct 2008, 2:13 AM
#3036
1plm avatar

1plm

New Zenner

Join Date:
Jul 2008
Location:
Cape-Coast, Ghana WestAfrica
Posts:
53
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

tophand:

Check your additional_images.php file in the modules folder.

M

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="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

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

?>

1 Oct 2008, 3:05 AM
#3037
1plm avatar

1plm

New Zenner

Join Date:
Jul 2008
Location:
Cape-Coast, Ghana WestAfrica
Posts:
53
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Hooray I solved it!!! or They helped me Solve It!
See 16 lines up from the last line of code in the Includes/modules/additinal_images.php,
There is a that says 'text' => "\n, i just removed "text" and now I don't get Error.
Thanks Folks.
The Check out screen still has a problem though. Just Try checking out a product.

1 Oct 2008, 3:14 AM
#3038
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

miriam_t:

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.

<div class="centerBoxContentsFeatured centeredContent back"

M

1 Oct 2008, 3:41 AM
#3039
tophand avatar

tophand

Totally Zenned

Join Date:
Jan 2007
Location:
1.5 miles from Home
Posts:
674
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

1PLM:

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="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

?>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.

<?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

1 Oct 2008, 2:58 PM
#3040
atma_ram avatar

atma_ram

New Zenner

Join Date:
Aug 2008
Posts:
7
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

tophand:

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?