Replies
- Brajesh Singh on November 27, 2021 at 10:17 am in reply to: How to auto assign a role on multisite buddypress (buddyboss) network #41765
Hi,
I had a look and I don’t see BuddyPress/BuddyBoss adding the default role on sub site unless you are on the main site(or the Multi network mode is enabled). Do you have multi network mode enabled?Regards
Brajesh Hi Muhittin,
Thank you for the reply.The plugin is coming and will be available at the same time when BuddyPress 10.0 is released.
Regards
Brajesh- Brajesh Singh on November 27, 2021 at 8:19 am in reply to: How to auto assign a role on multisite buddypress (buddyboss) network #41761
oops, I made a mistake. the above code will not work for sub sites. It is not aimed for that purpose.
- Brajesh Singh on November 27, 2021 at 8:18 am in reply to: How to auto assign a role on multisite buddypress (buddyboss) network #41760
Hi,
Please use this code(there should not be any back tick inside the code, we use back tick here to wrap the code)./** * Change user role on first login */ function buddydev_change_user_role_on_first_login( $user_login, $user ) { if ( ! function_exists( 'buddypress' ) || user_can( $user->ID, 'manage_options' ) ) { return; } // check for user's last activity. $last_activity = bp_get_user_last_activity( $user->ID ); if ( empty( $last_activity ) ) { $role = 'author'; // please change with your desired role. $user->set_role( $role ); } } add_action( 'wp_login', 'buddydev_change_user_role_on_first_login', - 1, 2 );That should work.
Regards
Brajesh Hi Kiki,
You are right about it and I have conveyed similar thing to Ravi. He will be updating you in next couple of days.Regards
BrajeshHi Khalid,
Thank you.1. I am glad it resolved for recent visitors. I do not see any previous reply in this topic mentioning “Deactivate account” plugin. I will take a look now.
2. Sorry, if BuddyBoss does not allow you to do it, we can provide a filter for position(number). We may not be able to do more than that.
Regards
BrajeshHi Bob,
Thank you.We did try to have partial compatibility when the form is used on the BuddyBoss profile section.
Since you are using the form in a page, It might be looking out of the place.
Please allow me to check in the day and get back to you.
Regards
Brajesh- Brajesh Singh on November 25, 2021 at 11:10 pm in reply to: Empty membership directory after activation of buddypress multinetwork plugin #41743This reply has been marked as private.
- Brajesh Singh on November 25, 2021 at 11:08 pm in reply to: [Resolved] Activity Auto Moderation #41742
Hi Fourth Frontier,
Thank you for the patience.Please upgrade to 1.4.2
The email of the author of reported content is available in the queue as well as on the reports view.
Please let me know if that works for you or not?
Regards
Brajesh