msaunders Posted September 24, 2002 Share Posted September 24, 2002 Hi Does anyone know how I can remove the 'click to enlarge' image option ??? I dont want it on the site. thanks martin Link to comment Share on other sites More sharing options...
Ajeh Posted September 25, 2002 Share Posted September 25, 2002 In product_info.php is the java for this: <script language="javascript"><!-- document.write('<?php echo '<a href="javascript:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info_values['products_id']) . '')">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], addslashes(clean_html_comments($product_info_values['products_name'])), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> If you want the image to remain and just remove the words, you can edit them out by taking out the: . '<br>' . TEXT_CLICK_TO_ENLARGE Link to comment Share on other sites More sharing options...
msaunders Posted September 25, 2002 Author Share Posted September 25, 2002 Can you be a bit more specific ? I tried what you said and Its not working . what exactly do I need to remove ? thanks martin Link to comment Share on other sites More sharing options...
Ajeh Posted September 26, 2002 Share Posted September 26, 2002 The code to remove as I stated before is the words for Click to Enlarge. when you are done, it should look like this: <script language="javascript"><!-- document.write('<?php echo '<a href="javascript:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info_values['products_id']) . '')">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], addslashes(clean_html_comments($product_info_values['products_name'])), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</a>'; ?>'); //--></script> Now you have a clickable image but the words are not there to tell anyone about it. :lookround: Link to comment Share on other sites More sharing options...
msaunders Posted September 26, 2002 Author Share Posted September 26, 2002 Yup Thats what I tried, and I was getting a parse error . I will retry again. Obviously if it worked for you, then I must be doing something wrong. cheers martin Link to comment Share on other sites More sharing options...
msaunders Posted September 29, 2002 Author Share Posted September 29, 2002 Hi there That definatly doesnt work. So, what Idid was edited the product_info.php in includeslanguagesenglish and took out the words 'click to enlarge' , but the image is still clickable. Half way there, but better. Link to comment Share on other sites More sharing options...
Ajeh Posted September 29, 2002 Share Posted September 29, 2002 weird ... works fine for me, but yes. I left the image clickable, I did not know you wanted that out too. To make it just an image that is not clickable, remove this code: <td align="center" class="smallText"> <script language="javascript"><!-- document.write('<?php echo '<a href="javascript:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info_values['products_id']) . '')">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], addslashes(clean_html_comments($product_info_values['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_values['products_image']) . '">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> </td> and replace with this code: <td align="center" class="smallText"> <?php echo tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> </td> Link to comment Share on other sites More sharing options...
msaunders Posted September 29, 2002 Author Share Posted September 29, 2002 Hey, thanks a lot. Thats exactly what I wanted to do. cheers martin Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.