Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Images not recognized in created image folder

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-16-2005, 04:25 PM
 
jyarrow jyarrow is offline
 

Newbie
  
Join Date: Aug 2005
Location: California, USA
Posts: 6
 

Default 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 cuz I can't figure out why it's happening.

Anyone run across this?

Thanks in advance.
__________________
Jim Yarrow
hausof.com guru and chief whipping boy

X-Cart version: 4.0.14
Web server: Apache/1.3.31 (Unix) DAV on Linux
Reply With Quote
  #2  
Old 08-16-2005, 05:01 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-16-2005, 05:14 PM
 
jyarrow jyarrow is offline
 

Newbie
  
Join Date: Aug 2005
Location: California, USA
Posts: 6
 

Default 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.
__________________
Jim Yarrow
hausof.com guru and chief whipping boy

X-Cart version: 4.0.14
Web server: Apache/1.3.31 (Unix) DAV on Linux
Reply With Quote
  #4  
Old 08-16-2005, 05:19 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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'.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:45 PM.

   

 
X-Cart forums © 2001-2020