PDA

View Full Version : Login Integrated with VB


JamieLee2k
Sat 11th Nov '06, 12:32pm
I have seen SubDreamer at work and I am making a html page using a template I found for free on the web and I wanted to add a login section and once the person has logged in they get took back to the index.html page and they get presented with how many messages they have etc.....

I know this can be done in PHP but not sure in HTML, I am very basic but learning a little, As far as I am aware I need to point the link to MySQL.

I just wondered if there was any links/guides or advice anyone can give me.

Thanks
JamieLee2k

JamieLee2k
Sat 11th Nov '06, 1:32pm
I have found this:
<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td class="smallfont">User Name</td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Remember Me?</label></td>
</tr>
<tr>
<td class="smallfont">Password</td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
<td><input type="submit" class="button" 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" /></td>
</tr>
</table>
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->
I have put this code in above but when it logs me in it redirects me back to the homepage which is fine, I want it that way, but the login still asks me to login on the homepage, I also want this to display Username, PM's, Date, Time, etc.... from the top right of the index.php in the forums.

Can anyone help me here

JamieLee2k
Tue 28th Nov '06, 8:40am
Seems a little dead in here, anyone got any info on this? please

Marco van Herwaarden
Tue 28th Nov '06, 8:56am
Please check the Articles section of www.vbulletin.org (http://www.vbulletin.org).