Hello,
I have one layout issue that I believe is related to the Zen lightbox mod. I thought I installed Zen lightbox successfully. All images were showing up beautifully with the mod. It was when I needed to fix the layout of tpl_products_review_default.php that I came across an unwanted text link that displays the product name and is hyperlinked to the enlarged image using the lightbox mod. I have attached a .jpg of this problem. It sits on the bottom left corner of the product image.
I've tried copying the original tpl_products_review_default.php from the default template, but really this was useless because this problem was already there before I even started tweaking this page. I've tried deleting everything else on tpl_products_review_default.php except for the image to determine which part of the page this extra text link is coming from, and it's definitely linked to the product image somehow. This is the only page that this problem shows up in. All the other product image pages are perfect.
When I view the source code of the page, this section is written as follows:
I thought that there was a closing html tag omitted after title="Carmen ... (in red) so I looked at tpl_modules_main_product_image.php, but I really can't see anything out of place. The source code of tpl_modules_main_product_image.php is:.
.
.
<div id="productReviewsDefaultProductImage" class="centeredContent back">
<div id="productMainImage" class="centeredContent back">
<script language="javascript" type="text/javascript"><!--
document.write('<a href="images/large/carmen_designerhandbag_palema_LRG.jpg" rel="lightbox-g" title="Carmen<br /><span class=\"smallText\">[Carmen]</span>"><img src="images/medium/carmen_designerhandbag_palema_MED.jpg" alt="Carmen [Carmen]" title=" Carmen [Carmen] " width="230" height="210" /><br /><span class="imgLink">larger image</span></a>');
//--></script>
<noscript>
<a href="http://wickedmango.com.au/palema/index.php?main_page=popup_image&pID=51" target="_blank"><img src="images/medium/carmen_designerhandbag_palema_MED.jpg" alt="Carmen [Carmen]" title=" Carmen [Carmen] " width="230" height="210" /><br /><span class="imgLink">larger image</span></a></noscript>
</div>
<div class="buttonRow">
<a href="http://wickedmango.com.au/palema/index.php?main_page=product_reviews&products_id=51&action=buy_now"><img src="includes/templates/palema/buttons/english/button_in_cart.gif" alt="Add To Shopping My Bag" title=" Add To Shopping My Bag " width="178" height="30" /></a><br /></div>
</div>
.
.
.
(NB. I've added an extra space between : and p in the javascript call above to prevent the smily from appearing in this post)<?php
/**
* Module Template
*
* @package templateSystem
* @copyright 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 3208 2006-03-19 16:48:57Z birdbrain $
*/
?>
<?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?>
<div id="productMainImage" class="centeredContent back">
<?php // bof Zen Lightbox 2008-12-15 aclarke ?>
<?php
if (ZEN_LIGHTBOX_STATUS == 'true') {
if (ZEN_LIGHTBOX_GALLERY_MODE == 'true' && ZEN_LIGHTBOX_GALLERY_MAIN_IMAGE == 'true') {
$rel = 'lightbox-g';
} else {
$rel = 'lightbox';
}
?>
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo '<a href="' . zen_lightbox($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="' . $rel . '" title="' . addslashes($products_name) . '">' . 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>
<?php } else { ?>
<?php // eof Zen Lightbox 2008-12-15 aclarke ?>
<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>
<?php // bof Zen Lightbox 2008-12-15 aclarke ?>
<?php } ?>
<?php // eof Zen Lightbox 2008-12-15 aclarke ?>
<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>
</div>
I'm using Zencart v1.38a. Other addons that were previously installed include: About Us Page, Column Divider Pro, Column Layout Grid, CSS Menu, Flash Hacks, Newsletter Subscribe, Time Zone Offset and RFQ.
I'm sure it's something really simple but for the life of me I can't see it and it's slowly driving me insane.Can anyone help me?


Can anyone help me?
Reply With Quote

