#4454 closed defect (bug) (no action required)
Filtering tabs names causes counter to disappear
Reported by: | modemlooper | 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
@
12 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
@
12 years ago
EDIT:
This works, but you have to specify the arg. if you just put the specifier it out puts %s. So options are to add a count key to item array for nav items creation or create a new function that is a catch all for tab counts. It's a trivial though.
$bp->bp_nav['messages']['name'] = sprintf( 'New name <span>%s</span>' , bp_get_total_unread_messages_count() ) ;
Note: See
TracTickets for help on using
tickets.
What value are you assigning to this?