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

Placing Customer Login in my header

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-21-2005, 11:36 AM
 
pcarcare pcarcare is offline
 

eXpert
  
Join Date: Jun 2004
Location: Salt Lake City, Utah
Posts: 230
 

Default 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
__________________
X-cart gold 4.5.2 (live)
X-payments 1.0.5

http://www.professionalcarcare.com
Your online source for all your car care needs
Reply With Quote
  #2  
Old 05-21-2005, 12:49 PM
 
snorocket snorocket is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 403
 

Default same here

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

Anyone?
Reply With Quote
  #3  
Old 05-30-2005, 08:45 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

I too would like to know how to do this...
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #4  
Old 05-30-2005, 10:14 PM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

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
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #5  
Old 05-31-2005, 03:08 AM
 
pcarcare pcarcare is offline
 

eXpert
  
Join Date: Jun 2004
Location: Salt Lake City, Utah
Posts: 230
 

Default

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.
__________________
X-cart gold 4.5.2 (live)
X-payments 1.0.5

http://www.professionalcarcare.com
Your online source for all your car care needs
Reply With Quote
  #6  
Old 05-31-2005, 03:12 AM
 
pcarcare pcarcare is offline
 

eXpert
  
Join Date: Jun 2004
Location: Salt Lake City, Utah
Posts: 230
 

Default

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?
__________________
X-cart gold 4.5.2 (live)
X-payments 1.0.5

http://www.professionalcarcare.com
Your online source for all your car care needs
Reply With Quote
  #7  
Old 05-31-2005, 03:58 AM
 
longhorn180 longhorn180 is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Richmond, Virginia
Posts: 187
 

Default

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.
__________________
4.1.9 (Linux) Live Store
www.thecrackedbook.com
Find used books and out of print books.
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 10:54 AM.

   

 
X-Cart forums © 2001-2020