Welcome to the vBulletin support forums! In our community forums you can receive professional support and assistance with any issues you might have with your vBulletin Products.
Assuming you're aware of how to make database queries in php, I am guessing it's as simple as adding the query commands to index.php (in the main forums folder) and using the variables that you assigned the queries to in the forumhome template.
For instance, inserting this code (don't try this at home, kids, besides it's already in index.php ):
$allpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");
$newpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND dateline>$bbuserinfo[lastvisit] AND folderid=0 $ignoreusers");
$unreadpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND messageread=0 AND folderid=0 $ignoreusers");
and referring to the variables $allpm[messages] $newpm[messages] $unreadpm[messages] to get the information
I hope this helps. I'm not too advanced in PHP/MySQL yet, but I try to help out wherever I can
Comment