View Single Post
  #6  
Old 06-20-2006, 07:21 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default

My opening form tag is:

Code:
<FORM action="{$xcart_web_dir}/include/login.php" method="post" name="loginform2">

and then the bottom of my file looks like:

Code:
{if $user_subscription ne ""} {include file="modules/Subscriptions/subscriptions_menu.tpl"}</a> {/if} {/if} {if $js_enabled} {include file="buttons/button.tpl" style="button" button_title=$lng.lbl_logoff href="javascript:document.loginform2.submit()"} {else} {include file="buttons/logout_menu.tpl" style="button" href="javascript:document.loginform2.submit()"} {/if} </TD> </TR> {if $usertype eq "C"} <TR> <TD colspan="2" align="right"> {if $js_enabled} {$lng.txt_javascript_disabled} {else} {$lng.txt_javascript_enabled} {/if} </TD> </TR> {/if} <INPUT type="hidden" name="mode" value="logout"> <INPUT type="hidden" name="redirect" value="{$redirect}"> </FORM> </TABLE> {/capture} { include file="menu_mod.tpl" menu_content=$smarty.capture.menu }

so long as the button code I gave is within the form tags it should work, so you may want to try something like:


Code:
{* $Id: authbox_mod.tpl,v 1.23 2004/06/24 09:53:29 max Exp $ *} {capture name=menu} <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <FORM action="{$xcart_web_dir}/include/login.php" method="post" name="loginform2"> <tr> <TD width="1%"></TD> <TD width="99%"> <font color="#333333" size="4">{$login}{$lng.txt_logged_in}</font> {if $js_enabled} {include file="buttons/button.tpl" style="button" button_title=$lng.lbl_logoff href="javascript:document.loginform2.submit()"} {else} {include file="buttons/logout_menu.tpl" style="button" href="javascript:document.loginform2.submit()"} {/if} </TD> </tr> {if $usertype eq "C"} {/if} <INPUT type="hidden" name="mode" value="logout"> <INPUT type="hidden" name="redirect" value="{$redirect}"> </FORM> </TABLE> {/capture} {include file="menu_mod.tpl" menu_title=$lng.lbl_authentication menu_content=$smarty.capture.menu}

which is the code you gave me and my button code inserted......that might work

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote