Hi everyone, i am trying to create a login box on my home page which will enable users to log in/out on the home page to my vbulletin forums. I have successfully managed to create a log in box - it works! BUT once logged in it remains the same. I would love to know how to make it changed once logged in to display your username and a log out button.
Here is the code i am currently using:
<!--Login Form-->
<form action="http://www.wdw4brits.com/forums/login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
<input type="hidden" name="redirect" value="http://www.wdw4brits.com" />
<script type="text/javascript" src="http://www.wdw4brits.com/forums/clientscript/vbulletin_md5.js"></script>
<table border="0" cellpadding="0" cellspacing="3">
<tbody align="left"><tr>
<td ><label for="navbar_username">User Name</label></td>
<td><input class="bginput" style="font-size: 11px;" name="vb_login_username" size="10" accesskey="u" tabindex="101" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" type="text"></td>
</tr>
<tr>
<td ><label for="navbar_password">Password</label></td>
<td><input style="font-size: 11px;" name="vb_login_password" size="10" accesskey="p" tabindex="102" type="password"></td>
</tr><tr>
<td><input value="Log in" tabindex="104" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="s" type="submit"></td>
<td colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" type="checkbox">Remember Me?</label></td>
</tr>
<tr>
<td colspan="2">
<a href="http://www.wdw4brits.com/forums/login.php?do=lostpw">Forgot Password?</a><p></td>
</tr>
<tr><td colspan="2">
<a href="http://www.wdw4brits.com/forums/register.php">Register</a></td></tr>
</tbody></table>
<input name="s" value="" type="hidden">
<input name="do" value="login" type="hidden">
<input name="vb_login_md5password" type="hidden">
<input name="vb_login_md5password_utf" type="hidden">
</form>
<!--/Login Form-->
Every bit of help would be much appreciated.
Many Thanks.