Replies
- Tosin on October 13, 2018 at 11:38 am in reply to: [Resolved] How to disable public and private messages for specific users #18056
Hello,
The code works when I deactivate this plugin (bp-profile-message-ux). This plugin is conflicting with your code https://wordpress.org/plugins/bp-profile-message-ux/ Is there any way you can make the code to be compatible with this plugin.
Also, when I deactivate the BP PROFILE MESSAGE UX plugin your code still hides the public and private message buttons for all my users instead of only the specific ids I stated.
This is the code im using/** * 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 ); // 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' );
Thanks
- Tosin on October 12, 2018 at 8:06 pm in reply to: [Resolved] How to disable public and private messages for specific users #18053
Hello Brajesh,
The code did not work the public and private message buttons are still visible for the specific user ids I selected.
- Tosin on October 12, 2018 at 9:38 am in reply to: [Resolved] How to disable public and private messages for specific users #18043
Hello Brajesh,
Thanks but I wasn’t referring to roles and capabilities but specific user ids
Thank you
- Tosin on October 11, 2018 at 2:33 pm in reply to: [Resolved] How to disable public and private messages for specific users #18016
Awaiting your feedback sir
- Tosin on October 6, 2018 at 6:36 pm in reply to: How to redirect website from operamini browser to chrome, firefox and opera #17919
The notice approach would be good.
Thank you very much
- Tosin on September 26, 2018 at 4:57 pm in reply to: How to make custom follow button load with ajax #17694
Hello Brajesh,
THANK YOU, THANK YOU VERY MUCH The code worked perfectly I added it to the bp-follow.js file. I was wondering if its possible to add the code to child-theme.
I am using the klein theme at https://themeforest.net/item/klein-a-nittygritty-community-theme/5418518
God bless
- Tosin on September 24, 2018 at 7:24 pm in reply to: How to make custom follow button load with ajax #17602
Hello Brajesh,
I know you must be very busy, please I’m still expecting feedback on this issue.
Thank you.
- Tosin on September 20, 2018 at 10:08 pm in reply to: How to make custom follow button load with ajax #17518
Hello Brajesh,
Any feedback on this yet
Thanks
- Tosin on September 15, 2018 at 1:51 pm in reply to: Hide some stuff from buddypress activity stream #17382
Hello,
This plugin might help https://wordpress.org/plugins/buddypress-block-activity-stream-types/
Good luck
- Tosin on July 7, 2018 at 11:07 am in reply to: [Resolved] BuddyPress Auto Activate Auto Login email login problem #16188
Hello Brajesh,
The updated plugin and the filter worked successfully, thank you so very much.
Tosin