In Wordpress home page I've insert a button that log in /forum/login.php
I wanted to ask if possible also include an overview of user statistics such as:
recent messages
last visit
etc.
This is the code:
Code:
<?php
global $vbulletin;
if ($vbulletin->userinfo['userid']!=0)
{
$username= $vbulletin->userinfo['username'];
echo "Welcomeback, <b>";
echo $username;
echo "!</b>"; }
else {
echo"<form action=\"/forum/login.php\" method=post onsubmit=md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)>
<script type=text/javascript src=\"".$forumpath."/clientscript/vbulletin_md5.js\"></script>
User:<input name=vb_login_username type=text id=navbar_username onfocus=\"if (this.value == '$vbphrase[username]') this.value = '';\" size=10 />
Password:<input id=navbar_username name=vb_login_password type=password size=10 />
<label for=cb_cookieuser_navbar><input name=cookieuser type=checkbox id=cb_cookieuser_navbar value=1 checked=checked />Ricordami</label>
<input type=submit title=$vbphrase[enter_username_to_login_or_register] value=\"Log In\" />
<input type=hidden name=s value=$session[sessionhash] />
<input type=hidden name=do value=login />
<input type=hidden name=vb_login_md5password />
<input type=hidden name=vb_login_md5password_utf />
</form>";
}
?>
And I need to put something like that
Code:
// Display last visit time and date
echo "Last visit: $pmbox[lastvisitdate] alle $pmbox[lastvisittime]";
// Display PM Details and generate link to PM box
echo "<a href=\"".$forumpath."private.php?$session[sessionurl] \">Private message:</a> $vbphrase[unread_x_nav_compiled] $vbphrase[total_x_nav_compiled]";
Thanks