Forums / Addon Templates / Problem with tpl_modules_main_product_image.php

Problem with tpl_modules_main_product_image.php

Started by sethf on 7 Oct 2011, 10:33 AM · Views: 1,640

Results 1 to 5 of 5
7 Oct 2011, 10:33 AM
#1
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Problem with tpl_modules_main_product_image.php

Hi

I tried to install Fual Slimbox. (I uninstalled lightbox completely first)
I merged the additional images file. I also merged the tpl_modules_main_product_image.php but for some reason after that merge my product info didn't display at all...

You can see my website here:
http://www.pcselect.co.za

This is what tpl_modules_main_product_image.php looks like:

<?php
/**
 * Module Template
 *
 * @package templateSystem
 * @copyright Copyright 2007 FUAL
 * @copyright Portions 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_modules_main_product_image.php 2007-12-04 btyler $
 */
?>
<?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?> 
<div id="productMainImage" class="centeredContent back">
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>');
//--></script>
<noscript>
<?php
  echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';
?>
	<script language="javascript" type="text/javascript"><!--
	document.write('<?php echo $fualSlimboxContent; ?>' );
	//--></script>
	<noscript>
	<?php
	// If they can't be bothered to get a decent browser or turn js on then they only deserve the default behaviour.
	echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';
?>
	</noscript>
<?php 		
} else {
?>
<!-- bof Zen Slimbox v0.1 btyler 2007-12-04 -->
	<script language="javascript" type="text/javascript"><!--
	document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>');
	//--></script>
	<noscript>
	<?php
	echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';
	?>
	</noscript>
<?php } ?>
</div>

Does something not look right?

Thanks
S

7 Oct 2011, 1:10 PM
#2
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Re: Problem with tpl_modules_main_product_image.php

edit: I am running Image Handler v3

7 Oct 2011, 6:01 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Problem with tpl_modules_main_product_image.php

for some reason after that merge my product info didn't display at all...
I see product info when viewing

/index.php?main_page=product_info&cPath=4_2_46&products_id=51

Zen-Venom Get Bitten

8 Oct 2011, 6:05 AM
#4
thunder2010 avatar

thunder2010

New Zenner

Join Date:
Aug 2010
Location:
Egypt - USA
Posts:
86
Plugin Contributions:
0

Re: Problem with tpl_modules_main_product_image.php

i think you still have lightbox and i can see product info display at all your site pages normally.
I have small question for you plz ... where you get the facebook, tweet, etc that i can see them under your products main image ??what is the mod name and link to get it plz

8 Oct 2011, 9:27 AM
#5
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Re: Problem with tpl_modules_main_product_image.php

kobra:

I see product info when viewing

/index.php?main_page=product_info&cPath=4_2_46&products_id=51

I changed the site back to lightbox. Basically all I would like to know is how to make it so that when a person clicks on an image, the lightbox will come up, but when a person click out of the lightbox (in the darkened area) the lightbox will disappear along with the darkened area.

thunder2010:

i think you still have lightbox and i can see product info display at all your site pages normally.
I have small question for you plz ... where you get the facebook, tweet, etc that i can see them under your products main image ??what is the mod name and link to get it plz

Yes I installed it again.

The add on is http://www.addthis.com/

I am just not sure why the "Like" button doesn't display the bubble unless it has more than 0 like.

Thanks
S