RE: [Contribution] Image Resize v1.5
dougedmunds <[email protected]>
| Newsgroups | gmane.comp.web.oscommerce.contributions |
|---|---|
| Message-ID | <7129cf70533411054499359ac65c5d74@osCommerce-Forums> |
This message was sent from: Contributions http://forums.oscommerce.com/viewtopic.php?p=226604#226604 ---------------------------------------------------------------- This worked for me (using osCommerce 2.2 Milestone 2) I was unable to display the large picture, when clicking to enlarge. Start with the catalog/popup_image.php file that comes with Image Resizer 1.5, make the 2 changes noted: basically, removing references to DIR_FS_DOCUMENT_ROOT and DIR_WS_CATALOG . Change 1 is optional, because it is a change to a comment. <body onload="resize();"> <?php $image_subdir = DIR_FS_CATALOG_IMAGES_BIG; if (substr($image_subdir, -1) != '/') $image_subdir .= '/'; // if you have problems showing the big image, remove the slashes and check the path // change 1: change next line to // echo DIR_WS_IMAGES .$image_subdir . $products_values['products_image']; //change2 change: the $image= line to this: $image = ((is_file(DIR_WS_IMAGES . $image_subdir . $products_values['products_image'])) ? DIR_WS_IMAGES . $image_subdir . $products_values['products_image'] : DIR_WS_IMAGES . $products_values['products_image']); echo tep_image($image, $products_values['products_name']); ?> </body>