Buddypress Unread message count - live update?

You could use setTimeout to periodically fire a request to the server which invokes your messages_get_unread_count() and returns a value Then based on the value returned, you could show or hide your div id="message_count with the updated count.

You could use setTimeout to periodically fire a request to the server which invokes your messages_get_unread_count() and returns a value. Then based on the value returned, you could show or hide your with the updated count.

I've worked it out... It turns out buddypress has built in ajax functions for a lot of this stuff... So for anyone else wanting to do the same thing.... It is a simple case of putting the 'count' inside an a link with the following id. Buddypress' javascript then does the rest for you. Simple!

Mana thanks for your suggestion though.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions