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)
-   -   Placing Customer Login in my header (https://forum.x-cart.com/showthread.php?t=14117)

pcarcare 05-21-2005 11:36 AM

Placing Customer Login in my header
 
I am wondering what I need to do to add the customer login form to my header. I have tried serveral things and I keep getting a prase error in templates_c.

Can anybody tell me what I need to do to add the customer login to my header and remove it from the right side?

Thanks

snorocket 05-21-2005 12:49 PM

same here
 
I've been trying to do the same, Hmmmm....what its like to pull your hair out again.

Anyone?

taltos1 05-30-2005 08:45 PM

I too would like to know how to do this...

cotc2001 05-30-2005 10:14 PM

just move the include auth.tpl from it's present location at home.tpl (i think, use webmaster mope to check) up into head.tpl , if you need to edit the positioning of the login and password boxes so that they appear horizontal then just edit auth.tpl

pcarcare 05-31-2005 03:08 AM

I have tried this and I get a template_c error in head.tpl. I wonder if you need to move authbox.tpl also.

I might be editing the layout of the auth.tpl in such a way that causes the error.

pcarcare 05-31-2005 03:12 AM

Here is the code for my header

Code:

<body link="#081589" vlink="#000000" alink="#0000FF">
{* $Id: head.tpl,v 1.30.2.2 09/5/2004 13:29:52 svowl Exp $ *}
<table border="0" cellpadding="0" cellspacing="0" width="100%" background="http://www.professionalcarcare.com/xcart/skin1/images/top_bkgd.gif">
  <tr>
    <td width="100%" background="../temp%20pics/top_bkgd.gif" height="119">
      <div align="left">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr>
            <td width="877">[img]http://www.professionalcarcare.com/xcart/skin1/images/header1.jpg[/img]</td>
            <td valign="top" align="right" width="354">[img]http://www.professionalcarcare.com/xcart/skin1/images/pix1.jpg[/img]</td>
          </tr>
        </table>
      </div>
    </td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="60">
  <tr>
    <td width="245" background="http://www.professionalcarcare.com/xcart/skin1/images/header2.jpg" valign="top" align="left">{if $usertype eq "C"} { include
      file="customer/search.tpl" } {else} {/if}</td>
    <td background="http://www.professionalcarcare.com/xcart/skin1/images/header3.jpg" valign="top" align="left">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <th width="100%" valign="top" align="right">[img]http://www.professionalcarcare.com/xcart/skin1/images/Contact_Button.jpg[/img][img]http://www.professionalcarcare.com/xcart/skin1/images/pc_Button.jpg[/img][img]http://www.professionalcarcare.com/xcart/skin1/images/tips_Button.jpg[/img][img]http://www.professionalcarcare.com/xcart/skin1/images/store_button.jpg[/img][img]http://www.professionalcarcare.com/xcart/skin1/images/Home_Button.jpg[/img]</th>
        </tr>
      </table>
      <p align="right">{if $login eq "" } { include file="auth.tpl" }
{else} { include file="authbox.tpl" }
    </td>
  </tr>
</table>
</body>


and the code for auth.tpl

Code:

{* $Id: auth.tpl,v 1.28.2.4 2004/01/21 12:21:57 mclap Exp $ *}
{capture name=menu}
<TABLE border=0 cellPadding=0 cellSpacing=0 width=100%>
<td>
{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>
{if $config.General.use_secure_login_page eq "Y"} {* use_secure_login_page *}
<tr>
<td>
{if $usertype eq "C"}
{assign var="slogin_url" value=$catalogs_secure.customer}
{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}
{include file="buttons/secure_login.tpl"}
</td>
</tr>
{else} {* use_secure_login_page *}
<tr>
<td class=VertMenuItems>
<font class=VertMenuItems>{$lng.lbl_username}</font><input type=text name=username size=16>
<font class=VertMenuItems>{$lng.lbl_password}</font><input type=password name=password size=16>
{if $active_modules.Simple_Mode ne "" and $usertype ne "C" and $usertype ne "B"}
{else}
{/if}
{if $js_enabled}
{include file="buttons/login_menu.tpl"}
{else}
{include file="buttons/login_menu.tpl"}
{/if}{/if} {* use_secure_login_page *}
{if $usertype eq "C" or ($usertype eq "B" and $config.Modules.partner_register eq "Y")}
{include file="buttons/create_profile_menu.tpl"}
</td></tr>
<tr>
<td height=24 class=VertMenuItems>
{/if}
{if $usertype eq "P" and $active_modules.Simple_Mode eq "Y" or $usertype eq "A"}
</td>
</tr>
{$lng.lbl_insecure_login}
<tr>
<td height=24 nowrap class=VertMenuItems>
{/if}
{if $usertype eq "C"}
</td>
</tr>
{if $js_enabled}
{$lng.txt_javascript_disabled}
{else}
{$lng.txt_javascript_enabled}
{/if}

<td>
{/if}
</form>
</table>
{/capture}
{ include file="menu.tpl" dingbats="dingbats_authentification.gif" menu_title=$lng.lbl_authentication menu_content=$smarty.capture.menu }


Anybody see anything wrong?

longhorn180 05-31-2005 03:58 AM

In your head.tpl you need to close the if statement on the customer login:
Here is what you currently have:
Code:

{if $login eq "" } { include file="auth.tpl" }
{else} { include file="authbox.tpl" }

if you add the closing tag on the end like this:
Code:

{if $login eq "" } { include file="auth.tpl" }
{else} { include file="authbox.tpl" }{/if}

That should fix it.


All times are GMT -8. The time now is 07:10 AM.

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