elzmaddy Posted November 6, 2005 Share Posted November 6, 2005 I'm just curious why osCommerce hard links the path to images using www.mydomain.com instead of using relative paths. I want to temporarily access my site by IP while my DNS information is updating, and I cannot see any images. Link to comment Share on other sites More sharing options...
MarcoZorro Posted November 6, 2005 Share Posted November 6, 2005 Images in oscommerce are not hardcoded they use relative paths. If you look at the code.. tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); you will see it uses the setting from DIR_WS_IMAGES... If you have set DIR_WS_IMAGES to be a url then the images will use full http links... if you leave it as default it will use /images/blah.gif Link to comment Share on other sites More sharing options...
elzmaddy Posted November 6, 2005 Author Share Posted November 6, 2005 I see, it is in fact using the short path: eg:<img src="images/logo.gif"> .... but when I right click the broken image, it says the complete url http://www.mydomain.com/images/logo.gif instead of, for example, http://69.53.12.22/images/logo.gif. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.