MyBB Community Forums

Full Version: Display number of new PM's
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I return the amount of PM's a user has in their inbox that are unread - but just the number? For example, at my test site I have "Unread 0, Total 6". Instead of this, how can I return just "0"? I'm trying to create a dropdown where the PM button would be like "Private Messaging (0)" or "Private Messaging (3)".
You can use

$mybb->user['pms_unread']
Thanks Wildcard, worked like a charm. Smile
No problem m8 Smile