luckydogg Posted February 17, 2006 Posted February 17, 2006 First off - Hello and thank you for a great contrib!~ I really wish they would implement it as part of the milestone and I think it should be a standard feature. With that said. I am hoping someone can help out with the admin section of the contrib. Since I implemented it, I have lost all of my icons in accross the header of the page, lost my menu listing for the products, and the folder icons used for the categories list. I suppose that through the changes made- the default images location was changed and obviously cannot be pulled now. Should I be moving the admin images to another dir for some reason?? I am stumped here. Actually, I did not change the config.php since if I do it will not dispay any of the images...I left it as is and I can see the products but cannot see the listing or default images for oscommerce! here is the line from admin-->config.php define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); can someone please take a look for me? here is the url: http://impursenationsandmoore.com/admin/ca...es.php?cPath=57 Any ideas? I really want to use this contrib as it is helpful for my end user/store owner... Quote
methodprobiz Posted February 19, 2006 Posted February 19, 2006 First off - Hello and thank you for a great contrib!~ I really wish they would implement it as part of the milestone and I think it should be a standard feature. With that said. I am hoping someone can help out with the admin section of the contrib. Since I implemented it, I have lost all of my icons in accross the header of the page, lost my menu listing for the products, and the folder icons used for the categories list. I suppose that through the changes made- the default images location was changed and obviously cannot be pulled now. Should I be moving the admin images to another dir for some reason?? I am stumped here. Actually, I did not change the config.php since if I do it will not dispay any of the images...I left it as is and I can see the products but cannot see the listing or default images for oscommerce! here is the line from admin-->config.php define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); can someone please take a look for me? here is the url: http://impursenationsandmoore.com/admin/ca...es.php?cPath=57 Any ideas? I really want to use this contrib as it is helpful for my end user/store owner... My first thought is... remember to password protect your admin area since currently it is totally exposed. (though you probably only have it like this to get help but just incase hehe). On to your issue... You do not need to move the images as long as they worked before this contrib. However, the file you should be editing to define your paths is /catalog/admin/includes/configure.php (do you actually have a file catalog/admin/config.php ??) Additionally, I am guessing that more than the images definition needs tweeking because your backup path is failing. This is not a "direct" cut and paste answer but... Here is what works for me (note I have my OSC on a subdomain and use shared SSL so you will need to adjust for your requirements - or use SSL as recommended). I made notes in the code to help you out for your cart as installed in root/catalog/. Make a backup copy of the file incase your adjustments don't work out. // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'https://secureserver.webhost.com/~username/catalog'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://catalog.mywebsite.com'); //you should have something like 'http://impursenationsandmoore.com' but mine is like this per subdomain use define('HTTPS_CATALOG_SERVER', 'https://secureserver.webhost.com/~username/catalog'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module - be sure to change true to false if you are NOT SSL ready define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where the pages are located on the server revert if needed to: /home/secureserver/public_html define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/username/public_html/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', 'https://secureserver.webhost.com/~username/catalog'); //finally! using URL makes images work right in SSL admin define('DIR_FS_CATALOG', '/home/username/public_html/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'username_osc1'); define('DB_SERVER_PASSWORD', 'somecrazycharacters'); define('DB_DATABASE', 'username_osc1'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> *If you make a change that doesn't work and you get an error, analyze the path it shows you because sometimes its just a slash '/' that is needed or not needed to achieve proper result. Make special note of this line, it was a snag for me in getting images in admin to work: define('DIR_WS_CATALOG', 'https://secureserver.webhost.com/~username/catalog'); //finally! using URL makes images work right in SSL admin Try using this: define('DIR_WS_CATALOG', 'http://impursenationsandmoore.com' ); //finally! using URL makes images work right in SSL admin and remember to change SSL line from true to false for your file If my notes are confusing, there is a file that can be placed on your site to show you how your server paths are specifically called. Someone posted it in one o' these forums along the way so you'll have to search for it, I believe it was called myenv.php if that helps. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.