This little gem of a small hack is perfect for my needs, thank-you!
I'm surprised no one has replied to this thread ever as with a slight addition, it can cut back on some of our 'support' to our end users...
I don't know how many times I've had to explain to my users on why they can't receive PMs even after emptying their inboxes [the dreaded Sent Items folder].
Simply add another query to the instructions:
$unreadpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid=-1 $ignoreusers");
And then put
$sentpm[messages] sent messages wherever in your privfolder template
Well, that's how I'm using it
Cheers,
~Regs.