mmontalbano Posted December 6, 2007 Posted December 6, 2007 I've experienced problems in the past with the Click to Enlarge not working but never a 404 error. Can someone take a look at this site and click the Enlarge button Link I compared the popup_image.php file to another site's file that works. They are identical. I can't figure out where the problem exists. Thanks
usernamenone Posted December 6, 2007 Posted December 6, 2007 Oh yes, the ever famous Template Monster Template. You have some coding errors in your product_info.php file. Looks like a space in the code. Open the product_info.php and find this <script language="javascript"> section and replace it with this code: <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>
mmontalbano Posted December 7, 2007 Author Posted December 7, 2007 Oh yes, the ever famous Template Monster Template. You have some coding errors in your product_info.php file. Looks like a space in the code. Open the product_info.php and find this <script language="javascript"> section and replace it with this code: <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> Tried changing the code and it didn't fix it. Anyone else have any ideas???
Guest Posted December 14, 2007 Posted December 14, 2007 I'm in the same boat, when i click it it does nothing. anyone know i have been trying to figure this out all day.
usernamenone Posted December 14, 2007 Posted December 14, 2007 replace your code in popup_image.php with this require('includes/application_top.php'); $navigation->remove_current_page(); $products_query = tep_db_query("select pd.products_name, p.products_image from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'"); $products = tep_db_fetch_array($products_query); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo $products['products_name']; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <script language="javascript"><!-- var i=0; function resize() { if (navigator.appName == 'Netscape') i=40; if (document.images[0]) window.resizeTo(document.images[0].width +40, document.images[0].height+100-i); self.focus(); } //--></script> </head> <body onload="resize();"> <?php echo tep_image(DIR_WS_IMAGES . $products['products_image'], $products['products_name']); ?> </body> </html> <?php require('includes/application_bottom.php'); ?> If it does not work then you have opened up that file in an editor other than a text or php editor
Recommended Posts
Archived
This topic is now archived and is closed to further replies.