Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Additional Images not showing

Additional Images not showing

Locked

Views: 4,621

Results 21 to 30 of 30
This thread is locked. New replies are disabled.
5 Nov 2007, 9:03 AM
#21
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Additional Images not showing

Nimbuz:

Additional Images display fine on classic template.
If Classic template works fine with additional images,
this suggests there may be a problem with template
where additional images do not show...

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

5 Nov 2007, 9:05 AM
#22
tophand avatar

tophand

Totally Zenned

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

Re: Additional Images not showing

Nimbuz:

Additional Images display fine on classic template.

(Yep, I've run out of ideas myself. ;-))

Then it is a template issue.
Is this a template you purchased?

M

5 Nov 2007, 9:05 AM
#23
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Re: Additional Images not showing

<!--bof Additional Product Images -->
<?php
/**
 * display the products additional images
 */
  require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
<!--eof Additional Product Images -->

This is the code in my current templates tpl_product_info_display.php, isn't it looking alright?

CSS Evangelist

5 Nov 2007, 9:06 AM
#24
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Re: Additional Images not showing

Nope, a template I designed myself (using template_default as base ofcourse).

CSS Evangelist

5 Nov 2007, 9:56 AM
#25
tophand avatar

tophand

Totally Zenned

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

Re: Additional Images not showing

Nimbuz:

<!--bof Additional Product Images --> <?php /** * display the products additional images */ require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?> <!--eof Additional Product Images -->

My active tpl_product_info_display.php
<!--bof Additional Product Images --> <!--eof Additional Product Images -->

Compare you custom tpl_product_info_display.php to the Classic tpl_product_info_display.php.

M
12 Nov 2007, 6:35 PM
#26
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Re: Additional Images not showing

Update: This isn't a template issue. ZenLightbox is messing it up, just CONFIRMED it by comparing files — one that shows additional images and the one provided in zenlightbox acrhive.

Changes (in additional_images.php):

Original (O): Blank
Zen Version (ZV):

Line 18: 
$images_array = array();

O:

  $products_image_base = ereg_replace($products_image_extension . '$', '', $products_image);

ZV:

  $products_image_base = str_replace($products_image_extension . '$', '', $products_image);

O:

  $products_image_match = ereg_replace($products_image_extension, '', $products_image_match) . '_';

ZV:

$products_image_match = str_replace($products_image_extension, '', $products_image_match) . '_';

O:
[/code]
$products_image_directory = ereg_replace($products_image, '', substr($products_image, strrpos($products_image, '/')));
[/code]
Z:

$products_image_directory = str_replace($products_image, '', substr($products_image, strrpos($products_image, '/')));

O:```
$products_image_directory = DIR_WS_IMAGES . ereg_replace($products_image_directory, '', $products_image) . "/";

ZV:

$products_image_directory = DIR_WS_IMAGES . str_replace($products_image_directory, '', $products_image) . "/";


O:

if ($products_image_base . ereg_replace($products_image_base, '', $file) == $file) {

ZV: ```
if ($products_image_base . str_replace($products_image_base, '', $file) == $file) {

O: Blank/None
ZV:

	// 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_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" title="' . addslashes($products_name) . '">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
	
	} else {
			

..there're a few more changes.

I'm no PHP guy, can someone please look into it? Its confirmed that this particular zenlightbox version of additional_images.php is blocking the additional images, so you won't be wasting your time.

Thanks!

CSS Evangelist

14 Nov 2007, 3:19 AM
#27
tophand avatar

tophand

Totally Zenned

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

Re: Additional Images not showing

Nimbuz:

Update: This isn't a template issue. ZenLightbox is messing it up, just CONFIRMED it by comparing files — one that shows additional images and the one provided in zenlightbox acrhive.

I'm no PHP guy, can someone please look into it? Its confirmed that this particular zenlightbox version of additional_images.php is blocking the additional images, so you won't be wasting your time.

Thanks!

Have you check in the thread for Zen Lightbox for a fix?
If not here is the link to it.
http://forum.zen-cart.com/showthread.php?t=45314&page=79
Another
http://forum.zen-cart.com/showthread.php?t=45314&page=72

M

14 Nov 2007, 3:33 AM
#28
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Re: Additional Images not showing

I contact the author (Alex Clarke) and he didn't seem to have a solution.

But well, THIS WORKED! :D

CSS Evangelist

8 Jul 2009, 11:05 PM
#29
megan43 avatar

megan43

New Zenner

Join Date:
Jul 2009
Posts:
1
Plugin Contributions:
0

Re: Additional Images not showing

Hi -- the link to your fix for this appears to have expired -- the page no longer be there. I really need to know how to fix this issue with additional images not displaying. Could I bother you to post it, please? thanks a million

8 Jul 2009, 11:21 PM
#30
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Additional Images not showing

megan43:

Hi -- the link to your fix for this appears to have expired -- the page no longer be there. I really need to know how to fix this issue with additional images not displaying. Could I bother you to post it, please? thanks a million

here is the correct link

http://www.zen-cart.com/forum/showpost.php?p=443378&postcount=720