eclombardo Posted March 16, 2008 Posted March 16, 2008 Hi. I've been wracking my brains trying to figure this out, but I'm no programmer, so it's not easy :) Have been searching through all the contributions and tips and haven't found the solution yet, so maybe someone here can help me. I'm running the latest OSCommerce (2.1?). I am running a very small store which has only about 7 items. The problem here is that the small images on the front page (new items) appear pixellated and distorted on my pc on IE (although on my mac in firefox and safari they're perfect). When you click on enlarge the large images are perfect. So OSCommerce is using the large images and scaling them down using the dimensions i have set up in the admin for smaller images, but it's downsampling quite badly for IE to display properly. How can I set up oscommerce to use separate, pre-sized thumbnails instead of the scaled down larger images? I will resize these images myself manually, so let's say I set up thumb_product1.jpg as the thumbnail and product1.jpg as the click to enlarge version. How do I write this in the php, and which php do I modify?? Any help would be VERY appreciated - thank you so much in advance!! Elaine
jhande Posted March 16, 2008 Posted March 16, 2008 Hi Elaine, I do the same as what you plan on doing, make my own thumbnail and large images. This contribution works great - Big Images 1.25 :thumbsup: - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
eclombardo Posted March 16, 2008 Author Posted March 16, 2008 Hi Jim, Thanks for the advice - still have a couple of questions, maybe you can answer: 1. In the readme it says "Update your products-table in database: ALTER TABLE `products` ADD `products_bimage` VARCHAR(64) AFTER `products_image`;" - do I still have to do this if I'm replacing the files instead of just changing the code? I'm not experienced in altering the database, I'm afraid I'll screw it up. 2. If I'm adding the code instead of replacing the files, do I only have to add the pointed out sections, or is there any replacement of code? I only see adding. Just wanted to make sure. 3. popup_image.php - don't see any code on this to add (there is no callout like the other pages have). Is this a whole new file altogether? 4. Where do I put the images, and do I have to name them in a particular manner? Thanks again, I really appreciate the help!! Elaine
eclombardo Posted March 17, 2008 Author Posted March 17, 2008 Hi - just wanted to drop a note to say that I figured out the answers to my own questions and that it worked like a charm. I added the new field to the database. I copied the pages over (after I backed up first, of course!) Through the admin, in each product page, you now have a small image and a big image section to upload images to. Thank goodness I only had like 7 products because I had to go in to each product and change the small image to my thumbnail and the large image to the right one. However once I was done it worked perfectly - it cleared up the distortion problem, and the front page loads WAY faster. Jim, thank you so much for the advice, and thanks so much to the author of this contribution!! Elaine
jhande Posted March 18, 2008 Posted March 18, 2008 You are welcome Elaine and sorry I wasn't able to get back to you right away to help with your questions. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
Recommended Posts
Archived
This topic is now archived and is closed to further replies.