Here is the peace of code that i use on my portal site.. it?s a custom made template
and has the login in box on it. and also if the user is alreay logged in . it shows the psstats
/schneberger
Code:
<!-------put entire code where you want it-------->
<!------show logged in user----->
<if condition="$show['member']">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase>
</strong></if>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]"2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<!-----show logged in user---->
<!-----login form------>
<if condition="$show['guest']">
<form action="$vboptions[bburl]/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">
<script type="text/javascript" src="$vboptions[abspath]/clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont" width="60"><font size="1" face="Tahoma" color="#FFFFFF"> User Name:</font></td>
<td><input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" width="100"><font size="1" face="Tahoma" color="#FFFFFF">Password:
(</font><a href="login.php?do=lostpw"><font size="1" face="Tahoma" color="#FFFFFF">forgot?</font></a><font size="1" face="Tahoma" color="#FFFFFF">)</font></td>
<td><input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="4" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />
<input type="hidden" name="vb_login_md5password" />
</form></if>
<!-- / login form -->
<!-----put entire code where you want it------>