Skip to:

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4454 closed defect (bug) (no action required)

Filtering tabs names causes counter to disappear

Reported by: modemlooper's profile modemlooper Owned by:
Milestone: Priority: normal
Severity: trivial Version: 1.6
Component: Messages Keywords: reporter-feedback close


The numbers next to tabs like messages and friends disappears when you filter the names with



Change History (7)

#1 @DJPaul
12 years ago

  • Keywords reporter-feedback added

What value are you assigning to this?

#2 @modemlooper
12 years ago

$bp->bp_nav['messages']['name'] = 'new_name' ;'

#3 @DJPaul
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.

#4 @DJPaul
12 years ago

modemlooper, did you try this with %s?

#5 @modemlooper
12 years ago


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() ) ;
Last edited 12 years ago by modemlooper (previous) (diff)

#6 @modemlooper
12 years ago

  • Keywords close added
  • Resolution set to invalid
  • Severity changed from normal to trivial
  • Status changed from new to closed

closing this, it's not that important and as I pointed out in code above a work around .

#7 @johnjamesjacoby
12 years ago

  • Component changed from Core to Messaging
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.