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)
-   -   Restore Page Width of Admin Pages (https://forum.x-cart.com/showthread.php?t=10981)

clubsrefinished 12-17-2004 04:54 AM

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? :-k

Any help would be greatly appreciated.

balinor 12-17-2004 04:59 AM

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.

shan 12-17-2004 05:49 AM

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}


clubsrefinished 12-17-2004 06:09 AM

Wow

Thanks guys that worked wonderfully :lol:

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') :wink:

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

Thanks again guys for all of your help

shan 12-17-2004 06:12 AM

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

c = customer
b = wholesale

p = admin

ryno 04-10-2006 09:24 AM

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}>


All times are GMT -8. The time now is 11:53 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.