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

Editing auth.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-04-2006, 12:36 PM
 
blong blong is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 8
 

Default Editing auth.tpl

I was attempting to edit the auth.tpl, however I am not able to extract it from the menu.tpl. I even changed the name to top_nav.tpl. I keep getting a menu border. I know this is a simple thing , it always is. Can anyone help Here is me code:

Code:
{* $Id: top_nav.tpl,v 1.39.2.1 2005/01/11 14:30:09 mclap Exp $ *} {capture name=menu} <link href="skin1.css" rel="stylesheet" type="text/css" /> <table width="770" border="0" cellspacing="0" cellpadding="0" height="40" align="center"> <tr align="center" valign="top" bordercolor="#FF0033" bgcolor="#999999"> <td height="24" colspan="3" class="loginfo">{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} <A href="{$slogin_url}/secure_login.php{$slogin_url_add}" class="VertMenuItems">{include file="buttons/secure_login.tpl"}</td> </tr> <tr bgcolor="#000000" align="left" valign="top"> <td height="19" width="336"><div align="left"><span class="login"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="330" height="20"> <param name="movie" value="elements/top_nav.swf"/> <param name="quality" value="high"/> <embed src="elements/top_nav.swf"/" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="330" height="20"></embed> </object> </span> <form action="include/login.php" method="post" name="authform" id="authform"> <div align="center" class="login"> <input type="hidden" name="xid" value="43b43c7396d1be2b8590377ff670478a" /> <input type="hidden" name="mode2" value="login" /> <input type="hidden" name="usertype2" value="P" /> <input type="hidden" name="redirect2" value="admin" /> </div> </form> </div></td> <td nowrap="nowrap" height="19" width="165" valign="middle" align="center"><span class="loginfo"> {$lng.lbl_username}</FONT> <input type="text" name="username" size="16" value="{#default_login#}" /> <span class="login"></span></font></td> <td nowrap="nowrap" height="19" width="269" valign="middle" align="center"><span class="login">Password </span> {$lng.lbl_password}</FONT> <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}"> <font class="login"> Log in </font>[img]file:skin1/images/go.gif[/img]<font class="login"> Register</font> [img]skin1/images/go.gif[/img]</td> </tr> </table> <TABLE width="770" border="0" align="center" cellpadding="0" cellspacing="0"> {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> {if $js_enabled} <A href="javascript: document.authform.submit()" class="VertMenuItems">{include file="buttons/login_menu.tpl"} </A> {else} {include file="buttons/login_menu.tpl"} {/if}</TD> </TR> {else} {* use_secure_login_page *} {/if} {* use_secure_login_page *} {if $usertype eq "C" or ($usertype eq "B" and $config.XAffiliate.partner_register eq "Y")} <TR> <TD height="24" nowrap class="VertMenuItems"> </TD> </TR> {/if} {if $login eq ""} <TR> <TD height="24" nowrap class="VertMenuItems"> </TD> </TR> {/if} {if $usertype eq "P" and $active_modules.Simple_Mode eq "Y" or $usertype eq "A"} <TR> <TD class="VertMenuItems"> <DIV align="left">{$lng.lbl_insecure_login}</DIV></TD> </TR> {/if} {if $usertype eq "C"} <TR> <TD height="38" align="right" class="VertMenuItems"> {if $js_enabled} {$lng.txt_javascript_disabled} {else} {$lng.txt_javascript_enabled} {/if}</TD> </TR> {/if} </FORM> </TABLE> {/capture} { include file="menu.tpl" menu_content=$smarty.capture.menu }


Thanks.
__________________
blong
X-cart gold 4.0.14
Linux OS
Reply With Quote
  #2  
Old 01-04-2006, 12:50 PM
 
balinor balinor is offline
 

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

Default

Not really sure what you mean, but if you are trying to remove the menu template portion, you need to remove these lines:

{capture name=menu}

{/capture}
{ include file="menu.tpl" menu_content=$smarty.capture.menu }
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-04-2006, 12:56 PM
 
blong blong is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 8
 

Default Thanks. Perfect.

I tried different variations of your solution; I hadn't deleted all three lines.
Thanks again.
__________________
blong
X-cart gold 4.0.14
Linux OS
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:58 AM.

   

 
X-Cart forums © 2001-2020