Hi folks;
Tried searching for a solution to this but no soap. Is this still unresolved or is there a solution buried here somewhere?
Thank you.
Printable View
Well, to get the lightbox working,
put a copy of jscript_lightbox.php into:
includes/modules/pages/product_reviews/
thanks for your contribution
Below code fixes second part of problem.
in tpl_modules_main_product_image.php
Make like this:
<?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)); ?>
<?php if (strrpos($products_name, '[')){$products_name=substr($products_name,0,strrpos($products_name, "[")-1);}?>
<div id="productMainImage" class="centeredContent back">
<!-- begin zen lightbox v1.3 aclarke 2006-10-20 -->
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo '<a href="' . zen_image_lightbox_IH2_url($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="lightbox[gallery]" 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>
<!-- end zen lightbox v1.3 aclarke 2006-10-20 -->
<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>
Hope that last post is usable, I don't know how you guys escape your code for posting. Sorry.
If you want a copy of the patched file, please email me and I be happy to send.
Hi Alex, thanks for the heads up on that one, I tried it as follows
but that diddn't work either :( Tried a few variations in the punctuation as well with no luck. I'm very greatful for the trouble you are taking in helping me by the way, especially as it seems to be getting a little off topic now.Quote:
#productAdditionalImages, {display:none; ! important }
Hello again Alex, I'm afraid that isn't the problem as I originally put it in without the gap between ! and important, and in fact I just reverted to that to see if mabe I'd just been a little hasty when testing. Still no joy. I've tried every variation I could think of but that's not to say I've exhausted them all. I'll keep trying and let you know if I get the right one.
try.....Code:.additionalImages a {display:none;}