Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hotlink and URL Product Images


OS_Tim

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)

Link to comment
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.

Link to comment
Share on other sites

  • 1 month later...
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.

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...