Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Redesign of site with CSS - new folder?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 07-18-2009, 12:28 PM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default 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.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #12  
Old 07-18-2009, 12:53 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #13  
Old 07-18-2009, 01:10 PM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default 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?
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #14  
Old 07-18-2009, 02:28 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:21 AM.

   

 
X-Cart forums © 2001-2020