I’m using OneSocial as a theme, with bbPress and BuddyPress. One thing that keeps me from using other themes: with OneSocial there is an icon next to the current user icon that shows when the user has new Private Mail. I cannot figure out how to get that new PM alert on other themes. I know with BuddyPress I can active PMS and I have those turned on, just not how to add an alert for the user.
Thanks.
Hello!
I activated BuddyPress and linked components to WordPress Pages (pages that were automatically created by BuddyPress). When I connect to my membership website as a member (on the front end), the BuddyPress pages are empty. I am wondering if this has to do with my theme (https://www.ait-themes.club/wordpress-themes/directory2/). BuddyPress Pages work with Twente Fifteen theme.
Permalinks are activated to “Post name”.
Wordpress version: 4.8
BuddyPress version: 2.9
Website : https://unicpnl.org (under construction – I can provide test user access in private)
If this has to do with my theme, can you give me a hint where to begin to find a fix?
Thanks for your help 🙂
Hi, anyone know how to detect / prevent exchange of phone/email in PM’s?
Or, is there a way for such messages to be flagged then approved by admin?
Alternatively, worst case, for admin to have to approve all PM’s?
Any advice greatly appreciated.
How can I do this within BuddyPress – a system , where it automaticallys enable / disable PM feature between vendors and site visitors, to enable / disable site visitors to PM vendors?
Thanks.
Hello,
how can i set a limit of the number of emails notifications sent for private messages for each user?
Members are receiving a new email on every reply received, I would like to limit it to 1 every hour from the same user or to send it only if current user is not online.
Thanks
Hi
@r-a-y
@shanebp
I have this code (example img. LINK),
But, bp_loggedin_user_id() not work.
The Button is visible for all. Like Add Friend Button [ + ] the Message button needs to be visible only for Logged in users.
function filter_message_button_link( $link ) {
$link = wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r='. bp_core_get_username( bp_get_member_user_id() ) );
return $link;
}
function display_private_message_button() {
if( bp_get_member_user_id() != bp_loggedin_user_id() ) {
//bp_send_message_button();
?>
<div id="send-private-message" class="generic-button">
<div class="private-message-button generic-button" ><a href="<?php echo filter_message_button_link(); ?>" class="button small secondary radius" rel="add"><i class="icon-envelope"></i></a></div>
</div>
<?php
add_filter('bp_get_send_private_message_link', 'filter_message_button_link', 1, 1 );
}
}
add_action( 'bp_directory_members_item_last', 'display_private_message_button',9999 );
Does anyone know if it is possible to integrate mailchimp with bp so that mailchimp, rather than wordpress, sends out bp emails such as notifications for private messaging,etc.?
Robin W over at bbPress was kind enough to provide this filter for functions.php:
add_filter( 'bbp_get_topic_subscribers', 'rew_filter_subscrbers' );
add_filter( 'bbp_get_forum_subscribers', 'rew_filter_subscrbers' );
function rew_filter_subscribers ($users) {
$role = 'my_custom_role' ;
$filtered_ids = array();
foreach ( (array) $users as $user_id ) {
$user_info = get_userdata($user_id);
$user_roles = $user_info->roles ;
if (!in_array ($role, $user_roles)) {
array_push($filtered_IDs, $user_id);
}
}
return $filtered_ids ;
}
Used with a custom role, it works great at preventing emails from going out from bbPress.
Of course, BuddyPress sends out several emails (friend request, private messages, etc).
Any ideas on how I can modify the filter above to prevent sending of BuddyPress emails to user if they have a custom role enabled? Even a place to go where I might find some ideas to work with?
Thanks for any suggestions.
add_filter( 'bp_get_send_message_button', function( $array ) {
if ( friends_check_friendship( bp_loggedin_user_id(), bp_displayed_user_id() ) ) {
return $array;
} else {
return '';
}
} );
I am using the above filter to hide private message button to non friends. It works but it also hides private message button to site admins and bbpress moderators. I want site admins and bbpress moderatos (bbp_moderator) could send and receive private messages even if they are not friend.
Any solution?
We use a membership script integrated with WP and BuddyPress. When users unsubscribe from emails in script, they still get email notifications from BuddyPress (private messages notifications, etc). This is bad.
It’s easy for us to assign these members a custom role. Is there a way to prevent BuddyPress from sending emails to these users who have this custom role?
I see here that you can create functions for creating new capabilities (for User Role Editor plugin):
User Role Editor WordPress plugin – Change roles easily
Is there a function, or another method I can use to prevent BuddyPress from sending of all emails for users who have specific custom role?
Thanks for any suggestions!
Hello,
I’m trying to add a button so nonregistered users can contact register users from the profile page via private message.
Saw this discussion here:
https://buddypress.org/support/search/private+message+button/
But nothing worked for me. My website is not in English, should it be a problem? It looks like it bp-custom.php is not recognized, tried inserting the codes to function.php as well. Nothing works…
I’d be happy for some help here.
Tnx
Hi I have just watched a tutorial on setting up buddypress
I have it working but however I can’t seem to find the answer to this either.
On my admin profile – settings – profile visibility
How can I change this so only members can see it for other members accounts and is it possible for me to set my own account (the admin account) to private so no one else can see it.
Thanks
Hello,
I would like to show the members list in private group to users who do not belong to the said group.
I was thinking i had to change access and visibility of the nav items so i did that:
function change_access_group_nav_tabs() {
if(bp_is_group()) {
buddypress()->groups->nav->edit_nav( array('visibility' => 'public'), 'members', bp_current_item() );
buddypress()->groups->nav->edit_nav( array('access' => 'anyone'), 'members', bp_current_item() );
}
}
add_action( 'bp_actions', 'change_access_group_nav_tabs' );
But it didnt work…
Any suggestion how to proceed?
Thanks in advance 🙂
BuddyPress private/public message custom fields – messages not getting outer mails such as gmail.
Hi,
To choose a group to enter I’ve created a form and depend on what you answer the form choose a group for you. I want to create a link and put it and the end of the form so people of that group can join it. The group must be private.
Thanks.
Hello. Could an admin please delete this post? This website information is coming up in search engines and I need to keep it private. Thank you so much for your time.
Take care,
Kari
Hello,i want to add an “star with me” button next to the button”private message””public message””add friend”buttons in member’s profile.now the chat plugin provider has told the Api to star the chat box ,it is a The JS function:
FlyzooApi.startChat(LocalUserId, SuccessCallback(), FailCallback()) .
i searched a lot about it but it is too hard for me to solve this question,now i wish to get help.
I did end up installing this plugin and it is exactly what I was looking for so thank you!! I would like to request that this question be taken down, if that is ok. It shows up in a google search when I do a search for my domain and I have set it to private in order for it to not show up in a search. If this isn’t possible, than I understand. I just thought I’d ask. Thank you once again for your time and for all of your help!!
Take care,
Kari
Thank you so much for your help!! I would like to request that this question be taken down, if that is ok. It shows up in a google search when I do a search for my domain and I have set it to private in order for it to not show up in a search. If this isn’t possible, than I understand. I just thought I’d ask. Thank you once again for your time and for all of your help!!
Take care,
Kari
// Restrict Private Message to friends.
Does not work with the new BuddyPress. ;-/
Hi there. I think this code ==> is very userful, but, can be better.
How can I add options to choice from Profile / Settings:
[√] Everyone (marked by default)
[ ] Only friends
// Restrict Private Message to friends.
function pp_check_message_recipients( $message_info ) {
// Site admins are not restricted
if ( is_super_admin() )
return $message_info;
$recipients = $message_info->recipients;
$friend_ids = friends_get_friend_user_ids( bp_displayed_user_id() );
$nf = 0;
foreach ( $recipients as $key => $recipient ) {
if ( ! in_array( $recipient->user_id, $friend_ids ) )
$nf++;
}
// If any recipients are not friends, remove everyone from the recipient's list
if ( $nf > 0 )
unset( $message_info->recipients );
return $message_info;
}
add_action( 'messages_message_before_save', 'pp_check_message_recipients' );
@r-a-y
@shanebp
BuddyPress has a API that you can use: https://codex.buddypress.org/component/private-messages/
You can hook at the WooCommerce actions when sending the emails and send your private messages.
Hope that helps! 🙂
Is there any way to integrate Private Message with WooCommerce emails notification?
Basically, I want to put every single WooCommerce notification email into user inbox.
For example, when they’re purchase an item, they will get an email from the website. I want they also get the copy into their inbox (in BuddyPress Private Message).
Is it possible to do?
I tried to find the solution on the internet but still stuck.
Thanks!
Hi!
When a teacher comment on a student activity. The student doesn’t get any message or notification link to read the comment! It will be great if the student and teacher can have private comments based on activities.
Is there is anyway to do this?
Regards,
Nice , Thanks. Actually i d like to change messaging logic a little bit. In case of writing to user a private message i d like not to create a new message thread object, but to search instead for existing message thread between me and the user. If there is one, send my message to that thread and open existing dialog. I ve researched send function and i came to conclusion ,that i must change the function.
I believe that wont hurt the logic.I m alomost sure. What d say other participants about my idea?