View Full Version : [REQUEST] Count PM's as posts
Anyone know how to count your pm's and add them to the post count at the top? is it a hack?
like on my board?
maybe.. dunno.. cant enter the forum without joining
put this in your index.php
$allpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");
UNDER it add:
$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:
REPLACE it with:
you can also display the pmcount like this:
edit the template forumhome and put a text there like: total PM's: $allpmcount[messages]
Thanks a lot. I'll try it in a bit.
Doesn't work. Gives weird errors.
I would really like to have this
A next addon would be under their post.. it lists their postcount and pm count!
vBulletin® v3.8.11 Beta 1, Copyright ©2000-2017, vBulletin Solutions, Inc.