Search Results for 'notification user id'
-
Search Results
-
As an admin and people @mention me a lot on bbpress, I’m getting a ton of emails when people keep quoting a post that I was mentioned in.
Please can we disable mentions when they are inside a quote? THe person has already been notified when the OP did the mention. Please remove this bombardment of emails when users keep quoting the OP.
Thank you. Also I have no option in my profile settings (on my website) about mentions, so I cannot even disable email notifications. Maybe as I have activity stream disabled?
First of all, a big thank you to all contributors for this useful and traight out mindblowing software! And for free! Wow! :
In general I am not much of a coder, but I can understand some, and I have two questions:
QUESTION 1.
About buddypress bubble notification (not email) when there is a bbpress answer to a topic you either started or are subscribed to:
– This does not work on my new site – should it? As buddypress and bbpress are so welded together, it would surprise me if this “bubble notification on forum replies” is not thought about before, but if it isn’t – what would I want to do, to notify users via the bubble when someone replies to a topic they either started or subscribed to?
– I have enabled the notification addon in buddypress, and I reveive emails, it just doesn’t notify via the bubble.QUESTION 2.
When a new member register, and is active – either in bbpress or in buddypress / groups or updates his profile or something else – he is still not visible under sitewide activity: New members. This does not work on a clean install of newest wordpress, newest buddypress and whatever theme. I’ve tested many.Is this a bug, or do I have to do something to the settings to make this work?
Hello,
I’m creating a gifting system for my website. When user sends gift to another user, receiver should receive a notification.
Here’s what I tried:
gift class:
<?php class tbtPoklon { public function init() { add_filter( 'bp_notifications_get_registered_components', array($this, 'add_component') ); add_filter( 'bp_notifications_get_notifications_for_user', array($this, 'display_notification'), 10, 5 ); } public function get_gifts() { global $wpdb; $gifts = json_decode(json_encode($wpdb->get_results("SELECT * FROM tbt_pokloni")), True); return $gifts; } public function get_gift($gift_id) { global $wpdb; $gift_data = json_decode(json_encode($wpdb->get_results("SELECT * FROM tbt_pokloni WHERE gift_id = {$gift_id}")), True); return $gift_data[0]; } public function add_component( $component_names = array() ) { if ( ! is_array( $component_names ) ) { $component_names = array(); } array_push( $component_names, 'tbtPoklon' ); return $component_names; } public function display_notification( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { if ( 'tbtPoklonPoslan' === $action ) { $senderName = bp_core_get_user_displayname( $item_id ); $custom_title = $senderName." ti je poslao/la poklon! otvori..."; $custom_link = "#"; $custom_text = $custom_title; if ( 'string' === $format ) { $return = apply_filters( 'tbtPoklon_filter', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link ); } else { $return = apply_filters( 'tbtPoklon_filter', array( 'text' => $custom_text, 'link' => $custom_link ), $custom_link, (int) $total_items, $custom_text, $custom_title ); } return $return; } } public function send_notification( $sender, $reciever, $gift ) { bp_notifications_add_notification( array( 'user_id' => $reciever, // Gift reciever 'item_id' => $sender, // Gift sender 'secondary_item_id' => $gift, // Gift ID 'component_name' => 'tbtPoklon', 'component_action' => 'tbtPoklonPoslan', 'date_notified' => bp_core_current_time(), 'is_new' => 1, ) ); } }calling send_notification method:
<?php function test_notification() { $class = new tbtPoklon(); $class->init(); $class->send_notification(17 /* sender */, 1 /* receiver */, 5 /* gift id */); } test_notification();I get this error: [13-Feb-2018 21:59:06 UTC] Table ‘prefix.n’ doesn’t exist za upit SELECT * FROM n WHERE user_id IN (1) AND item_id IN (17) AND secondary_item_id IN (5) AND component_name IN (‘tbtPoklon’) AND component_action IN (‘tbtPoklonPoslan’) AND is_new = 1 koji je postavio/la require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), include(‘/themes/kleo-child/functions.php’), sendtestnot, tbtPoklon->send_notification, bp_notifications_add_notification, BP_Notifications_Notification::get
I hope you could help me. Thanks, regards.
Hello everyone. I really need some help here.
So I’ve had issues with not receiving (and users not receiving) notification emails before. I’ve done the whole deactivating plugins to see what is not compatible, I’ve repaired emails under TOOLS. I’ve even uninstalled and reinstalled BuddyPress and bbpress, but for whatever reason I cannot fix this problem this time. Also, while trying to fix this problem myself, I realized that if you are using a YAHOO account then you will receive notifications, but it is not working at all for gmail or Texas University email accounts. I became aware of this problem today and it was working perfectly fine last Friday. Please, if someone can help me with this problem it would be greatly appreciated!Hi !
I recently add a custom notification system for alert of new messages if you add a topic to your favorite.
For that I hook bp_notifications_get_registered_components, bp_notifications_get_notifications_for_user and bbp_new_reply.Everything work well but I have a last problem that I dont arrived to fixe : when I click on my new notifications they don’t disappear by her self. I use bbp_mark_read for generate my notification link but without sucess
$topic_link = wp_nonce_url(
add_query_arg(
array(
'action' => 'bbp_mark_read',
'topic_id' => $topic_id
),
bbp_get_reply_url( $item_id )
),
'bbp_mark_topic_' . $topic_id
);
Any solution for fix that ?
Thanks !Hi ya,
I’m new to BuddyPress.
WP 4.9.1
BP 2.9.2
http://crew.nzin2020.stormin.nzI’m looking to get BuddyPress as close to Facebook as I can. Well, largely.
At the moment, the thing I’m trying to find is how to show what new notifications there are since a member last looked at a new activity list. And ideally be able to show a list of groups the user belongs to, and a little number with how many new posts/notifications there are.
I’ve been searching around for a few days now for how to do this.
I feel like this is probably standard and easy, but I just can’t see how to do it…
Always glad to be pointed to links of course.
Thanks for any insight!
Norm
Topic: Hooks problem.
Hi There,
I am using the buddypress and apppresser plugin in our website. Apppresser plugin is used to convert wordpress web application to mobile application. I want to use buddypress hooks to send push notifications over the friend request and invite to group request trigger but this is not working. I am using the following hooks for the same
groups_send_invites
groups_accept_invite
friends_friendship_accepted
bp_activity_add_user_favorite
friends_friendship_requestedHere is my code which I have written on function.php .
function action_groups_send_invite( $group_id, $invited_users, $user_id ) {
// make action magic happen here…
if ( !is_user_logged_in() )
return false;
$message = ‘Hi there some one send your request!’;$push = new AppPresser_Notifications_Update;
$devices = $push->get_devices_by_user_id($invited_users);
if( $devices ) {
$push->notification_send( ‘now’, $message, 1, $devices );
}
};// add the action
add_action( ‘groups_send_invites’, ‘action_groups_send_invite’, 10, 3 );function action_friends_friendship_requested( $friendship_id, $initiator_id, $friend_id ) {
if ( !is_user_logged_in() )
return false;$recipients = array( $initiator_id );
$message = ‘Hi there some one send you request!’;
$push = new AppPresser_Notifications_Update;
$devices = $push->get_devices_by_user_id( $recipients );if( $devices ) {
$push->notification_send( ‘now’, $message, 1, $devices );
}//apppush_send_notification( ‘friends_friendship_requested’ );
};// add the action
add_action( “friends_friendship_requested”, ‘action_friends_friendship_requested’, 10, 4 );function action_friends_friendship_accepted( $friendship_id, $friendship_initiator_user_id, $friendship_friend_user_id, $friendship ) {
// // make action magic happen here…
if ( !is_user_logged_in() )
return false;$recipients = array( $friendship_initiator_user_id );
$message = ‘Hi there some one accept your request!’;
$push = new AppPresser_Notifications_Update;
$devices = $push->get_devices_by_user_id( $recipients );if( $devices ) {
$push->notification_send( ‘now’, $message, 1, $devices );
}
//apppush_send_notification( ‘friends_friendship_accepted’ );
};// add the action
add_action( ‘friends_friendship_accepted’, ‘action_friends_friendship_accepted’, 10, 4 );function action_add_user_favorite( $activity_id, $user_id ) {
// do something$recipients = array( $user_id );
$message = ‘Hi there some one accept your friend request!’;
$push = new AppPresser_Notifications_Update;
$devices = $push->get_devices_by_user_id( $recipients );if( $devices ) {
$push->notification_send( ‘now’, $message, 1, $devices );
}
}
add_action(‘bp_activity_add_user_favorite’, ‘action_add_user_favorite’, 1, 2 );Topic: Move subnav to other tab
Topic: No emails working
Hi there and first sorry for my poor english.
I’m working on a new Learndash videos website. I want to use buddypress for user registrations / management.Sadly no emails are sent from buddypress.
I installed a email log plugin and see no email sent from buddypress ( other emails are sent ).
I tried to go with WP MAIL SMTP with a costum office365 email, this option doesnt work either. WP Mail SMTP test email work, buddypress registration & notifications don’t.
I also tryed Postman also with smtp & my office 365. Test work & get logged. Registration don’t.
I then tryed to deactivate every single plugin & replace my theme for a default wordpress theme (twentyseventen) this option doesnt work either ( with only buddypress at first, then only buddypress & Postman )
Any idea what i could try? Thx in advance!
WP version: 4.9.1
BP version: 2.9.2
– Installed on a subdomain
– Plugins installed :
– Advanced Custom Fields PRO
– AffiliateWP
– Boss for LearnDash
– BuddyPress for LearnDash
– BuddyPress Recherche Globale
– Compress JPEG & PNG images
– LearnDash & Paid Memberships Pro
– LearnDash LMS
– LearnDash WooCommerce Integration
– Loco Translate
– Paid Memberships Pro
– Paid Memberships Pro – WooCommerce Add On
– Polylang
– Post SMTP
– Wistia WordPress Plugin
– WooCommerce
– WooCommerce Moneris Gateway
– WordPress Social Login
– WP Sync DB
– WP-Optimize
– WPBakery Visual ComposerI use BuddyBoss wordpress theme and i’m hosted on Likuid Hosting ( likuid.com ). No core files have been updated. Server on linux & apache
Hi,
I tried this method. But it did not work. Any fix?
https://wordpress.stackexchange.com/questions/263950/new-post-notifications-for-users-buddypress/Please help.. Thanks.
Hello.
I am able to receive email notifications for all sign ups, logins as an admin of the site, however my users are not receiving BP emails when someone sends them a message or comments on their post. I am using Paid Memberships Pro and Wordfence so perhaps those emails come through those plugins but I also do not receive BP notifications of messages from users – I tested it by creating a separate account.
This is a new site so I wasn’t aware of the issue previously and I don’t know if it has worked before.
Any help appreciated. It will be difficult to uninstall all plugins as the site is active.
I’m using WordPress 4.8.2 and BuddyPress 2.9.1
Topic: @mentions after import
Dear Buddypress,
I hope you can help me with this…
I have just transferred 1000s of comments to articles – of my buddypress wordpress site.Those comments, have @mentions in them and users, didn’t receive the notifications about @mentions – which is great! It would be too much (some of them are old ect).
However, is there any way we can populate those mentions, without any notifications, so they show in their profiles – under mentions? So, they can look back when someone mentioned them?
Thank you very much 🙂
Topic: Disable notifications
Hi,
I’d like to disable user-notifications but keep the MP notifications.
Howcan I do it or which plugin should I use instead of BuddyPress Notifications Widget?
Thank’s in advance