OS_Tim Posted April 20, 2007 Share Posted April 20, 2007 IS anybody using this: http://www.oscommerce.com/community/contributions,3299, Hotlink and URL Product Images This seems to be the only answer that people give in the forums for hotlinking images. I installed and it doesn't seem to be working correctly. I believe problem is that the way the contribution is trying to work, it is suppossed to use: define('DIR_EXT_HTTP', 'http://'); in Configure, and then calling up: tep_image(DIR_EXT_HTTP instead of tep_image(DIR_WS_IMAGES in product_info.php and other places. The products_image should now be changed to "www.mysite.com/images/my_image.gif", or if hosting on another server "www.othersite.com/images/my_other_image.gif" Seems like it might work, but it doesn't. I believe what is actually happening is that the products image link is now being returned as: "http://www.mysite.com/images/my_image.gif"'>http://www.mysite.com/http://www.mysite.com/images/my_image.gif" which is obviously, wrong. I think this is happening because if i change: define('DIR_EXT_HTTP', 'http://'); to define('DIR_EXT_HTTP', 'images/'); and leave the : tep_image(DIR_EXT_HTTP where its pulling the product image, it works fine, pulling up : "http://www.mysite.com/images/my_image.gif" SO the question is, how can I write a required configure line where it doesn't automatically place the field it's pulling AFTER the defined "http://www.mysite.com" ? (And no I' m not linking to images unless I have specific written permission from associate vendors whose products I am selling that happen to have their images also hosted for their site) Quote Link to comment Share on other sites More sharing options...
OS_Tim Posted April 20, 2007 Author Share Posted April 20, 2007 It appears to be a conflict with the Image thumbnailer contribution which alters the tep_image in HTML_output.php. I'll update this if I fix it and hopefully it help some one searching through the forums for a similar answer. Quote Link to comment Share on other sites More sharing options...
MrRoyce Posted June 7, 2007 Share Posted June 7, 2007 It appears to be a conflict with the Image thumbnailer contribution which alters the tep_image in HTML_output.php. I'll update this if I fix it and hopefully it help some one searching through the forums for a similar answer. Hi there, did you ever fix this? Thanks. Quote Link to comment Share on other sites More sharing options...
Sigmond Posted July 8, 2007 Share Posted July 8, 2007 I am trying to fix exactly the same problem, please please let me know if you have it fixed. Many Thanks Sig. Quote 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.
Note: Your post will require moderator approval before it will be visible.