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)
-   -   Rename skin1 folder? (https://forum.x-cart.com/showthread.php?t=44503)

ADDISON 12-30-2008 06:01 AM

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");


carpeperdiem 12-30-2008 07:10 AM

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.

ADDISON 12-30-2008 07:18 AM

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.

Jon 12-30-2008 07:54 AM

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."

rogue 01-01-2009 05:26 AM

Re: Rename skin1 folder?
 
Why would you want to do this?

ADDISON 01-01-2009 07:14 AM

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.

ADDISON 01-01-2009 07:26 AM

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.