Not Solved PM Count
#1
Not Solved
How would I go about getting an unread PM count to put in my header?

Right now, I have in my header, a list item called messages which takes you to your pm box if you are logged in, and takes you to the register/log in screen when you are not.

If you are logged in, I want it to show Messages (Number of unread messages.)
Ex. Messages (1)

Is there a way to do that?
Reply
#2
Not Solved
mybb shows this by default...anyway,
use this code to show it
Messages ({$pms_unread})

also have a look at what imperial theme does with the PMs
Reply
#3
Not Solved
Thank you, but that doesn't work. This shows up when I get a new pm.

[Image: PMCount.png]
Reply
#4
Not Solved
Let me recheck the variables......ummm
try {$unreadpms} see if that works
Reply
#5
Not Solved
Same thing as before. Nothing show in the parenthesis.
Reply
#6
Not Solved
I gotcha.
this should definitely work
{$mybb->users['pms_unread']}
Reply
#7
Not Solved
(2012-03-09, 06:07 AM)t_virus Wrote: I gotcha.
this should definitely work
{$mybb->users['pms_unread']}

{$mybb->user['pms_unread']}

No longer involved in the MyBB project.
Reply
#8
Not Solved
Blush yeah that's right =')
Reply
#9
Not Solved
Ok, now THAT worked like a charm! Thanks guys!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)