| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Rename skin1 folder? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
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");
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
#2
|
|||||||
|
|||||||
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.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#3
|
|||||||||
|
|||||||||
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.
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
#4
|
|||||||||
|
|||||||||
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."
|
|||||||||
#5
|
|||||||||
|
|||||||||
Re: Rename skin1 folder?
Why would you want to do this?
__________________
Richard Williams Rogue Wave Limited Initial Inventory Imports Daily Inventory Updates Daily Inventory Reports Drop Ship Support Order Export to Shipper/Supplier Shopping Feeds That Work Programming for X-Cart richard@roguewavelimited.com http://www.roguewavelimited.com |
|||||||||
#6
|
|||||||||
|
|||||||||
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.
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
#7
|
|||||||||
|
|||||||||
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!
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
|
|||
X-Cart forums © 2001-2020
|