cerebro Posted October 18, 2007 Share Posted October 18, 2007 I have permission from the company I work with to hotlink their images from their image server to my store. I have installed this [contribution] Hotlink & URL Product Images and followed the directions to hotlink the files. I did what the text did except for this part: 4.) Open catalog/includes/modules/product_listing.php find the following line $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; and replace with $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_EXT_HTTP . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; I couldn't find the exact line that I was supposed to replace and have no idea on what line I should replace with the code. they looked identical except for the DIR_EST_HTTP so I changed all the DIR_WS_IMAGES to DIR_EST_HTTP and got a parse error so i uploaded the original file (product_listing.php) and the parse error is not more. Some of the images are hotlinking perfectly but if i go into a nest of products the properties change from http://www.dsdimages.com/Images/29/Medium/DHYX500PCS.jpg (working hotlinked image) to the ones that don't work that have the following format: http://nexus.x10hosting.com/images/www.dsd...er%20AC-DC1.jpg which is what happens to any hotlinked images that are nested one or more levels deep through the catagories. I have no idea on how to fix this as I have little experience with code but was hoping someone has either found a way to correct this error or who has more experience than me. If I need to include more code to set this contribution up please tell me I will be happy to. Thank you for your time and consideration. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted October 18, 2007 Share Posted October 18, 2007 I am not familiar with that contribution so I can't answer your question although it would seem to be a known problem. See this. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
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.