put this in your index.php
find:
Code:
$allpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");
UNDER it add:
Code:
$allpmcount=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage");
and if you want to add your pm count to your post count do this:
FIND:
Code:
$totalposts=$countposts['posts'];
REPLACE it with:
Code:
$totalposts=$countposts['posts']+$allpmcount;
you can also display the pmcount like this:
edit the template forumhome and put a text there like:
Quote:
total PM's: $allpmcount[messages]
|