![]() |
Redesign of site with CSS - new folder?
Hi, I am about to convert my site to CSS layout, there are tables all over the place at the moment. Can I just create a new folder on my server, copy the /store/ folders into it, and modify them? Once I'd finished the conversion, I would copy back the new CSS file and the templates to the original /store/ folder.
Sorry if this question has already been asked before, I couldn't find it using search. |
Re: Redesign of site with CSS - new folder?
you just need to create a new skin1 folder, call it skin2 or something, then when you are ready, rename the original skin1 to something else - oldskin1 for example, and rename your new template to skin1. You can copy the skin1 folder if you want, although it might be easier to start from scratch!
there are css templates out there which might save you hours of removing templates! hth |
Re: Redesign of site with CSS - new folder?
Many thanks Amy, I'll create the new skin2 folder. I can't use a ready made CSS template because my site is heavily customised (most of it I did myself), but having gone through all of that for over year and a half, I know everything I need to convert the whole site to CSS now. I'll let you know how I get on!
It will be a lot easier converting from tables to CSS, than the other way round! |
Re: Redesign of site with CSS - new folder?
Hi Amy, the problem I have is that I want to be able to work on the CSS version without replacing the original version, until I've finished the CSS version. How do I view the skin2 store? I've copied all the files in /store/skin1 into store/skin2, but I can't work out how to view them, as I can't access /store/skin1 or skin2 in my browser.
|
Re: Redesign of site with CSS - new folder?
in that case you will need to work on a backup copy of the whole store,
|
Re: Redesign of site with CSS - new folder?
Hi Amy, so I would just make a new folder, such as 'store2' (although I'm going to use another phrase which nobody can guess, I thought that would be better as then nobody should be able to find the new store while I work on it), and copy all of the files and folders inside 'store' into it?
Forgive my ignorance, it's been over a year since I did any of this sort of thing on the site, and I've forgotten it all. |
Re: Redesign of site with CSS - new folder?
pretty much, just check your config to make sure all the paths are correct, your root path etc will have changed,
|
Re: Redesign of site with CSS - new folder?
Also make sure you close that second store and put
Code:
User-agent: * |
Re: Redesign of site with CSS - new folder?
Thanks for that cflsystems, I was worried about it being indexed again, I'll update robots.txt as you advised.
|
Re: Redesign of site with CSS - new folder?
I've copied all the /store/ files into another directory, let's say it's called 'tomcat' (it isn't, but I need to use a dummy name here to show what I'm doing).
Let's say my website is at www.mysite.com If go to www.mysite.com/tomcat/admin/home.php I get the normal admin log in page, but when I log in, the URL changes back to www.mysite.com/store/admin/home.php?keep_https=yes I presume that the log in button is pointing back to /store/admin/home.php, instead of to /tomcat/admin/home.php - do you know what file I should edit to change this? I've looked at /tomcat/admin/home.php itself, and auth.tpl, but I can't see what I'm looking for. Many thanks for any help you can give. (I've amended the robots.txt file for the /tomcat/ directory as well, and will close the /tomcat/ store as soon as I can get into the admin!) |
Re: Redesign of site with CSS - new folder?
Okay, auth.tpl has this line at the bottom:
{ include file="menu.tpl" dingbats="dingbats_authentification.gif" menu_title=$lng.lbl_authentication menu_content=$smarty.capture.menu } and menu.tpl has this part: <tr><td>{$menu_content}<br /></td></tr> but I can't work out where to find $smarty.capture.menu, which I presume contains the URL that the login arrow goes to. Should I be looking in a .php file for this? It's been over a year since I last edited the site in this depth, I'm afraid. EDIT: At the top of auth.tpl, I found this: <form action="{$form_url}/include/login.php" method="post" name="authform"> so that must be where I need to look! EDIT: I think it might be this part of /include/login.php: switch ($redirect) { case "admin": $redirect_to = DIR_ADMIN; $current_type = 'A'; break; But I'm not sure where the DIR_ADMIN variable is. |
Re: Redesign of site with CSS - new folder?
Open config.php in www.mysite.com/tomcat and change the paths for your site. And you want to have a separate DB for this test site
Also make sure your .htaccess doesnt have something to redirect to www.mysite.com |
Re: Redesign of site with CSS - new folder?
Thanks Steve, I'll try that, much appreciated.
EDIT: I have a strange problem now. I'm in www.mysite.com/tomcat/admin, and I've made a change to home.tpl so that it displays a red bar across the top of the page, so that I can easily see which version of the site I am looking at. But when I go into 'General' and close the shop, it closes the real version of the shop, but not the test version! But I was definitely in www.mysite.com/tomcat/admin/configuration.php when I ticked the box to close the shop. I'm not sure how to create a separate database - is this easy to do? |
Re: Redesign of site with CSS - new folder?
Yes you need a separate DB to work with the test site. You can use phpmyadmin and copy the existing one with a different name. Then make sure in the config.php for the test site you change the db too
|
All times are GMT -8. The time now is 01:44 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.