![]() |
Rename skin1 folder?
I would like to know if I want to rename the "skin1" folder to "template" is enough to make the following changes in smarty.php file:
$smarty->template_dir = $xcart_dir."/skin1"; $smarty->compile_dir = $var_dirs["templates_c"]; $smarty->config_dir = $xcart_dir."/skin1"; $smarty->cache_dir = $var_dirs["cache"]; $smarty->secure_dir = $xcart_dir."/skin1"; $smarty->debug_tpl = "file:debug_templates.tpl"; $smarty->assign("ImagesDir",$xcart_web_dir."/skin1/images"); $smarty->assign("SkinDir",$xcart_web_dir."/skin1"); |
Re: Rename skin1 folder?
yikes. my guess is that there are more than a few lines of hard code that references /skin1, that simply changing it in the config is going to bite you.
of course, in a perfect world, nobody ever hard codes anything -- but I know that I did at some point or another... I would proceed with great caution if it were that important to you. |
Re: Rename skin1 folder?
I will make a try and search all X-Cart files for "skin1" word.
If someone has other idea I am looking for a reply. |
Re: Rename skin1 folder?
If includes on your site use {$SkinDir} instead of skin1/, and {$ImagesDir} instead of skin1/images/ etc., like they should, you won't have any issues, but like Jeremy said, "if."
|
Re: Rename skin1 folder?
Why would you want to do this?
|
Re: Rename skin1 folder?
rogue: What kind of question is this? For your curiosity I will build a template exchanger in the near future. I was interested to know what are the files that process "skin1" folder name.
I am still wondering why X-Cart doesn't have a template exchanger by default. In all these years the development team forgot about this feature. |
Re: Rename skin1 folder?
TIP 1: If someone will try to search inside a php, html, htm, css, .htaccess, .conf, .js. .tpl file using Windows Explorer -> Search, you have to know that by default Windows XP skips searching a word or phrase inside those files.
If you still want searching you have to edit your Registry. Here is what you have to do http://support.microsoft.com/kb/309173 For your information only a few files process "skin1" folder name. You can edit .tpl files replacing "skin1" with variable like {SkinDir} as Jon suggested. TIP 2: For comparing files or folders I recommend you UltraCompare http://www.ultraedit.com/products/ultracompare.html. It costs 39.95 USD. I'm doing a great job using it. Cheers! |
All times are GMT -8. The time now is 08:45 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.