#4454 closed defect (bug) (no action required)
Filtering tabs names causes counter to disappear
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | trivial | Version: | 1.6 |
Component: | Messages | Keywords: | reporter-feedback close |
Cc: |
Description
The numbers next to tabs like messages and friends disappears when you filter the names with
$bp->bp_nav['messages']['name']
]
Change History (7)
#3
@
13 years ago
I believe you will need to add the message count to this string (for example) when you set it. BP doesn't process a %s placeholder and replace it after the fact.
#5
@
13 years ago
does not work. the tab text and count needs some sort of separation. currently it's pushed as one string. New item in array 'count' when registering nav items?
$count = messages_get_unread_count(); $man_nav[] = array( 'name' => __( 'Inbox', 'buddypress' ), 'slug' => 'inbox', 'parent_url' => $messages_link, 'parent_slug' => $this->slug, 'screen_function' => 'messages_screen_inbox', 'position' => 10, 'count' => $count, 'user_has_access' => bp_is_my_profile() );
Note: See
TracTickets for help on using
tickets.
What value are you assigning to this?