View Single Post
  #4  
Old 05-22-2008, 03:23 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Image Path MOD for 4.1.x

I am having a hard time figuring these parts out...
Code:
## return $files_dir_name; return "/home/yoursite/public_html/files/"; ## return $files_dir_name.DIRECTORY_SEPARATOR.$login; return "/home/yoursite/public_html/files/";

I understand I need to put the path to where my images are, but how does x-cart know I want to save a thumbnail to the "thumbs" folder and a product image to the "products" folder? It seems to find the images that are already there, but when I add one it puts in it the "var/tmp" folder with some strage abstraction of the original file name. For instance, "test-1.jpg" will be "test-1jpgFgfGt" or something similar. At any rate, it shows as a broken image, and is not stored anywhere near "/home/mysite/public_html/files/".

I could live with the P, T, D, C , and M folders if it didn't change the filename, and didn't append -01, -02, -03 etc. if the file was already there. Is there some reason it will not overwrite an existing file with the same name?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote