@antoinegdln4
8 years ago
I only know the method to put the notifications in the main menu… :/ By the way, this topic is solved, i got the answer on overflostacks…
8 years, 1 month ago
No Help ? :/
My question is “How can i include this code
$notifications = bp_core_get_notifications_for_user( bp_loggedin_user_id(), ‘object’ ); $count = !empty( $notifications ) ? count( $notifications ) : 0; $alert_class = (int) $count > 0 ? ‘pending-count alert’ : ‘count no-alert’; $menu_title = ‘‘ . $count . ‘‘;
(who can get the class [and color] i want) to my previous code…. ” Thanks !