Ok so an update on how far i got, I've scouted the web for loads of days now. this is what i got.
Basic Login system -
PHP Code:
<!-- login form -->
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<style type="text/css">
#one,#two,#three{visibility:hidden;position:absolute;height:200px;width:300px;}
</style>
<form action="/forums/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
<input type="hidden" name="s" value="" />
<script type="text/javascript" src="/forums/clientscript/vbulletin_md5.js?v=364"></script>
<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="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"><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="10" 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>
<br>
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
Now in order for the welcome message the login form needs to go, Which i'm stuck at. This is what i have for the welcome message its to check if the user is logged in or not.
PHP Code:
<?php
global $user;
if ($user->uid) {
Print "Welcome $username.";
}
if (!$user->uid) {
Print "Sign In Guest.";
}
?>
But once you login it says "You will now be Re-Directed" it re-directs you to the same login page (Not forums this is a test page away from forums) and shows the same login form as before. Does anyone have any idea how to solve this? If you do you can solve a lot of peoples problems.
Thank you in advance.