Search Results for 'notifications counter'
-
Search Results
-
Topic: Bp custom Menu
Topic: Please, Help Me!
Sorry for the double-post. I can’t close the other…and he’s not rightful.
I actually have this code to display the notifications on header and it works.I just want to know how i can get a “count” condition for the notifications, and if it’s more than 1, that’s change the class “pending-count” to “pending-count-alert”…
Thanks by advance
function my_nav_menu_notif_counter($menu) { if (!is_user_logged_in()) return $menu; else $notif = '<li ><a class="ab-item" href="' . bp_core_get_user_domain(bp_loggedin_user_id() ) . 'notifications/">'. __('').'<span id="ab-pending-notifications" class="pending-count">'. __(''). bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span> </a></li>'; $count = !empty( $notif ) ? count( $notif ) : 0; $menu = $menu . $notif; return $menu; } add_filter( 'wp_nav_menu_items', 'my_nav_menu_notif_counter' ); add_filter( 'show_admin_bar', '__return_false' ); ?>Hi Everyone !
One year ago, i try to put the notifications of the Buddypress bar into my header.
And, thanks to the members of this forum, it works succesfully.
I have now a new item on my menu, and it’s a count of the notifications.But i want to see immediatly when there is a new notification !
I would like to change the color of the notification bubble only when there is a new (ou more) notification !
Can you help me ? :/There is my actual php code, on the bp-custom.php
function my_nav_menu_notif_counter($menu) { if (!is_user_logged_in()) return $menu; else $notif = '<li ><a class="ab-item" href="' . bp_core_get_user_domain(bp_loggedin_user_id() ) . 'notifications/">'. __('').'<span id="ab-pending-notifications" class="pending-count alert">'. __(''). bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span> </a></li>'; $menu = $menu . $notif; return $menu; } add_filter( 'wp_nav_menu_items', 'my_nav_menu_notif_counter' ); add_filter( 'show_admin_bar', '__return_false' );Sorry if my english is bad, i’m french
I have bad knowledges in Php, but i can try to understand the codeWP 4.4.5
BP 2.6.2Topic: Page not found message
Hi,
I followed different tutorials to instal buddypress step by step. But still i got the message not found page for the page’s: PROFILE, NOTIFICATIONS, MESSAGES, FRIENDS, GROUPS, SETTINGS. And i get a blank page to register.
I already connect the right pages in the “Pages” tab in buddypress settings.. And still i get the message:
Not Found
The requested URL /members/admin/activity/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.Or when i trie it with an other account:
Not Found
The requested URL /members/juuderd/profile/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I also installed a theme that is compatible with buddypress so i don’t know what i’m doing wrong anymore. Can someone please help me>
Some themes are designed for BuddyPress. They have app-like header menus like what you’ll find on Facebook, Twitter, Quora, ProductHunt, etc.
What are the typical features of such header menus?
– AJAX search
– live notifications
– profile dropdownThat’s a standard formula formula for web apps these days: http://imgur.com/10lKZnK . In one bar: you have the logo, an AJAX search, a notification dropdown with an unread counter, and user profile dropdown.
This forum has 2 of them integrated with the menu, while BuddyPress on default WordPress websites adds this to the wp-admin bar on top.
Some themes display these very well:
– http://imgur.com/zqw5kRd
– http://imgur.com/XJihK17How do I get this effect on any custom theme? Are there plugins for these search, notification, and profile features?
I’ve added Buddypress menu items (e.g. messages, notifications etc.) in my main WordPress menu. Is there anyway I can have the notification counters next to each of them, as they are in the standard Buddypress menu bar?