Jump to content
Sign in to follow this  
OS_Tim

Hotlink and URL Product Images

Recommended Posts

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)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

I am trying to fix exactly the same problem, please please let me know if you have it fixed.

Many Thanks

Sig.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×