Thread: Login Link
View Single Post
  #54  
Old 07-10-2008, 01:04 PM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default Re: Login Link

if it helps anyone, here's how i displayed the login link if logged out and vice versa...

Code:
{if $login ne ""} <form action="/store/include/login.php" method="post" name="loginform"><img src="{$ImagesDir}/spacer.gif" width="10" height="1" alt="" /><a href="javascript: document.loginform.submit();">log out</a> <input name="mode" value="logout" type="hidden"> <input name="redirect" value="customer" type="hidden"> </form> {else} <a href="mysite/xcart/myaccount.php">login</a> {/if}
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote