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

Want to create horizontal login/register field on home.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-02-2005, 01:37 AM
 
donavichi donavichi is offline
 

X-Adept
  
Join Date: Apr 2004
Location: United Kingdom
Posts: 697
 

Default Want to create horizontal login/register field on home.tpl

Hi there,

I'm curious to learn if anyone knows how to successfully modify auth.tpl or create a new .tpl which allows you to have the following:

Username: [__________] Password: [__________] [GO] [REGISTER]

I have tried and failed on a few occassions and could really do with some help as I'm sick of the space-hugging standard auth.tpl.
__________________
Best regards,

Donavichi.
- - -

Website Copywriting || Web Design || FAQs || Home & Garden Blog
Reply With Quote
  #2  
Old 05-02-2005, 03:29 AM
 
balinor balinor is offline
 

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

Default

Yea, I usually do that. Just open up the tpl in Dreamweaver and set up a 6 column, one row table.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-02-2005, 03:51 AM
 
balinor balinor is offline
 

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

Default

You can try this one:

Code:
{* $Id: auth.tpl,v 1.39.2.1 2005/01/11 14:30:09 mclap Exp $ *} {capture name=menu} <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> {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 *} <TR> <TD colspan="6"> {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} {include file="buttons/secure_login.tpl"} </TD> </TR> {else} {* use_secure_login_page *} <TR> <TD class="VertMenuItems"> <FONT class="VertMenuItems">{$lng.lbl_username}</FONT></td> <td><INPUT type="text" name="username" size="16" value="{#default_login#}"></td> <td><FONT class="VertMenuItems">{$lng.lbl_password}</FONT></td> <td><INPUT type="password" name="password" size="16" value="{#default_password#}"> <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}"> </TD> <TD height="24" class="VertMenuItems"> {if $js_enabled} {include file="buttons/login_menu.tpl"} {else} {include file="buttons/login_menu.tpl"} {/if} </TD> {/if} {* use_secure_login_page *} {if $usertype eq "C" or ($usertype eq "B" and $config.XAffiliate.partner_register eq "Y")} <TD height="24" nowrap class="VertMenuItems"> {include file="buttons/create_profile_menu.tpl"} </TD> </TR> {/if} {if $login eq ""} <TR> <TD height="24" nowrap class="VertMenuItems" colspan="6"> {$lng.lbl_recover_password} </TD> </TR> {/if} {if $usertype eq "P" and $active_modules.Simple_Mode eq "Y" or $usertype eq "A"} <TR> <TD class="VertMenuItems" colspan="6"> <DIV align="left">{$lng.lbl_insecure_login} </DIV> </TD> </TR> {/if} {if $usertype eq "C"} <TR> <TD class="VertMenuItems" align="right" colspan="6"> {if $js_enabled} {$lng.txt_javascript_disabled} {else} {$lng.txt_javascript_enabled} {/if} </TD> </TR> {/if} </FORM> </TABLE> {/capture} { include file="menu.tpl" dingbats="dingbats_authentification.gif" menu_title=$lng.lbl_authentication menu_content=$smarty.capture.menu }

You may have to monkey with the button templates a little to get them to do what you want, but this is the basic layout.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 05-02-2005, 08:49 AM
 
donavichi donavichi is offline
 

X-Adept
  
Join Date: Apr 2004
Location: United Kingdom
Posts: 697
 

Default

That worked a treat, thanks very much balinor.

\
__________________
Best regards,

Donavichi.
- - -

Website Copywriting || Web Design || FAQs || Home & Garden Blog
Reply With Quote
  #5  
Old 05-09-2005, 05:21 PM
 
remarkable remarkable is offline
 

Newbie
  
Join Date: May 2005
Posts: 2
 

Default

Ok this almost does what i want it to ... but what about getting rid of that [ Authentication ] bar at the top ?
How do i hide that?
Seems to connected to that {capture name=menu} line.
But i cant just del it.
__________________
--mark--
Reply With Quote
  #6  
Old 05-09-2005, 05:48 PM
 
balinor balinor is offline
 

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

Default

Yep, it is the title:

menu_title=$lng.lbl_authentication
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 05-09-2005, 06:31 PM
 
remarkable remarkable is offline
 

Newbie
  
Join Date: May 2005
Posts: 2
 

Default

I actually ment how to remove it all togeather.
But I just worked it out.

I've taken out the code at the start>

{capture name=menu}

And the code at the end >

{/capture}
{ include file="menu.tpl" dingbats="dingbats_authentification.gif" menu_title=$lng.lbl_authentication menu_content=$smarty.capture.menu }
__________________
--mark--
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 01:03 AM.

   

 
X-Cart forums © 2001-2020