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

Moving Login Box

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-04-2006, 12:45 PM
 
Arms Reach Arms Reach is offline
 

Newbie
  
Join Date: Apr 2006
Posts: 9
 

Default Moving Login Box

I want to move the login box from the side to the top but in starting this process it breaks both boxes. Can someone please take a look at my site and tell me what needs to be done to keep the login Javascript enabled in the header?

The site is:

http://test.armsreach.com/shop

Your help is appreciated!

Thanks,
Matt
__________________
X-Cart Gold 4.0.18
Reply With Quote
  #2  
Old 06-04-2006, 02:38 PM
 
balinor balinor is offline
 

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

Default

You don't need to move any javascript, just move the includes for auth.tpl and authbox.tpl from customer/home.tpl to head.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-11-2006, 07:43 PM
 
Arms Reach Arms Reach is offline
 

Newbie
  
Join Date: Apr 2006
Posts: 9
 

Default

I've tried that. In doing so, the submit buttons no longer work. Here's how I've reworked the auth.tpl file - I've renamed it to auth_arc.tpl so I can keep both:

Code:
{if $config.General.use_https_login eq "Y"} {assign var="form_url" value=$https_location} {else} {assign var="form_url" value=$current_location} {/if} <FORM action="{$form_url}/include/login.php" method="post" name="authform"> <INPUT type="hidden" name="{$XCARTSESSNAME}" value="{$XCARTSESSID}"> {if $config.General.use_secure_login_page eq "Y"} {* use_secure_login_page *} {assign var="slogin_url_add" value=""} {if $usertype eq "C"} {assign var="slogin_url" value=$catalogs_secure.customer} {if $catalogs_secure.customer ne $catalogs.customer} {assign var="slogin_url_add" value="?`$XCARTSESSNAME`=`$XCARTSESSID`"} {/if} {elseif $usertype eq "P" and $active_modules.Simple_Mode eq "Y" or $usertype eq "A"} {assign var="slogin_url" value=$catalogs_secure.admin} {elseif $usertype eq "P"} {assign var="slogin_url" value=$catalogs_secure.provider} {elseif $usertype eq "B"} {assign var="slogin_url" value=$catalogs_secure.partner} {/if} {else} {* use_secure_login_page *} <td align="right" valign="middle" class="SideMenuItems" nowrap width="700" height="23"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td>[img]/images/header/menu_register.gif[/img]</td> <td>[img]/images/header/menu_dot.gif[/img]</td> <td>[img]{$ImagesDir}/armsreach/username.gif[/img]</td><td><input type="text" name="username" size="16" value="{#default_login#}" style="font-family: Arial, sans-serif; font-size: 11px; border: #94e26c 1px solid; margin: 0 0 0 0; padding: 0 0 0 3;"></td><td>[img]{$ImagesDir}/spacer.gif[/img]</td><td>[img]{$ImagesDir}/armsreach/password.gif[/img]</td><td><input type="password" name="password" size="16" value="{#default_password#}" style="font-family: Arial, sans-serif; font-size: 11px; border: #94e26c 1px solid; margin: 0 0 0 0; padding: 0 0 0 3;"></td><td><input type="hidden" name="mode" value="login">{if $active_modules.Simple_Mode ne "" and $usertype ne "C" and $usertype ne "B"}<input type="hidden" name="usertype" value="P">{else}<input type="hidden" name="usertype" value="{$usertype}">{/if}<input type="hidden" name="redirect" value="{$redirect}">{if $js_enabled}[img]{$ImagesDir}/armsreach/log_in.gif[/img]{else}{include file="buttons/login_menu.tpl"}{/if}</td> </tr> </table> </td>{/if} </form>

I don't know what's missing; is it the capture at the beginning?

Thanks,
Matt[/code]
__________________
X-Cart Gold 4.0.18
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 06:07 PM.

   

 
X-Cart forums © 2001-2020