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)
-   -   Moving Login Box (https://forum.x-cart.com/showthread.php?t=22266)

Arms Reach 06-04-2006 12:45 PM

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

balinor 06-04-2006 02:38 PM

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

Arms Reach 06-11-2006 07:43 PM

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]


All times are GMT -8. The time now is 10:34 PM.

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