Guest Posted May 18, 2003 Posted May 18, 2003 Hi there, I have been toying with the idea of putting a BIG Image (bimage..from the Big Image Mod)) straight on to a product's information page. I tried changing various things on the product_info.php to no avail. Has anyone any ideas at all please? :roll: Thanks in advance, Adam Quote
slackbladder Posted May 18, 2003 Posted May 18, 2003 If you did then try this: Find this in /product_info.php <tr> <td align="center" class="smallText"> <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> </td> </tr> And replace it with this: <tr> <td align="center" class="smallText"> <?php echo tep_image(DIR_WS_IMAGES . $product_info_values['products_bimage'], $product_info_values['products_name'], 'hspace="5" vspace="5"'); ?> </td> </tr> Tony Haven't tested it - might be OK. My product_info.php is too heavily modified to be able to test :shock: Quote
Guest Posted May 18, 2003 Posted May 18, 2003 Hi Tony, Ahh yes, I didn't realise you had that sort of thing running on your site. :roll: Thanks once more for the code, I'll try that out soon. Must get to sleep now though, work and all.... Thanks again! Adam Quote
hankfrid Posted May 19, 2003 Posted May 19, 2003 You can also apply the Sm, Med, Lg Images contribution and then not specify a size in Admin for the Medium image height and width. Then the actual image size from the file will be displayed. I just retrofitted this contribution to a recent snapshot and put it out on contributions tonight. Might want to check it out. It is pretty simple to implement and gives you three varieties, if you need them. HankFrid Quote If I build it...they will come. If I don't try to build it.....I will never know!
pxniw69 Posted May 31, 2003 Posted May 31, 2003 I set all of the image height width sets to nothing, and I have sm med lg image mod with latest snap. It still displays small image in item product info page. I tried it with calculate image size on and off. What am I doing wrong? Thx Quote
hankfrid Posted June 4, 2003 Posted June 4, 2003 Have you gone into your products and given it three different image files to display? I have my "calculate" turned on (true). Are you sure the three image files you created are different sizes? What are you seeing in MySQL in your database? HankFrid Quote If I build it...they will come. If I don't try to build it.....I will never know!
loxly Posted June 4, 2003 Posted June 4, 2003 I set all of the image height width sets to nothing, and I have sm med lg image mod with latest snap. It still displays small image in item product info page. I tried it with calculate image size on and off. What am I doing wrong? Thx What size are your image files? Quote [no external urls in signatures please, kthanks]
delishus Posted June 4, 2003 Posted June 4, 2003 Thanks for the work in updating this contribution, it looks great. Can I store the images in 3 different directories with the sm, med, lg mod? For example... images/small/ for small images images/medium/ for med images images/large/ for large images I assume I could just add the relevant sub directory name in after the DIR_FS_CATALOG_IMAGES references in categories.php and product_info.php etc? Thanks Del Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.