The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
Hi guys im not a pro with coding so pls be nice,
Ive made a html homepage for my site, and i have integrated a login box on this page for the forums, ive managed to code the box so that when the user enters their username and password they are logged in and redirected to the forum index, but if the user returns to the homepage, they still see the login box , I need help with the coding, such that if a user is logged in and they return to the homepage they see that they are logged in and unread messages etc exactly like we have on vbulletin forum, and maybe a log out button too, Below is the code i have used, pls tell me what else i need to do, Thanks in advance ![]() Code:
<form action="forums/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)"> <table cellpadding="0" cellspacing="3" border="0"> <tr> <td class="smallfont"><label for="navbar_username">User Name</label></td> <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="17" accesskey="u" tabindex="101" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /></td> <td class="smallfont" nowrap="nowrap"> </td> </tr> <tr> <td class="smallfont"><label for="navbar_password">Password</label></td> <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="17" tabindex="102" /></td> <td> </td> </tr> </table> <span class="smallfont"> <input name="submit" type="submit" class="button" accesskey="s" 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." value="Log in" /> <input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" /><label for="cb_cookieuser_navbar">Remember Me?</label></span> <!--<a href="forums/register.php" class="style2">REGISTER</a>--> <input type="button" onClick="parent.location='forums/register.php'" value="Register" /> <input type="hidden" name="s" value="" /> <input type="hidden" name="do" value="login" /> <input type="hidden" name="url" value="/forums/" /> <input type="hidden" name="vb_login_md5password" /> <input type="hidden" name="vb_login_md5password_utf" /> <tr><td> </td> </tr> </form> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|