Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress Count Codes

  • @parsonsprojects

    Member

    Ok i have been looking around for a while but with no luck, i have a user bar which shows the users Activity, Messages, Groups and Friends. What i am looking for is the code to show the number of new group invites and new activity that has been happening, at the moment i have the ones for messages and friends which are

    bp_friend_get_total_requests_count
    bp_get_total_unread_messages_count

    Does anyone know how to get the count for activity and also group invites for a user?

    Cheers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @crazywhistlepig

    Participant

    Have you found out anything else about this? I need this feature as well. WIth the admin bar off there are no notifications of invites other than via email. I’d like a visual indicator of the pending group invites (count) that I can display in a dashboard plugin I developed.

    @david_fly

    Participant

    <? bp_friend_total_requests_count(); ?>
    <? bp_total_unread_messages_count(); ?>

    <? bp_total_mention_count_for_user($bp->loggedin_user)?>

    <? $groups = groups_get_invites_for_user(bp_loggedin_user_id());$groupsInviteCount = $groups[‘total’];?>
    <? echo $groupsInviteCount?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Buddypress Count Codes’ is closed to new replies.
Skip to toolbar