No this is a hacking issue.
Try this but it's not tested.
In global.php find:
PHP Code:
eval("\$headnewpm = \"".gettemplate('head_newpm')."\";");
}
Below it add:
PHP Code:
$allpm=$DB_site->query_first("SELECT COUNT(*) AS messages,
SUM(IF(dateline>$bbuserinfo[lastvisit] AND folderid=0,1,0)) AS newpm,
SUM(IF(messageread=0 AND folderid=0,1,0)) AS unreadpm
FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");
$newpm['messages']=intval($allpm['newpm']);
$unreadpm['messages']=intval($allpm['unreadpm']);
BEWARE! THIS WILL ADD 1 QUERY TO EVERY PAGE ON YOUR SITE!
- miSt