Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Imitated New Message Notification


Simon Dabkowski
Participant

@simoncreative

Took me forever to figure this one out, yet its so simple. Here’s how I’ve set mine up:

<?php

global $bp;

$inbox_count = messages_get_unread_count();

if ($inbox_count > ‘9’) {

$inbox_count = ‘9+’;

}

echo ‘<span>’.$inbox_count.'</span>’;

?>

Each member gets a new message count and because I’ve prettied up the actual notification css I didn’t want to show a value above ‘9’.

Skip to toolbar