Search Results for 'notification user id'
-
Search Results
-
Topic: notification email
I have no idea why when users register on my platform (after installing BuddyPress), they do not receive any notification email. Does anyone know how to fix it?
I administer two social sites and both are asking of there is any way to remove notifications of people joining the group and who made friends with whom… It is plugging up the group notification area and users are getting annoyed.
I have searched for appropriate plugins and found a few but all are depreciated and mess up the site.
Wordpress 4.7.3
Buddypress 2.8.2
Bbpress 2.5.12I found a code hack for the functions.php but it can’t be used in the child “guideline” theme. When added to the child, I lose admin pages. code snippet below
// Remove (hide) various activities from streams.
function my_hidden_activities($a, $activities) {
//if admin we want to know
//if (is_site_admin())
// return $activities;$nothanks = array(“new_blog_post”, “created_group”, “joined_group”, “new_member”, “friendship_created”, “activity_liked”);
foreach ($activities->activities as $key => $activity) {
if (in_array($activity->type, $nothanks, true)) {
unset($activities->activities[$key]);
$activities->activity_count = $activities->activity_count-1;
$activities->total_activity_count = $activities->total_activity_count-1;
$activities->pag_num = $activities->pag_num -1;
}
}// Renumber the array keys to account for missing items.
$activities_new = array_values( $activities->activities );
$activities->activities = $activities_new;return $activities;
}
add_action(‘bp_has_activities’, ‘my_hidden_activities’, 10, 2 );The author suggests adding to functions.php but without using the child theme the code would be lost after an update. It also broke the site… Even after reverting the changes, the menu and page formatting was gone.
Is there any way that is up to date to filter what activity is reported on the group wall?
when i got a comment on a update that i made in Sitewide Activity
(its actually woocommerce product post)( then i get a notification _”commented on one of your updates- when i click on it, it just redirects me to users profile toppage. i never know on what he actuelly commented.
i try to use Activity Comment notifier-wich has the right notifiacion link( when click onit it redirects me to actual conversation)
but the problem is now i have double notification( 2 notification for same comment) 1 from buddypress itself 1 from plugin. how can i solve my link problem?
Hey all I’m attempting to modify the content returned by BuddyPress’ default ‘@’ mention notification. I’m using this as part of a custom profile page and would like to modify the “username mentioned you’ text to something more personalized based on post type.
// Change mention output function format_mention_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string', $component_action, $component_name, $notification_id) { if ( $component_action === 'new_at_mention') { // User mentioned notification $mentioned_source_type = get_post_type($item_id); $username = wl_get_username($secondary_item_id); $mention_avatar = wl_get_avatar($secondary_item_id); $mention_title = ''; $mention_text = $username; if ($mentioned_source_type == 'topic') { $mention_title = bbp_get_topic_title( $item_id ); $mention_text .= ' mentioned you in the forum post '; $mention_source_link = ''; // link to topic } else if ($mentioned_source_type == 'reply') { $parent_topic_id = bbp_get_reply_topic_id( $item_id ); $mention_title = bbp_get_topic_title( $parent_topic_id ); $mention_text .= ' mentioned you in their response to the forum post '; $mention_source_link = bbp_get_reply_url( $item_id ); // link to reply } else if ($mentioned_source_type == 'comment') { $comment = get_comment($item_id); $mention_text .= ' mentioned you in their comment'; $mention_source_link = get_comment_link($comment); } else { $mention_avatar = ''; $mention_title = get_the_title($item_id); $mention_text = 'You were mentioned in '; $mention_source_link = get_permalink($item_id); } $mention_source_link = wp_nonce_url( add_query_arg( array( 'action' => 'read', 'notification_id' => $notification_id), $mention_source_link ), 'bp_notification_mark_read_' . $notification_id); // WordPress Toolbar if ( 'string' === $format ) { $return = apply_filters( 'bp_activity_single_at_mentions_notification', '<a href="' . esc_url( $mention_source_link ) . '" title="New mention">'. $mention_avatar . esc_html( $mention_text ) . '<span class="activity-title">'.$mention_title.'</span></a>', (int) $total_items, $mention_text, $mention_source_link ); // Deprecated BuddyBar } else { $return = apply_filters( 'bp_activity_single_at_mentions_notification', array( 'text' => $mention_text . $mention_title, 'link' => $mention_source_link ), $mention_source_link, (int) $total_items, $mention_text, $mention_title ); } } return $return; } add_filter( 'bp_notifications_get_notifications_for_user', 'format_mention_notifications', 100, 8 );
What I’ve tried so far:
– Changing the priority of the filter
– Moving my logic into theactivity_format_notifications
action with various different priorities
– All of the above in a custom plugin file, bp-custom.php, and my themes’ function.php fileI’ve used a similar filter for custom notifications and that aspect works great. I just can’t seem to override the default content with my own. My thoughts are that the the filters/actions run too late to be noticed by BuddyPress.
Many thanks for your help.
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-294Why it happens only to one notification? All other notifications works fine.
Hey guys,
first of all, awesome forum! I’ve already solved so many of my issues simply by reading the many helpful answers – hence never had the need to post anything myself, but now I’m a bit stuck.
Here’s what I wanted to do: Put a new profile group in a separate bp profile menu tab and make it visible to both, logged in as well as logged out users. Now, it works perfectly fine, except for the fact that logged out users for some reason get to see my personal profile group under my custom tab instead of the new profile group – which is displayed correctly for me as well as other logged in users.
Here’s my code:
/** BP Profile Tab Visibility */ function bpfr_hide_top_nav() { if( !is_user_logged_in() ) { // bp topnav items to hide bp_core_remove_nav_item( 'activity' ); bp_core_remove_nav_item( 'friends' ); bp_core_remove_nav_item( 'groups' ); bp_core_remove_nav_item( 'forums' ); bp_core_remove_nav_item( 'media' ); bp_core_remove_nav_item( 'docs' ); bp_core_remove_nav_item( 'location' ); //bp subnav (my activities, my groups, etc) bp_core_remove_subnav_item( 'activity', 'activity' ); bp_core_remove_subnav_item( 'activity', 'friends' ); bp_core_remove_subnav_item( 'activity', 'favorites' ); bp_core_remove_subnav_item( 'activity', 'groups' ); bp_core_remove_subnav_item( 'activity', 'mentions' ); bp_core_remove_subnav_item( 'activity', 'media' ); bp_core_remove_subnav_item( 'activity', 'docs' ); bp_core_remove_subnav_item( 'activity', 'comments' ); } } add_action( 'bp_ready', 'bpfr_hide_top_nav', 10 ); /** BP Tab Order Profile and Tab Rename */ function bpex_primary_nav_tabs_position() { buddypress()->members->nav->edit_nav( array( 'position' => 2, ), 'activity' ); buddypress()->members->nav->edit_nav( array( 'position' => 1, ), 'profile' ); buddypress()->members->nav->edit_nav( array( 'position' => 3, ), 'messages' ); buddypress()->members->nav->edit_nav( array( 'position' => 4, ), 'notifications' ); buddypress()->members->nav->edit_nav( array( 'position' => 5, ), 'friends' ); buddypress()->members->nav->edit_nav( array( 'position' => 6, ), 'groups' ); buddypress()->members->nav->edit_nav( array( 'position' => 7, ), 'forums' ); buddypress()->members->nav->edit_nav( array( 'position' => 8, ), 'criticalreview' ); buddypress()->members->nav->edit_nav( array( 'position' => 9, ), 'docs' ); buddypress()->members->nav->edit_nav( array( 'position' => 10, ), 'media' ); buddypress()->members->nav->edit_nav( array( 'position' => 11, ), 'location' ); buddypress()->members->nav->edit_nav( array( 'position' => 12, ), 'orders' ); buddypress()->members->nav->edit_nav( array( 'position' => 13, ), 'settings' ); } add_action( 'bp_setup_nav', 'bpex_primary_nav_tabs_position', 999 ); /** Put Critical Review Profile Group in BP Tab */ function buddydev_modifyy_user_profile_tab() { bp_core_new_nav_item( array( 'name' => 'Critical Review', 'slug' => 'criticalreview', 'screen_function' => 'buddydev_screen_profile_data', 'default_subnav_slug' => 'criticalreview-sub', 'show_for_displayed_user' => true, )); } add_action( 'bp_setup_nav', 'buddydev_modifyy_user_profile_tab', 8 ); function buddydev_screen_profile_data() { //filter loop add_filter( 'bp_after_has_profile_parse_args', 'buddydev_filter_args_for_profile_group' ); //load loop add_action( 'bp_template_content', 'buddydev_show_profile_group_data'); bp_core_load_template( 'members/single/plugins'); } function buddydev_filter_args_for_profile_group( $args ) { ///CHANGE IT $args['profile_group_id'] = '6'; //Your Profile Group ID Here return $args; } //Load the loop function buddydev_show_profile_group_data() { $profileslug = bp_get_profile_slug(); // if ( bp_is_my_profile() ) : // echo "Edit under Profile"; // endif; bp_get_template_part( 'members/single/profile/profile-loop' ); } function hide_profile_group( $grpid ) { if ( is_user_logged_in() && !bp_is_profile_edit() ) { $myfield = xprofile_get_field_data( 'Critical Review' ); $grpid['exclude_groups'] = '6'; } return $grpid; } add_filter( 'bp_after_has_profile_parse_args', 'hide_profile_group' );
A few comments:
Most of the essential code is based on this threat. I am not really a coder myself, but usually I understand what the functions are doing.
For now I commented `// if ( bp_is_my_profile() ) :
// echo “Edit under Profile”;
// endif;` out, because if I leave it in, for some reason then also logged-in users only see the personal profile group instead of the Critical Review one?!Also, I’m not entirely sure about the use of the last function and its use / relevance, because it doesn’t seem to affect anything. This might however have to do with the fact that in order to avoid duplication of the Critical Review profile group under the actual profile tab, I’ve hidden the profile group via CSS.
Finally, I’m running the latest WP and BP installs and you can have a look at the described behavior here. Interestingly, as you can see in this instance, the profile fields are actually adjusted to my CSS for the Critical Review profiles group – but the actual content doesn’t show correctly.
Now, if any of you could help me out, I would highly appreciate it!
Thank you so much in advance! 🙂
Topic: Buddypress Future Suggestons
There are so many possibilities with Buddypress as it is but there many ways it can be improved. I know it’s a fact of life that we must rely on plugin developers to make our sites unique so I will focus on features already in Buddypress core that could be improved.
User management and profiles: This really should be developed further for easy user management. I understand many of these have plugin options available but adding to core would be a major improvement for managing large scale sites.
1. All user management columns should be sortable.
2. IP address and country should be built in without a plugin.
3. Add User ID to admin column.
4. Add ability to moderate with suspend and ban with a period of time and notice.
5. Add ability to core to easily change member types.
6. Add last login to core
7. Add ability for members to block other members.
8. Add ability to hide profile.
9. Add ability to block domains from signing up.
10. Add more privacy settings allowing members to control all aspects of their content.Notifications:
1. Add instant notifications.
2. Send email on notifications to increase site engagement.
3. Add user thumbnail image along with notification.
4. Show day or date on the notification.I realize many of these can be accomplished with plugins but some of these really need to be built in core to improve performance and security.
Random suggestions would be to add more basic features similar to Facebook and Twitter and bring Buddypress up as the go to social network builder. Mentions, search, favorites, likes, autocomplete are in need of an update to be modern.
It’s my opinion not fact. 🙂
I’m trying to edit my user’s profile so that when they click on “Settings” they go to the “Email” (/settings/notifications/) by default. I found https://codex.buddypress.org/developer/navigation-api/ and am trying to apply that to the default_subnav_slug but must be missing something. Any ideas?
add_action( 'bp_setup_nav', 'bp_edit_subnav_default'); function bp_edit_subnav_default($data) { global $bp; $new_data = array( 'screen_function' => 'bp_settings_screen_notifications', 'default_subnav_slug' => 'notifications', ); $bp->members->nav->edit_nav($new_data, 'settings'); }
Is there an easy way i can setup all members to receive a notification every time a new topic is posted across all of our forums, with a link to view the topic – despite not being involved in the post?
If so please provide detailed instructions.
Many thanks,
Kind regards.
Topic: registrations fail
Hi,
I purchased the intergration of Buddypress into my platform via Geodirectory.
My website is: http://www.salseros-international.com.
Registering on my website fail when users try to create an account. When trying, there is a notification that they will get a confirmation email in which they will find a link to activate their account. But they never receive the confirmation email.
However, when I go to my dashboard and view the ‘all users’ section, I see there are pending subscribers. When I activate their account, I receive the ‘new user registration’ notification per email. But the subscriber does not receive any notification per email.
I have tested with a mail log and smtp plugin to verify which emails are sent. I also tried to register myself with another email address and indeed I didn’t receive any confirmation email.
Plus, I have asked my hosting provider and Geodirectory. Both said they could not help further as the issue does not come from the server nor from the script of Geodirectory as they don’t send any confirmation email upon registration. Also, Geodirectory said it is a Buddypress email, so I should ask the Buddypress team.
Could you please help me?
Best,
BeatriceHello!
I am having an issue with BP, that I caused myself. I intentionally deactivated, then deleted, BP (on a 5 day old site) thinking that I wasn’t going to use it. Then I ran ‘WP Optimize’ which removed all the unused tables from the plugins I had installed, and removed unused transients, etc… This is what caused the problem.
Some time later, I went to re-install BP – which succeeds with no issues. Here’s where the issues crop up… Next, I went to create a new Group on the BP front-end, and it reports an error:
There was an error saving group details. Please try again.
Enabling WP debug mode in “wp-config.php” reports this:
WordPress database error: [Table 'wordpress.wp_bp_groups' doesn't exist] SELECT id FROM wp_bp_groups WHERE slug = 'create' WordPress database error: [Table 'wordpress.wp_bp_activity' doesn't exist] SELECT id, user_id, date_recorded FROM wp_bp_activity WHERE component = 'members' AND type = 'last_activity' AND user_id IN (1) LIMIT 1 WordPress database error: [Table 'wordpress.wp_bp_activity' doesn't exist] SELECT id, user_id, date_recorded FROM wp_bp_activity WHERE component = 'members' AND type = 'last_activity' AND user_id IN (1) LIMIT 1 WordPress database error: [Table 'wordpress.wp_bp_activity' doesn't exist] SHOW FULL COLUMNS FROM <code>wp_bp_activity</code> WordPress database error: [Table 'wordpress.wp_bp_notifications' doesn't exist] SELECT * FROM wp_bp_notifications n WHERE user_id IN (1) AND component_name IN ('friends','messages','activity','groups','blogs') AND is_new = 1 WordPress database error: [Table 'wordpress.wp_bp_messages_recipients' doesn't exist] SELECT SUM(unread_count) FROM wp_bp_messages_recipients WHERE user_id = 1 AND is_deleted = 0 AND sender_only = 0 WordPress database error: [Table 'wordpress.wp_bp_friends' doesn't exist] SELECT id FROM wp_bp_friends WHERE (initiator_user_id = 1 OR friend_user_id = 1) ORDER BY date_created DESC WordPress database error: [Table 'wordpress.wp_bp_groups_members' doesn't exist] SELECT COUNT(DISTINCT m.group_id) FROM wp_bp_groups_members m, wp_bp_groups g WHERE m.group_id = g.id AND m.is_confirmed = 0 AND m.inviter_id != 0 AND m.invite_sent = 1 AND m.user_id = 1 WordPress database error: [Table 'wordpress.wp_bp_messages_notices' doesn't exist] SELECT id FROM wp_bp_messages_notices WHERE is_active = 1
I have been trying to find a solution for this online, for the last 4+ hours… and I have gotten nowhere… So, I am humbly asking for help here, on how to recreate these tables – WITHOUT DELETING AND RECREATING MY ENTIRE SITE. I have nearly 100 hours into this site so far, and I am NOT starting over. Starting over is NOT an option, so please save everyone’s time and skip suggesting this.
I have reviewed all of these links, and followed all of their respective directions, when applicable:
https://buddypress.org/support/topic/reinstall-should-i-delete-old-tables-from-db/
and, many many many many more links, that I am not going to go back and try to find…Any help with this would be great – I’d really like to use BP again… I have seen a number of other people online with this issue, so I know I am not the only one. There has to be some elegant solution to re-create the required SQL tables for the plugin, right?
I have tried running this, after I reinstalled BP the 4th time (with my TDL inserted, ofc):
https://xxxxxx.com/wp-content/plugins/buddypress/bp-core/bp-core-update.php?f=bp_update_to_2_7_4
But, it didn’t seem to do anything…Ubuntu 16.04.1
Apache 2.4.18
PHP 7.0.13
WP 4.7.2
BP 2.7.4
no other BP extension/plugins have been installed since the 1st time removing BPI am more than happy to provide any requested log files!
Thank you a TON in advance!! I look forward to getting this working again.
Hi,
We’ve been experiencing problematic issues with BP Email notifications.
As stated on the subject of the post, our BuddyPress installation went ok and each time a new user register. He’s been sent an activation mail (as the situation stated it).
We are managing group members from the wordpress back-office. Actually, no action (except the registration/login) is performed client-side.
We (the admin) invite as a member or promote any registered and activated user to any group. This action is performed in the back-office. As stated on the various Email Situations, the recipient should receive an email if the action is performed but this never happens.
We eventually tried to disable plugins and resetting things but we’re out of luck. We also tried the following plugin BP Default Email Notification Settings Control Version 1.0.1
to force email notification with no success.Thanks for any efficient help,
—
Below our configuration:
WP 4.7.2
plugins :
Advanced Custom Fields Pro Version 5.3.3.2
Beautiful taxonomy filter Version 2.1.0
BP Default Email Notification Settings Control Version 1.0.1
BuddyPress Version 2.7.4
Contact Form 7 Version 4.5.1
Contact Form DB Version 2.10.26
Intuitive Custom Post Order Version 3.0.7
JS & CSS Script Optimizer Version 0.3.2
mobble Version 1.6
PDF Image Generator Version 1.5.0
Theme My Login Version 6.4.6
WP E-Mail Debug Version 1.1.0
WP Maintenance Version 2.8.2
WP Super Cache
WPBakery Visual Composer
Yoast SEO@slaffik is it possible to add ajax to update notifications when the user marks them as (Read, Unread, Delete) oppose to the page refreshing.The only way it seems for the notification count to go away is by page refreshing or visiting another page. The same situation for all notifications, like Friend Request and Messages. I see you posted a link to the Beta 2.8.0, I was wondering if this was addressed, didn’t see it in the list of updates.
Hi there,
We recently updated BuddyPress 2.3.4 to 2.7.4 but we seem to have a problem with the mentions. Users used to get an notification-email when they were mentioned in the comments on one of our sites. That doesnt happen anymore. But the emails from private messages or replies on activity-updates do work, so it seems not a problem with the webserver or something like that.
I have searched a lot of files/source and it looks like the function bp_activity_sent_mention_email is responsible for these mails, but I cant find this function anywhere.. Does somebody know where I should look to find the problem? Where can i hook into the mention-emails to see whats wrong?
PS: I also added this code, but that didnt help