Guest Posted December 24, 2004 Share Posted December 24, 2004 Where can i take out the hyperlink for the image on the right for click to enlarge? I took off the text. Just want to take out the link when they click the image. Thanks. Link to comment Share on other sites More sharing options...
♥ozcsys Posted December 24, 2004 Share Posted December 24, 2004 Where can i take out the hyperlink for the image on the right for click to enlarge? I took off the text. Just want to take out the link when they click the image. Thanks. <{POST_SNAPBACK}> In your produtct_info.php file replace <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>'; ?> With <?php echo tep_image(DIR_WS_IMAGES .$product_info['products_image'], $product_info['products_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?> 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...
Guest Posted December 27, 2004 Share Posted December 27, 2004 that didnt do it. it took out the image completely. I just want the small image without the link. Thanks In your produtct_info.php file replace <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>'; ?> With <?php echo tep_image(DIR_WS_IMAGES .$product_info['products_image'], $product_info['products_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?> <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
boxtel Posted December 27, 2004 Share Posted December 27, 2004 that didnt do it. it took out the image completely. I just want the small image without the link. Thanks <{POST_SNAPBACK}> if you want the small image without the link to enlarge, only include the small image in your product description in admin. If you to not specify the medium and large image, no popup link will be set. Treasurer MFC Link to comment Share on other sites More sharing options...
♥ozcsys Posted December 28, 2004 Share Posted December 28, 2004 that didnt do it. it took out the image completely. I just want the small image without the link. Thanks <{POST_SNAPBACK}> Sorrry code I posted uses the heading image width instead of the small, it came from a modified store. It still should have worked though the size may may be wrong. Use this code and the image size will stay the same. If you are not getting any image at all you need to check your work as I just double checked and it does work. <?php echo tep_image(DIR_WS_IMAGES .$product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT); ?> 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...
♥ozcsys Posted December 28, 2004 Share Posted December 28, 2004 if you want the small image without the link to enlarge, only include the small image in your product description in admin. If you to not specify the medium and large image, no popup link will be set. <{POST_SNAPBACK}> Unless he is using a loaded version or has installed an image contribution you can only add one image to your product description. 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...
Guest Posted December 29, 2004 Share Posted December 29, 2004 It still doesnt display the image with this code: <?php echo tep_image(DIR_WS_IMAGES .$product_info['products_image'], $product_info['products_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?> I need it to display it without a link is all. There IS an image for every item. Link to comment Share on other sites More sharing options...
Guest Posted December 29, 2004 Share Posted December 29, 2004 nm i see why. I needed SMALL_IMAGE_WIDTH instead of heading. you are configged different. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.