klavarmusic Posted March 17, 2005 Share Posted March 17, 2005 Help........ When I edited the php script to disable the 'Click to Enlarge Images' I got a parse error and the image that was on the page disappeared altogether. Anyone got any advice please. Bridgette E-mail: klavar@klavarmusic.com Link to comment Share on other sites More sharing options...
♥ozcsys Posted March 17, 2005 Share Posted March 17, 2005 Help........When I edited the php script to disable the 'Click to Enlarge Images' I got a parse error and the image that was on the page disappeared altogether. Anyone got any advice please. Bridgette E-mail: klavar@klavarmusic.com <{POST_SNAPBACK}> Fix the parse error. Sorry could not help myself. Posting your code would have helped but try this. Replace <tr> <td class="main"> <?php if (tep_not_null($product_info['products_image'])) { ?> <table border="0" cellspacing="0" cellpadding="2" align="right"> <tr> <td align="center" class="smallText"> <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> </td> </tr> With <tr> <td class="main"> <?php if (tep_not_null($product_info['products_image'])) { ?> <table border="0" cellspacing="0" cellpadding="2" align="right"> <tr> <td align="center" class="smallText"> <?php echo tep_image(DIR_WS_IMAGES .$product_info['products_image'], $product_info['products_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?> </td> </tr> The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
luckyhuckster Posted March 23, 2005 Share Posted March 23, 2005 Brilliant! Thanks - I've been looking for that too! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.