3
Here's the code I use on my site which may be of use. It's pretty simple, but does the trick for what I want. You can see it on my site
http://www.girl-gamer.com I also use the auto login hack, but haven't added it to the code below.
-----------------------------------------------------------
<tr> <td id="login"><{if $xoops_isuser}> Welcome <a href="<{$xoops_url}>/user.php"><{$xoops_uname}></a> | <span id="clock"></span> <script language="Javascript" type="text/javascript" src="<{$xoops_url}>/themes/girl-gamer/clock.js">
</script><{else}>
<form action="<{$xoops_url}>/user.php" method="post"><span class="navtext"> Username: </span>
<input type="text" name="uname" class="navinput" />
<span class="navtext"> Pass: </span >
<input type="password" name="pass" class="navinput" />
<input type="hidden" name="xoops_redirect" value="/index.php" />
<input type="hidden" name="op" value="login" />
<input type="submit" value="login" class="button" /> | <a href="<{$xoops_url}>/user.php#lost">Lost Password?</a> | <a href="<{$xoops_url}>/register.php">Register!</a> </form><{/if}>
</td></tr>
-----------------------------------------------------------
Cheers,
Dee