SupaJ
01-22-2005, 03:06 PM
Hello, I'm designing my website and I want to integrate it with Vbulletin.
I have added a userpanel with the following script:
<?
if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
print("<align='center'><span class='sectionheader'>Welcome back, $username!<br>");
} else {
?>
<form action='forums/login.php' method='post' onsubmit='md5hash(vb_login_password,vb_login_md5pa ssword)'>
<script type='text/javascript' src='forums/clientscript/vbulletin_md5.js'></script>
<span class="sectionheader">Username:</span>
<input type='text' class='button' name='vb_login_username' id='navbar_username' size='15' accesskey='u' tabindex='1' value='' onfocus='if (this.value == 'username') this.value = '';' /><br>
<span class="sectionheader">Password: </span>
<input type='password' class='button' name='vb_login_password' size='15' accesskey='p' tabindex='2' /><br>
<input type='checkbox' name='cookieuser' value='1' tabindex='3' id='cb_cookieuser_navbar' accesskey='c' checked='checked' /><span class='sectionheader'>Remember Me</span><br>
<input name="submit" type='submit' class='button' accesskey='s' tabindex='4' title='Log In' value='Log In' />
<input type='hidden' name='do' value='login' />
<input type='hidden' name='forceredirect' value='1' />
<input type='hidden' name='vb_login_md5password' />
</form>
<?
}
?>
which I got from this site (I forgot by wo, if somebody tells me who i'll give the appropriate credits), when you are logged in it brings you back and changes the login thing to "Welcome back" but instead of that I want it to display the avatar, the last time you were online and the amount of private msg's read and unread. How do I do this?
my 2nd question is:
How do I add the amount of posts on the forums on my main site?
thanks in advance
I have added a userpanel with the following script:
<?
if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
print("<align='center'><span class='sectionheader'>Welcome back, $username!<br>");
} else {
?>
<form action='forums/login.php' method='post' onsubmit='md5hash(vb_login_password,vb_login_md5pa ssword)'>
<script type='text/javascript' src='forums/clientscript/vbulletin_md5.js'></script>
<span class="sectionheader">Username:</span>
<input type='text' class='button' name='vb_login_username' id='navbar_username' size='15' accesskey='u' tabindex='1' value='' onfocus='if (this.value == 'username') this.value = '';' /><br>
<span class="sectionheader">Password: </span>
<input type='password' class='button' name='vb_login_password' size='15' accesskey='p' tabindex='2' /><br>
<input type='checkbox' name='cookieuser' value='1' tabindex='3' id='cb_cookieuser_navbar' accesskey='c' checked='checked' /><span class='sectionheader'>Remember Me</span><br>
<input name="submit" type='submit' class='button' accesskey='s' tabindex='4' title='Log In' value='Log In' />
<input type='hidden' name='do' value='login' />
<input type='hidden' name='forceredirect' value='1' />
<input type='hidden' name='vb_login_md5password' />
</form>
<?
}
?>
which I got from this site (I forgot by wo, if somebody tells me who i'll give the appropriate credits), when you are logged in it brings you back and changes the login thing to "Welcome back" but instead of that I want it to display the avatar, the last time you were online and the amount of private msg's read and unread. How do I do this?
my 2nd question is:
How do I add the amount of posts on the forums on my main site?
thanks in advance