guanche Posted February 28, 2003 Share Posted February 28, 2003 I'd like to do away with the click to enlarge link for the pop up larger image and instead have a view larger photo link that would up-size the product image right there in the main product info area without the pop up routine...Is there already a contribution out there that will do this? Any suggestions? Link to comment Share on other sites More sharing options...
Ajeh Posted February 28, 2003 Share Posted February 28, 2003 Do you mean show the small image everywhere, but on product_info.php just so the real image at real size? Link to comment Share on other sites More sharing options...
capsulas Posted February 28, 2003 Share Posted February 28, 2003 Yes, I exactly need this Thanks for all your contributions ! Link to comment Share on other sites More sharing options...
Ajeh Posted February 28, 2003 Share Posted February 28, 2003 Edit product_info.php and change: <script language="javascript"><!-- document.write('<?php echo '<a href="javascript: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']) . '">' . 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> To read: <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], '', '', 'hspace="5" vspace="5"'); ?> Link to comment Share on other sites More sharing options...
guanche Posted February 28, 2003 Author Share Posted February 28, 2003 Do you mean show the small image everywhere, but on product_info.php just so the real image at real size? Linda, Thank you for taking a shot at this but what I'd like is to show the small image everywhere but on product_info.php I want to have a link to larger image detail and when clicked, the image will auto re-size to the larger more detailed image within the product_info.php page instead of the way it is now where the larger image is a pop-up, an example url http://www.altrec.com/shop/detail/88/14 (click on view larger photo at it resizes in the product info page). Link to comment Share on other sites More sharing options...
mazza Posted February 28, 2003 Share Posted February 28, 2003 Maybe you could copy the product_info.php, rename it (for example product_info_big.php) and make Lindas suggestion in there. Then link from product_info.php to product_info_big.php (or whatever you migth like to call it) "Use no way as way, have no limitation as limitation." - Bruce Lee Link to comment Share on other sites More sharing options...
Ajeh Posted March 1, 2003 Share Posted March 1, 2003 You could add a paramater that loads the normal product_info.php with small image and a link on that image that when clicked, reloads product_info.php but triggered by that link is a setting to load the big image rather than the small image. Basically a redirect to the same page but setting a variable so it knows when to load which image. By default, the $load_big_image would be set to false, then the link would set it to true, and the the reload would set it back to false for next time. Dizzy yet? :shock: Link to comment Share on other sites More sharing options...
burt Posted March 1, 2003 Share Posted March 1, 2003 Goodness. Install the image/bimage contribution (takes about 5 minutes even on MS1). Then in product_info.php remove all the javascript/noscript pop-up stuff and simply reference your big image in the .sql query. If anyone wants to see this in action, feel free to PM me, I cannot post it here as I do not want a load of test accounts made by "lurkers" and others! Link to comment Share on other sites More sharing options...
mazza Posted March 1, 2003 Share Posted March 1, 2003 Dizzy yet? Yes, but I get the point. But why stop there ? Lets wrap several nice contributions to enhance the usability and ease of maintenance. Warning ! this will get complicated and I am not sure how to implement this. Maybe PHP-gurus Linda and Burt figure a way to implement this. Handling No image at all: same way to handle this as current way, show nothing. Small image: image shown with no link Small and large image: small image with link to modified products_info.php page or better yet Lindas suggestion. Small and large image + photogallery: small image with link to modified products_info.php page with larger and another modified products_info.php with only additional images (no pop-ups, same way of handling larger image as trustens photogallery but larger, selected image with http parameters) or better yet Lindas suggestion. Image resizing with automatic thumbnails. Now that would be a nice contribution :D Links to needed contributions if someone with better skills in php than mine would try to implment this: Additional Images Module (Version 1.0) http://www.oscommerce.com/community/contributions,1032 photogallery http://www.oscommerce.com/downloads.php/co...ions,613/type,3 automatic thumbnails http://www.oscommerce.com/downloads.php/co...ions,613/type,3 "Use no way as way, have no limitation as limitation." - Bruce Lee Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.