Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'notifications counter'

Viewing 25 results - 1 through 25 (of 87 total)
#313790
Unknown
Participant

Some of my users encounter this statement “”There has been a critical error on your site.”, when they create groups. Although when they refresh it and click on their profile the group is created. This is the error found.
[11-Sep-2020 07:12:01 UTC] PHP Fatal error: Uncaught Error: Class ‘PHPMailer’ not found in /srv/htdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-phpmailer.php:91
Stack trace:
#0 /srv/htdocs/wp-content/plugins/buddypress/bp-core/bp-core-functions.php(3233): BP_PHPMailer->bp_email(Object(BP_Email))
#1 /srv/htdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-notifications.php(365): bp_send_email(‘groups-invitati…’, 102044344, Array)
#2 /srv/htdocs/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-invitation-manager.php(55): groups_notification_group_invites(Object(BP_Groups_Group), 102044344, 102044348)
#3 /srv/htdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-invitation-manager.php(197): BP_Groups_Invitation_Manager->run_send_action(Object(BP_Invitation))
#4 /srv/htdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-functions.php(1718): BP_Invitation_Manager->send_invitation_by_id(1178)
#5 /srv/htdocs/wp-content/plugins/buddypress/bp-groups/actions/create.php(139): groups_send_invites(Array)
#6 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(287): groups_action_create_group(”)
#7 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#8 /wordpress/core/5.5.1/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#9 /srv/htdocs/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(353): do_action(‘bp_actions’)
#10 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(287): bp_actions(”)
#11 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#12 /wordpress/core/5.5.1/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#13 /srv/htdocs/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(430): do_action(‘bp_template_red…’)
#14 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(287): bp_template_redirect(”)
#15 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#16 /wordpress/core/5.5.1/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#17 /wordpress/core/5.5.1/wp-includes/template-loader.php(13): do_action(‘template_redire…’)
#18 /wordpress/core/5.5.1/wp-blog-header.php(19): require_once(‘/wordpress/core…’)
#19 /wordpress/core/5.5.1/index.php(17): require(‘/wordpress/core…’)
#20 {main}
thrown in /srv/htdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-phpmailer.php on line 91

I hope someone can help me with this. This is a link to my site https://getaprofessor.com/

#312481
danimasedo93
Participant

Hi all! I’m new in php & css.

After reading a lot and learning very little, I managed to program the notifications in my project in php and css. It works fine, shows the amounts (friends, messages and notifications) and redirects where it should.

My problem is that I need to “hide” the bubble of “0” when the user has no notifications and only show when if they have 1 or more notifications

Bubble Notification in menu

Functions.php

function my_counter_nav_menu($menu) {

	if ( ! is_user_logged_in() ) {
		return $menu;
	}

	$user_id = bp_loggedin_user_id();
	$user_url = bp_loggedin_user_domain();

        $friends_url = $user_url . bp_get_friends_slug() . '/';
	$msg_url = $user_url . bp_get_messages_slug() . '/';
	$notify_url = $user_url . bp_get_notifications_slug() . '/';

	ob_start();
	?>
        <li><a><a href="<?php echo bp_loggedin_user_domain();?>friends"><span class="notifications_icons"><i class="fas fa-user-friends" style="font-size:17px;"></i></span><span class="my_bubble_notify"><?php echo friends_get_friend_count_for_user( $user_id );?></span></a></a></li>

	<li><a><a href="<?php echo bp_loggedin_user_domain();?>messages"><span class="notifications_icons"><i class="fas fa-envelope" style="font-size:17px;"></i></span><span class="my_bubble_notify"><?php echo bp_get_total_unread_messages_count( $user_id );?></span></a></a></li>
	
	<li><a><a href="<?php echo bp_loggedin_user_domain();?>notifications"><span class="notifications_icons"><i class="fas fa-bell" style="font-size:17px;"></i></span><span class="my_bubble_notify"><?php echo bp_notifications_get_unread_notification_count( $user_id );?></span></a></a></li>
<?php
	$menu_items = ob_get_clean();

	$menu = $menu . $menu_items;
	return $menu;
}

add_filter( 'wp_nav_menu_items', 'my_counter_nav_menu' )

CSS

.notifications_icons {
color: #ffffff;
vertical-align: middle;
margin: -7px;
}

.my_bubble_notify {
color: #ffffff;
border-radius: 3px;
background-color: #f7823f;
vertical-align: 20%;
position: relative;
	font-size: small;
	padding: 0.1em 5px;
}

Buddypress 6.0.0
Wordpress 5.4.2
site: http://www.gamerstroop.com
If you need, you can use test account (acc:test – pw:test)

I dont know if I can paste my site link here. If I can’t please remove it or let me know, thank you so much for reading and helping me! <3

#312335

In reply to: views

socially2020
Participant

I think you didn’t get that can you have a look at my site https://itssocially.com is the url of my site in the third menu i have added notifications called activity i want counter notifications for that

#312330

Topic: views

in group forum Installing BuddyPress
socially2020
Participant

@prashantvatsh i have two questions
1. i have botom menu in my site and i have added notifications to my menu but it doesnot show notifications counter for new menus
2. is there a way to add views counter for media specially for videos

#312057

Topic: notifications

in group forum Installing BuddyPress
socially2020
Participant

hi i have footer menu in my site and i have added notifications in my menu but it doesn’t show notifications counter

#307450
michaeljcheney21
Participant

Ive tried multiple times with different usernames and emails but the registration page is not working;

Register

1. Which version of WordPress are you running?

WordPress 5.2.2

2. Did you install WordPress as a directory or subdomain install?

no, on the root

3. If a directory install, is it in root or in a subdirectory?

root

4. Did you upgrade from a previous version of WordPress? If so, from which version?

no

5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.

yes

6. Which version of BP are you running?

Version 4.4.0

7. Did you upgraded from a previous version of BP? If so, from which version?

no

8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?

Akismet Anti-Spam
Activate | Delete
Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.

Version 4.1.2 | By Automattic | View details
Select bbPress
bbPress
Deactivate | Settings | About
bbPress is forum software with a twist from the creators of WordPress.

Version 2.5.14 | By The bbPress Community | View details
Select BuddyPress
BuddyPress
Deactivate | Settings | Hello, BuddyPress!
BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!

Version 4.4.0 | By The BuddyPress Community | View details
Select Contact Form 7
Contact Form 7
Settings | Deactivate
Just another contact form plugin. Simple but flexible.

Version 5.1.4 | By Takayuki Miyoshi | View details
Select Envato Market
Envato Market
Deactivate
WordPress Theme & Plugin management for the Envato Market.

Version 2.0.1 | By Envato | Visit plugin site
Select Featured Image from URL
Featured Image from URL
Activate | Delete
Use an external image as Featured Image of your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.

Version 2.6.0 | By Marcel Jacques Machado | View details
Select Google Captcha (reCAPTCHA) by BestWebSoft
Google Captcha (reCAPTCHA) by BestWebSoft
Settings | Deactivate
Protect WordPress website forms from spam entries with Google Captcha (reCaptcha).

Version 1.51 | By BestWebSoft | View details | Settings | FAQ | Support
Select Hello Dolly
Hello Dolly
Activate | Delete
This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from Hello, Dolly in the upper right of your admin screen on every page.

Version 1.7.2 | By Matt Mullenweg | View details
Select Leadpages Connector
Leadpages Connector
Deactivate
Connect your Leadpages account to your WordPress site to import Leadpages and Leadboxes

Version 2.1.6.21 | By Leadpages | Visit plugin site
Select OptimizePress
OptimizePress
Deactivate
OptimizePress is the essential plugin for marketers. Create squeeze pages, sales letters and much more with ease.

Version 2.5.21 | By OptimizePress | Visit plugin site
Select Post Views Counter
Post Views Counter
Settings | Deactivate
Post Views Counter allows you to display how many times a post, page or custom post type had been viewed in a simple, fast and reliable way.

Version 1.3.1 | By Digital Factory | View details | Support
Select Socialize Plugin
Socialize Plugin
Deactivate
A required plugin for Socialize theme you purchased from ThemeForest. It includes a number of features that you can still use if you switch to another theme.

Version 3.10 | By GhostPool
Select The Events Calendar
The Events Calendar
Deactivate | Settings | Calendar
The Events Calendar is a carefully crafted, extensible plugin that lets you easily share your events. Beautiful. Solid. Awesome.

Version 4.9.7 | By Modern Tribe, Inc. | View details | Support | View All Add-Ons
Select Theia Sticky Sidebar
Theia Sticky Sidebar
Deactivate
Glues your website’s sidebars, making them permanently visible while scrolling.

Version 1.8.0 | By WeCodePixels | Visit plugin site
Select Visual Sidebar Editor
Visual Sidebar Editor
Deactivate
An addon that allow you to use WPBakery Visual Composer or wordress editor to override sidebars

Version 1.2.5 | By ERROPiX | Visit plugin site
Select WishList Member™ 3.0
WishList Member™ 3.0
Deactivate
WishList Member™ 3.0 is the most comprehensive membership plugin for WordPress users. It allows you to create multiple membership levels, protect desired content and much more. For more WordPress tools please visit the WishList Products Blog. Requires at least WordPress 4.0 and PHP 5.4

Version 3.0.6282 | By WishList Products | Visit plugin site
Select WordPress Automatic Plugin
Wordpress Automatic Plugin
Deactivate
WordPress Automatic posts quality articles, Amazon products, Clickbank products, Youtube videos, eBay items, Flicker images, RSS feeds posts on auto-pilot and much more.

Version 2.3.3 | By Miled | View details
Select WPBakery Page Builder
WPBakery Page Builder
Settings | Deactivate
Drag and drop page builder for WordPress. Take full control over your WordPress site, build any layout you can imagine – no programming knowledge required.

Version 6.0.5 | By Michael M – WPBakery.com | Visit plugin site
Select Yoast SEO
Yoast SEO
FAQ | Premium Support | Settings | Deactivate
The first true all-in-one SEO solution for WordPress, including on-page content analysis, XML sitemaps and much more.

9. Are you using a standard WordPress theme or customized theme?

Socialize Child Theme

10. Which theme do you use ?

Socialize Child Theme

11. Have you modified the core files in any way?

no

12. Do you have any custom functions in bp-custom.php?

no

13. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?

built in i think

14. Please provide a list of any errors in your server’s log files. https://codex.wordpress.org/Debugging_in_WordPress

dont think i have these – just cant get registered as a pretend user on the registration page

15. Which company provides your hosting?

D9

16. Is your server running Windows, or if Linux; Apache, nginx or something else?

Apache i think

17. Which BP Theme are you using?

dont know

18. Have you overloaded any BuddyPress template files.

no

19. Any other site customisations that might have a bearing on the issue?

no

#307041
kaneesha
Participant

I try to get a different color for “new” notifications could somebody help please?

My actual code in my theme functions.php:

//notification alerts for posts
function my_nav_menu_notif_counter($menu) {      
        if (!is_user_logged_in())
                return $menu;
        else
                $notif = '<a class="notices" href="' . bp_get_notifications_unread_permalink() . '"><span class="noticecount"><i class="noticecounttitle">Notifications</i>'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a>';
                $menu = $menu . $notif;
                return $menu;
}
add_filter( 'wp_nav_menu_items', 'my_nav_menu_notif_counter' );

//notification alerts for messages
function my_nav_menu_msg_counter($menu) {      
        if (!is_user_logged_in())
                return $menu;
        else
                $notif = '<a class="notices" href="' . bp_loggedin_user_domain() . 'messages/' . '"><span class="noticecount2"><i class="noticecount2title">Messages</i>'. bp_get_total_unread_messages_count( bp_loggedin_user_id() ) .'</span></a>';
                $menu = $menu . $notif;
                return $menu;
}

Thank you in advance 🙂

#302168
Venutius
Moderator

One aspect I forgot was if the user is not logged in, ths would fix that:

const notificationsCounter = document.getElementById('ab-pending-notifications');
const notificationsIndicator = document.getElementById('wp-admin-bar-bp-notifications');

function counterChange() {
	if (notificationsCounter.innerText == '0') {
		notificationsIndicator.style.display = 'none';
	} else {
		notificationsIndicator.style.display = 'block';
	}
}

if (notificationCounter){
    notificationsCounter.addEventListener('change', counterChange);
}
counterChange();
#302163
gcrea
Participant

Hi, thanks so much but it doesn’t seem to like the top two lines:

const notificationsCounter = document.getElementById('ab-pending-notifications');
const notificationsIndicator = document.getElementById('wp-admin-bar-bp-notifications');

I am getting the following php error:

Parse error: syntax error, unexpected ‘(‘, expecting ‘,’ or ‘;’ in C:\wamp\www\models\wp-content\themes\models\functions.php on line 405

Line 405 is the first line.

#302158
Venutius
Moderator

Hi there,

I’m not sure where you are getting your classes from, I wrote this which works on my system:

const notificationsCounter = document.getElementById('ab-pending-notifications');
const notificationsIndicator = document.getElementById('wp-admin-bar-bp-notifications');

function counterChange() {
	if (notificationsCounter.innerText == '0') {
		notificationsIndicator.style.display = 'none';
	} else {
		notificationsIndicator.style.display = 'block';
	}
}

notificationsCounter.addEventListener('change', counterChange);
counterChange();

There’s plugins that allow you to get dynamic notification updates, so just in case you ever want to add that feature in future I made it so that it can dynamically change.

#282836
Sbrack
Participant

Hi! it’s about a week I’m trying to add a notification counter to my Buddypress site’s menu, unfortunately without getting any results.

I have read many topics on this forum but I have not been able to use them because I do not have the php code skills and I have a site on WordPress.com (not wordpress.org), so it’s harder to edit the files.

So what I would like to know is: how can I add this counter to my menu using third-party plugins (eg “insert header and footers” or “code snippets”)? Is there a way to do it? I only need the counter because I’ve already created an icon in my menu that opens the notifications panel when clicked.

Thank you in advance for your help!

#282318
shanebp
Moderator

Suggestion…

//notification alerts
function my_nav_menu_notif_counter( $menu, $args ) {      
	if (!is_user_logged_in()) {
		return $menu;
	} else {
		 if( $args->theme_location == 'primary' ) {	
			$unread = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );
			if ( 0 != $unread ) {	
				$link = '<a href="' . bp_get_notifications_unread_permalink() . '">Notifications '. $unread . '</a>';
				$notif = '<span class="noticecount">' . $link . '</span>';
				$menu .= $notif;
			}
		}
	}
	return $menu;
}
add_filter( 'wp_nav_menu_items', 'my_nav_menu_notif_counter', 10, 2 ); 
#282300
kaneesha
Participant

Hi,

first of all i did a search and my coding knowledge is at best “casual” so there were probably solutions to my question inside the search results but since i’m as i said a casual coder at best there is more than just a slight change that haven’t recognized them as solutions … and well now i’m here.

So please bear with me if possible 🙂

So i implemented two snippets in my WP theme functions.php, the one shows unread messages and the other one all unread notifications, so far so good! But i’d like to assign both with proper links (clickable urls) to their logical destinations so in this case either to the BP unread messages or BP unread notifications pages.

Here is my code so far:

//notification alerts
function my_nav_menu_notif_counter($menu) {      
        if (!is_user_logged_in())
                return $menu;
        else
                $notif = '<span class="noticecount">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span>';
                $menu = $menu . $notif;
                return $menu;
}
add_filter( 'wp_nav_menu_items', 'my_nav_menu_notif_counter' ); 

//msg notification alerts
function my_nav_menu_msg_counter($menu) {      
        if (!is_user_logged_in())
                return $menu;
        else
                $notif = '<span class="noticecount2">'. bp_get_total_unread_messages_count( bp_loggedin_user_id() ) .'</span>';
                $menu = $menu . $notif;
                return $menu;
}
add_filter( 'wp_nav_menu_items', 'my_nav_menu_msg_counter' ); 

So what magic is it actually to set the links properly?

Thank you in advance :))

#281720
haleyscorner
Participant

check the counter under users. If you can resend one via the admin function, it is not a hosting issue it is a bp bug.

Also if all the notices about new message and other notifications are being received by user it is not a hosting issue, it is a bp bug.

I have a full bbpress working environment which is grate and managed under secure and wp user accounts.

The new site I saw bp aka buddypress and it seem to meet the needs for what I am doing.
Profile are exclusive to each group for editing. this is option in profiles.

More later.

#275826
shanebp
Moderator

Thanks for the clarification.

I just created a test topic and the accepted title had 80 characters.
Perhaps you miscounted.

This has 73 chars: https://buddypress.org/support/topic/how-to-add-notifications-counter-to-my-friends-requests-sub-nav-tab/

If you are still having trouble, perhaps you could use a title that is a little shorter.

#275806
MorgunovVit
Participant

Hi!
WordPress 4.9.8
BuddyPress 3.1.0

Could somebody help me, how to add notifications counter to ‘My friends’ > ‘Requests’ sub nav tab?
Screenshot here

#272621
michaelbrown1
Participant

Hello,

I have been trying to implement this solution for many, incredibly frustrating hours. I have studied this topic and its links for a few days now, hoping to solve the problem on my own.

I can successfully show a fixed ‘notification counter’ in the menu using the first snippet that was provided, great! However when I try to use the second snippet for positioning the counter, the code seems to have no effect. It’s very possible I’m missing something basic, as it seems that many others on this topic/forum have had success adding notifications to their header menus.

Please help me before I go insane (: 🙂 (:
Mike

#267072
mickeulkeul
Participant

Hi everybody,
I’m looking for a plugin which aims to add user notifications links and counter with pretty icons like in thrive theme. look at the menu bar on the right
http://thrive-demo.dunhakdis.me/
Username: wynonna
Password: 1234567890

Thanks you very much for your help !

#264623
m1000
Participant

Hello,

I use simple loop to display user notifications:


if ( $notifications = bp_notifications_get_notifications_for_user( bp_loggedin_user_id(), $format = 'string' ) ) {
	}

	if ( $notifications ) {
		$counter = 0;
		for ( $i = 0, $count = count( $notifications ); $i < $count; ++$i ) {
			$alt = ( 0 == $counter % 2 ) ? ' alt' : ''; ?>
			<div class="my-notification<?php echo $alt ?>"><?php echo $notifications[$i] ?></div>

			<?php
			 $counter++;
			}
}

When user click and view any notification it disappears automatically except
“XX commented on one of your updates” notification. When I switch to a default wp theme and click on this notification it disappears. Both links on both themes are the same, it’s
activity/p/277/?nid=74#acomment-294

Why it happens only to one notification? All other notifications works fine.

#263461
Florian Bansac
Participant

If there are still people looking for help, I have been trying different things today to:
-add the notifications counter in menu
-style differently if 0 notifications or 1+
-target only the main

It works for me, maybe you can check from here:

// filter to target only main menu
add_filter('wp_nav_menu_items','my_nav_menu_notif_counter', 10, 2);

function my_nav_menu_notif_counter($menu, $args) {

$url = bp_core_get_user_domain(bp_loggedin_user_id()) .'notifications/';

// counter to target unread notifications = 0 or 1+
$bpnotifcount = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );

       // condition: user must be loggedin
       if (!is_user_logged_in())
                return $menu;
       else

                // condition: only main nav
		if( $args->theme_location == 'primary' ) {

                        // condition: 0 unread notifications
			if($bpnotifcount == 0) { 
                	$notif = '<li><a href=" ' .$url. ' ">Notifications <span class="notifmenucount">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a></li>';
			} else {
               		$notif = '<li><a href=" ' .$url. ' ">Notifications <span class="notifmenucount countnot0">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a></li>';
			}

        		$menu = $menu . $notif;
        		return $menu;
		}

        	else
			return $menu;

}

And CSS

/*Notifications counter in menu*/
.notifmenucount {
border-radius: 25%;
border: 1px solid #ccc;
color: #888;
display: inline;
margin-left: 1px;
padding: 2px 6px;
text-align: center;
vertical-align: center;
font-size: small;
}
.countnot0 {
color: #ffff00;
background: #ff0000;
border: 1px solid transparent;
}

😉

#263459
Florian Bansac
Participant

I tried all sorts of things on this topic today, I ended up with something that looks like it’s working. Maybe you can try it:

// filter to target only main menu
add_filter('wp_nav_menu_items','my_nav_menu_notif_counter', 10, 2);

function my_nav_menu_notif_counter($menu, $args) {

$url = bp_core_get_user_domain(bp_loggedin_user_id()) .'notifications/';

// counter to target unread notifications = 0 or 1+
$bpnotifcount = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );

       // condition: user must be loggedin
       if (!is_user_logged_in())
                return $menu;
       else

                // condition: only main nav
		if( $args->theme_location == 'primary' ) {

                        // condition: 0 unread notifications
			if($bpnotifcount == 0) { 
                	$notif = '<li><a href=" ' .$url. ' ">Notifications <span class="notifmenucount">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a></li>';
			} else {
               		$notif = '<li><a href=" ' .$url. ' ">Notifications <span class="notifmenucount countnot0">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a></li>';
			}

        		$menu = $menu . $notif;
        		return $menu;
		}

        	else
			return $menu;

}

And CSS:

/*Notifications counter in menu*/
.notifmenucount {
border-radius: 25%;
border: 1px solid #ccc;
color: #888;
display: inline;
margin-left: 1px;
padding: 2px 6px;
text-align: center;
vertical-align: center;
font-size: small;
}
.countnot0 {
color: #ffff00;
background: #ff0000;
border: 1px solid transparent;
}

I hope it helps!

#261057

In reply to: Bp custom Menu

livingflame
Participant

Hi @danbp
Me again.

First look at this:

// Add Count Near Nav Menu
function my_counter_nav_menu($menu) {

	if ( ! is_user_logged_in() ) {
		return $menu;
	}

	$user_id = bp_loggedin_user_id();
	$user_url = bp_loggedin_user_domain();

	$notify_url = $user_url . bp_get_notifications_slug() . '/';

	ob_start();
	?>
	
	<li><a href="<?php echo $notify_url ?>">Notificaciones <span class="my_bubble"> <?php echo bp_notifications_get_unread_notification_count( $user_id );?></span> </a></li>
<?php
	$menu_items = ob_get_clean();

	$menu = $menu . $menu_items;
	return $menu;
}
add_filter( 'wp_nav_menu_items', 'my_counter_nav_menu' );

This is a modification of your code for show notifications bubbles in Main Menu.

Okey, it works but, I dont want this line: <?php echo $notify_url ?>”>Notificaciones

I want to get bubbles for Buddypress-Nav-Menu. You know, Dashboard / Menus / Buddypress. Here you have buddypress links: profile, messages, etc. but, if you add “messages”, appear without counter. So, I want counter for these…

#260826
Tranny
Participant

Hey Scott @redsand

Thank you for your message. I’m gonna take a look at the plugin you have suggested. I’m still hoping that BP developers will implement basic features that would help in countering spam. Some such features would be:

1 – Ability to turn off email notifications for all existing users, and choose a default setting for new users
2 – Ability to set a limit on how many members can be tagged per post
3 – Ability to set a limit on how many friendship connections can a member make per day, and the ability to set after how many pending friendship requests the member can’t make any more requests
4 – Ability to set a period in days after registration, during which a newly registered member will not be able to tag anyone or make friendship connections
5 – Ability to force moderation on BP related posts similar to WP core, whereby a post would be held in moderation unless a user has an approved post

Features like that would most certainly be welcome by owners of larger sites, and probably by owners of smaller sites too. They can be frequently encountered in other scripts.

I do realize that fighting spam is a neverending battle, but features I’ve been talking about would make a significant impact on a webmaster’s ability to reduce it, especially since right now BP doesn’t have anything to mitigate it in any way.

Viewing 25 results - 1 through 25 (of 87 total)
Skip to toolbar