Replies
- Tosin on January 3, 2019 at 3:33 pm in reply to: [Resolved] Do not force redirect on non BuddyPress pages with force follow function #19885
Happy new year Brajesh,
Thanks you so much for the snippet it worked perfectly.
Thanks
- Tosin on December 24, 2018 at 1:39 pm in reply to: [Resolved] Do not force redirect on non BuddyPress pages with force follow function #19691
I want to skip for logged in users only. So logged in users can access the normal WordPress post and pages but the redirection should only be triggered on all buddypress pages.
Thanks
- Tosin on December 24, 2018 at 10:31 am in reply to: How to display custom notice on activity page #19683
I am using BP legacy
- Tosin on November 5, 2018 at 10:38 am in reply to: [Resolved] How to disable public and private messages for specific users #18578
Will be expecting your feedback sir
Thanks
- Tosin on November 1, 2018 at 4:13 pm in reply to: [Resolved] How to disable public and private messages for specific users #18495
Hello Brajesh,
I know and understand that you don’t provide support for 3rd party plugins, but I really need to impose on you for the last time since the code you provided works. I’m stuck will the code you provided work for this plugin https://wordpress.org/plugins/bp-profile-message-ux/
Please I really really need this, I would be very gratefull
Thanks
- Tosin on November 1, 2018 at 10:24 am in reply to: [Resolved] How to disable public and private messages for specific users #18474
Hello,
The code worked perfectly thank you so much im very grateful.
Now that the buttons are hidden it is still possible to send public messages directly on the Activities page, will it be possible to disable (@usernames) for those specific restricted ids on Activity status form for posting updates.
Thanks
- Tosin on October 31, 2018 at 7:25 pm in reply to: [Resolved] How to disable public and private messages for specific users #18468
Sir I understand the problem better like you said your code limits restricted users from sending messages but what I’m trying to achieve is opposite, I want to limit the restricted users from RECEIVING messages (The buttons should be hidden for the restricted users)
Thank you very much
- Tosin on October 28, 2018 at 6:55 pm in reply to: [Resolved] How to disable public and private messages for specific users #18374
Sir I’m still expecting your feedback
Thank you
- Tosin on October 15, 2018 at 5:54 am in reply to: [Resolved] How to disable public and private messages for specific users #18071
Hello Brajesh,
Thank you so much for you help I will do as instructed, I have deactivated the BP Profile Message UX plugin but I noticed that the same issue occurs even with the default buddypress message using the first code you sent
/** * HIDE BUDDYPRESS PUBLIC AND PRIVATE MESSAGE BUTTON FOR SPECIFIC USERS. */ function buddydev_hide_public_button( $r ) { if ( ! is_user_logged_in() ) { return $r; } $restricted_user_ids = array( 2, 4766812, 4766806, 4766824, 4766786, 4766838 ); // Replace by yours user ids. if ( in_array( get_current_user_id(), $restricted_user_ids ) ) { return false; } return $r; } add_filter( 'bp_get_send_public_message_button', 'buddydev_hide_public_button' ); add_filter( 'bp_get_send_message_button_args', 'buddydev_hide_public_button' );
1. The code only works for the admin and not all users
2. The code works but it hides the buttons for (all users) instead of just the specific ids
- Tosin on October 13, 2018 at 8:48 pm in reply to: [Resolved] How to disable public and private messages for specific users #18059
Hello,
1. The code only works for the admin and not all users
2. The code works but it hides the buttons for (all users) instead of just the specific ids