Search Results for 'notification user id'
-
Search Results
-
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
My client has asked that notifications get sent everytime a user updates his profile. I have two profiles that require notifications – the base group, and a group called: ‘Personal Details’ – the code I am using is sending emails for both forms no matter which form is selected, I have tried using if statements but the do not send.
The current code:
function rc_buddypress_profile_update( $user_id ) { $admin_email = "barbara@lsdev.biz"; $message = sprintf( __( 'Dear Admin, "Base Profile" details have been updated for the following member: %1$s', 'buddypress' ), bp_core_get_user_displayname( $user_id ) ) . "\r\n\r\n"; $message .= sprintf( __( 'Name: %s' ), bp_get_profile_field_data('field=Name') ). "\r\n"; $message .= sprintf( __( 'Surname: %s' ), bp_get_profile_field_data('field=Surname') ). "\r\n"; $message .= sprintf( __( 'Company Name: %s' ), bp_get_profile_field_data('field=Company Name') ). "\r\n"; $message .= sprintf( __( 'Company Website: %s' ), bp_get_profile_field_data('field=Company Website') ). "\r\n"; wp_mail( $admin_email, sprintf( __( 'FISA Member Base Profile Update' ), FISA ), $message ); } $personalDetails = xprofile_get_field_id_from_name( 'Personal Details' ); function rc_buddypress_personal_details_update( $personalDetails ) { $admin_email = "barbara@lsdev.biz"; $message = sprintf( __( 'Dear Admin, "Personal Details" have been updated for the following member: %1$s', 'buddypress' ), bp_core_get_user_displayname( $personalDetails ) ) . "\r\n\r\n"; $message .= sprintf( __( 'Mobile Phone: %s' ), bp_get_profile_field_data('field=Mobile Phone') ). "\r\n"; $message .= sprintf( __( 'Work Phone: %s' ), bp_get_profile_field_data('field=Work Phone') ). "\r\n\r\n"; $message .= sprintf( __( 'Address Line 1: %s' ), bp_get_profile_field_data('field=Address Line 1') ). "\r\n"; $message .= sprintf( __( 'Address Line 2: %s' ), bp_get_profile_field_data('field=Address Line 2') ). "\r\n"; $message .= sprintf( __( 'Address Line 3: %s' ), bp_get_profile_field_data('field=Address Line 3') ). "\r\n\r\n"; $message .= sprintf( __( 'City: %s' ), bp_get_profile_field_data('field=City') ). "\r\n"; $message .= sprintf( __( 'Postal Code: %s' ), bp_get_profile_field_data('field=Postal Code') ). "\r\n"; $message .= sprintf( __( 'Region: %s' ), bp_get_profile_field_data('field=Region') ). "\r\n\r\n"; wp_mail( $admin_email, sprintf( __( 'FISA Member Personal Details Update' ), get_option('blogname') ), $message ); } add_action( 'xprofile_updated_profile', 'rc_buddypress_personal_details_update', 10, 5 ); add_action( 'xprofile_updated_profile', 'rc_buddypress_profile_update', 10, 5 );
What I tried to use to separate them:
function rc_buddypress_profile_update( $user_id ) { if ( xprofile_get_field_data( "User Type") == "Personal Details" ) { $admin_email = "martin@lsdev.biz"; $message = sprintf( __( 'Dear Admin, "Personal Details" have been updated for the following member: %1$s', 'buddypress' ), bp_core_get_user_displayname( $user_id ) ) . "\r\n\r\n"; $message .= sprintf( __( 'Mobile Phone: %s' ), bp_get_profile_field_data('field=Mobile Phone') ). "\r\n"; $message .= sprintf( __( 'Work Phone: %s' ), bp_get_profile_field_data('field=Work Phone') ). "\r\n\r\n"; $message .= sprintf( __( 'Address Line 1: %s' ), bp_get_profile_field_data('field=Address Line 1') ). "\r\n"; $message .= sprintf( __( 'Address Line 2: %s' ), bp_get_profile_field_data('field=Address Line 2') ). "\r\n"; $message .= sprintf( __( 'Address Line 3: %s' ), bp_get_profile_field_data('field=Address Line 3') ). "\r\n\r\n"; $message .= sprintf( __( 'City: %s' ), bp_get_profile_field_data('field=City') ). "\r\n"; $message .= sprintf( __( 'Postal Code: %s' ), bp_get_profile_field_data('field=Postal Code') ). "\r\n"; $message .= sprintf( __( 'Region: %s' ), bp_get_profile_field_data('field=Region') ). "\r\n\r\n"; wp_mail( $admin_email, sprintf( __( 'FISA Member Personal Details Update' ), get_option('blogname') ), $message ); } else { $admin_email = "martin@lsdev.biz"; $message = sprintf( __( 'Dear Admin, "Base Profile" details have been updated for the following member: %1$s', 'buddypress' ), bp_core_get_user_displayname( $user_id ) ) . "\r\n\r\n"; $message .= sprintf( __( 'Name: %s' ), bp_get_profile_field_data('field=Name') ). "\r\n"; $message .= sprintf( __( 'Surname: %s' ), bp_get_profile_field_data('field=Surname') ). "\r\n"; $message .= sprintf( __( 'Company Name: %s' ), bp_get_profile_field_data('field=Company Name') ). "\r\n"; $message .= sprintf( __( 'Company Website: %s' ), bp_get_profile_field_data('field=Company Website') ). "\r\n"; wp_mail( $admin_email, sprintf( __( 'FISA Member Base Profile Update' ), FISA ), $message ); } add_action( 'xprofile_updated_profile', 'rc_buddypress_profile_update', 10, 5 );
Would appreciate some help on this.
Topic: Buddypress + HyperDB
I’m trying to get HyperDB to work width Buddypress.
I’m trying to move bp_activity, bp_activity_meta, bp_notifications, notifications_meta, xprofile_data, xprofile_fields, bp_xprofile_groups, bp_xprofile_meta into there own ‘Buddypress’ database. But it does not work.
I’m getting this error: Undefined variable: server
Here is my current config:
$wpdb->add_database(array( 'host' => DB_HOST, 'user' => DB_USER, 'password' => DB_PASSWORD, 'name' => 'DATABASE-NAME', 'write' => 1, 'dataset' => 'bpress', ));
else if(preg_match("/bp_activity/", $wpdb->table)){ return 'bpress'; }
Witch preg_match should I use?
Anyone that is using HyperDB with Byddypress?
Hello!
Wordpress: Version 4.7.5
BuddyPress: Version 2.8.2
Site Link: http://www.shsmash.comI just started up a new site and have been having trouble finding an answer to some issues I’ve been having. This is related to the BuddyPress notification emails that get sent out to users when they register for the site and when they receive other notifications.
Here are some of the Email Macros being used:
{{{activate.url}}}
{{{message.url}}}
{{{group.url}}}ETC.
Whenever a URL like that is inserted automatically into the email it generates something strange that points to somewhere on the site that does not exist.
I don’t have a /c/ directory on my site, nor did I indicate wanting to use an “email” subdomain.
I’m not quite sure what is going on here so hopefully somebody can help!