mtechama Posted August 4, 2006 Share Posted August 4, 2006 How do disable the pop up images in the product discription? Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
rabbitseffort Posted August 4, 2006 Share Posted August 4, 2006 edit the product_info.php to exclude the popup function "I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings." ---Margaret Mead--- "The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer. --Ken Kesey" Link to comment Share on other sites More sharing options...
mtechama Posted August 4, 2006 Author Share Posted August 4, 2006 edit the product_info.php to exclude the popup function sorry I couldn't find that function in product_info.php Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
mtechama Posted August 5, 2006 Author Share Posted August 5, 2006 sorry I couldn't find that function in product_info.php Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
mtechama Posted August 10, 2006 Author Share Posted August 10, 2006 I am still can't able to disable the pop up. Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted August 10, 2006 Share Posted August 10, 2006 I am still can't able to disable the pop up. change this <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> to this <td align="center" class="smallText"> <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> </td> Link to comment Share on other sites More sharing options...
mtechama Posted August 10, 2006 Author Share Posted August 10, 2006 change this <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> to this <td align="center" class="smallText"> <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> </td> Now its screwed up my images. It made my images small instead of the regular size Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted August 10, 2006 Share Posted August 10, 2006 just remove the image parameters so you could use <td align="center" class="smallText"> <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name']); ?> </td> Link to comment Share on other sites More sharing options...
mtechama Posted August 10, 2006 Author Share Posted August 10, 2006 just remove the image parameters so you could use <td align="center" class="smallText"> <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name']); ?> </td> I am totally confused Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted August 10, 2006 Share Posted August 10, 2006 In catalog/product_info.php you have 2 pieces of code to be removed/changed. Around about lines 27 -31 Delete the following: <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le ft=150') } //--></script> You also have this code around lines 108-113 <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> As the others have said above, you need to remove the javascript call. Replace the whole section above with this <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> Link to comment Share on other sites More sharing options...
mtechama Posted August 10, 2006 Author Share Posted August 10, 2006 In catalog/product_info.php you have 2 pieces of code to be removed/changed. Around about lines 27 -31 Delete the following: <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le ft=150') } //--></script> You also have this code around lines 108-113 <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> As the others have said above, you need to remove the javascript call. Replace the whole section above with this <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> sorry that didn't work it made all my images small instead of the regular size. matter of fact just forget Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
mtechama Posted August 10, 2006 Author Share Posted August 10, 2006 I have tried everything that was posted above still makes my images small. So I went back to my original settings Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted August 10, 2006 Share Posted August 10, 2006 <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> The size of your images are called by SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, which are defined in your admin panel, the first 2 settings, in configuration under images heading, if they are too small, these can be adjusted there. Link to comment Share on other sites More sharing options...
Guest Posted August 10, 2006 Share Posted August 10, 2006 If your still having problems, post your product_info.php codes here: Link to comment Share on other sites More sharing options...
mtechama Posted August 10, 2006 Author Share Posted August 10, 2006 Well It still screws it up. So I am keeping it like it is. Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted August 11, 2006 Share Posted August 11, 2006 well if you deploy my last post as the replacement of the previous one it works. Just use it as the replacement in what I said earlier. Link to comment Share on other sites More sharing options...
mtechama Posted August 11, 2006 Author Share Posted August 11, 2006 well if you deploy my last post as the replacement of the previous one it works. Just use it as the replacement in what I said earlier. Well your previous post doesn't work I said it mad it worse Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
Guest Posted August 12, 2006 Share Posted August 12, 2006 Well your previous post doesn't work I said it mad it worse works for me. Link to comment Share on other sites More sharing options...
warrenerjm Posted January 11, 2008 Share Posted January 11, 2008 works for me. Works for me too Mark :thumbsup: I used your code ONLY as posted...& I have searched for ages to answer this simple to most question. Even managed to move the image & text about abit! So for others searching keywords: NO pop up images in product_info.php :lol: Thanks Julie Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.