legends Posted October 10, 2005 Posted October 10, 2005 Hi, quite new to this and would aprreciate it if someone could give me a few pointers on how I can display the full size image in the product info page rather than the thumbnail with the popup option. I think it's a bit tedious for the user to have to keep opening and closing popups for every product. If anyone can direct me to a contribution that caters for this then that'd be great. Also is there a decent image resizing contribution where images are processed and actually resized on the server side and then http'ed over as as thumbnails and when required. Am I right in thinking that with the flat install of oscommerce, no real image resizing takes place and the user downloads the actual full size image which is also displayed as the thumbnail? Is it a better option to have a pre-processed copies of the thumbnails along with the full sized images in terms of bandwidth and processing time on the fly? Sorry I know all this has been asked before, but I've tried searching, too much to shift through. Thanks I know you all understand :)
Guest Posted October 10, 2005 Posted October 10, 2005 there are few thumbnail contributions you could try. As of the full size image its a jscript in the catalog\products_info.php that needs to be replaced. Should be a line like this: echo '<a href="java script:popupWindow(\\\''.................. replace it with this: echo tep_image(DIR_WS_IMAGES . $product_info['products_image'] );
legends Posted October 11, 2005 Author Posted October 11, 2005 Thanks enigma kind of figured that one out whilst i was waiting for a reply :thumbsup: I removed the jscript code and used the php part ([NOSCRIPT]), removed the image height width values so the image is its normal size, and the href'd that to a larger image in a seperate directory. <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES_LARGE . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], '', '', 'hspace="5" vspace="2"') . '<br>?' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> I defined DIR_WS_IMAGES_LARGE as the directory containing the larger image. One problem though, the bigger image opens in a targeted blank page, not a popup window but I don't want the user to be able to see the url at the top, cos it's shows the directory and image name. there are few thumbnail contributions you could try. As of the full size image its a jscript in the catalog\products_info.php that needs to be replaced. Should be a line like this: echo '<a href="java script:popupWindow(\\\''.................. replace it with this: echo tep_image(DIR_WS_IMAGES . $product_info['products_image'] );
Guest Posted October 11, 2005 Posted October 11, 2005 yes I think the jscript code controls the parameters on the fly like scrollbars and so on. But if you have active scripting set to disabled it simply opens a regular window with the target blank option. You could try invoking the popup_image.php in that case but its resize function won't function (obviously)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.