X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Images not recognized in created image folder (https://forum.x-cart.com/showthread.php?t=15973)

jyarrow 08-16-2005 04:25 PM

Images not recognized in created image folder
 
I have created an images folder with the path:

www.hausofpods.com/xcart/files/images

When I place an image in there and modify the head.tpl to point to the graphic I want to use for the header, it shows up as a broken link. If I view source, the path is exactly correct.

It is interesting to note that images work just fine placed in the default folder:

www.hausofpods.com/xcart/skin1/images

I have checked the permissions for the first-mentioned image folder, and even chmodded them to 777 (all access for everyone). This is temporary, of course, until development is complete whereupon it will revert to a more safe setting, limiting everyone to read only.

This is making me nuts :evil: cuz I can't figure out why it's happening.

Anyone run across this?

Thanks in advance.

balinor 08-16-2005 05:01 PM

Always place your site images in xcart/skin1/images and call them by this technique:

[img]{$ImagesDir}/imagename.gif[/img]

The files/images folder should be used for product images only. Hard-coding images will cause issues with your secure connection down the road.

jyarrow 08-16-2005 05:14 PM

then why do they recommend doing otherwise in TFM?
 
When I RTFM, on page 352 they recommend using a different directory for the images as "the best variant".

Why would they recommend this when it just won't work?

I'm very confused here.

Additional BTW, I did follow the instructions in the Images Location section to make seperate folders (and put absolute paths) for the Detail and Thumbnail pictures. Hopefully this will work.

Thanks for your speedy response.

balinor 08-16-2005 05:19 PM

They are talking about PRODUCT images, not site images :) Two totally different things.

Seperate sub-folders for detailed, category and thumbail images works just fine and I use it all the time. Just need to alter the .htaccess file in there to read 'allow from all'.


All times are GMT -8. The time now is 06:35 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.