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

Restore Page Width of Admin Pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-17-2004, 04:54 AM
 
clubsrefinished clubsrefinished is offline
 

Member
  
Join Date: Dec 2004
Location: West Midlands, UK
Posts: 15
 

Default Restore Page Width of Admin Pages

Hi,

I have amended my customer homepage to 760 pixels wide (via the rectangle_top.tpl) which is exactly as I wanted however it has also changed my admin pages to 760 pixels wide.

My question is is it possible to restore my admin pages to 100% whilst keeping the customer pages at 760 pixels?

Any help would be greatly appreciated.
__________________
Mike
--------------
Version: 4.0.11 Live, RMA, AOM & X-Affiliate
PHP 4.3.4
MySQL server 3.23.58
MySQL client 3.23.58
Web server Apache/1.3.29 (Unix)

Site: http://www.clubsrefinished.co.uk
Reply With Quote
  #2  
Old 12-17-2004, 04:59 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Yep, just edit the head_admin.tpl and single/home.tpl and you should be able to get the width exactly how you want it.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-17-2004, 05:49 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

i take it you adjusted rectangle_top rather then the home.tpl

use a bit of smarty to tell where you are

Code:
{if $usertype eq "C"} width="760" {else} width="100%" {/if}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 12-17-2004, 06:09 AM
 
clubsrefinished clubsrefinished is offline
 

Member
  
Join Date: Dec 2004
Location: West Midlands, UK
Posts: 15
 

Default

Wow

Thanks guys that worked wonderfully

Just to confirm in my own mind regarding these usertypes

$usertype eq "C" - I am assuming this refers to 'customers' and is the default setting for anyone who has not logged in or is currenlty logged in but does not have 'wholesale' privileges

$usertype eq "B" - I am assuming that this is 'Business' ( I may be wildly wrong on this but this is all I can think of starting with a 'B')

Finally is there any other usertypes out there that I should be aware of?

Thanks again guys for all of your help
__________________
Mike
--------------
Version: 4.0.11 Live, RMA, AOM & X-Affiliate
PHP 4.3.4
MySQL server 3.23.58
MySQL client 3.23.58
Web server Apache/1.3.29 (Unix)

Site: http://www.clubsrefinished.co.uk
Reply With Quote
  #5  
Old 12-17-2004, 06:12 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

you may need to add the usertype = b too then if you use wholesale

c = customer
b = wholesale

p = admin
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #6  
Old 04-10-2006, 09:24 AM
  ryno's Avatar 
ryno ryno is offline
 

Advanced Member
  
Join Date: Feb 2006
Location: Tempe, Az
Posts: 30
 

Default

I tried "P" and it messed up the front end. C worked fine however.

The specific code I used for "rectangle_top.tpl" was this... in case anybody wanted it:
Code:
<table align="center" border="0" cellpadding="0" cellspacing="0" {if $usertype eq "C"} width="{$width|default:"708"}" {else} width="{$width|default:"100%"}" {/if}>
__________________
gold v4.0.18 -> live
...working on another soon
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 07:08 AM.

   

 
X-Cart forums © 2001-2020