Replies
Hi Alex,
Thank you for the question.I am afraid, I lack the time to look much into this.
Something like this may work for you.
add_filter( 'bp_user_can', function ( $retval, $user_id, $capability, $site_id, $args ) { if ( 'bp_members_send_invitation' !== $capability ) { return $retval; } $count = BP_Invitation::get_total_count( array( 'inviter_id' => $user_id ) ); $max_allowed = 20;// change it. if ( $count >= $max_allowed ) { $retval = false; } return $retval; }, 10, 5 );
I haven’t tested it, Please test it by setting lower limit and see if that works?
Regards
BrajeshHi J,
Thank you for the reply.1. The code will work fine with members directory without any issue.
2. For the network search, I will suggest testing with each BuddyBoss major release.About the other issue related to activity, Please contact BuddyBoss. It is a very much BuddyBoss specific behaviour and I believe they should be able to assist you with it better than I can.
Regards
BrajeshHi Lawerence,
Thank you for the reply.MediaPress does not offer mixed gallery out of the box.
You will need to hire a developer to allow mixed gallery. Changing label is easy. They can be translated.
Regards
BrajeshHi,
In the first snippet, you can replace 1,2,3 etc with the actual user ids(example 1, 5, 7,9 etc).In the second snippet, I have shown exact code needed to exclude the ‘administrator’ role. That should be good enough for your use case without any modification. You don’t need the first snippet.
Regards
BrajeshHi J,
Welcome to BuddyDev support forums.Here is a link that shows exact code for hiding admin users from members directory.
https://buddydev.com/hiding-users-on-buddypress-based-site/
I am not sure if that will help you with network search though.
Regards
BrajeshHi,
Since BuddyPress or Multi network is not active, the order does not matter.Your delete button is for deleting entries from table(deleting data). You can visit the Operations table and drop that table. Be careful and cross check that you are only deleting that table.
Regards
BrajeshHi,
Welcome to Buddydev support forums.We are unable to assist you with Youzify. The Youzify team is in a better position to assist you.
Please contact their support team here on wordpress.org
https://wordpress.org/support/plugin/youzify/I hope they will assist with it.
Regards
BrajeshHi Frank,
Welcome to BuddyDev support forums.
BuddyBoss needs a default sub tab for all of its tabs.
There are 2 ways.1. If you remove the default sub tab, you will need to use another sub nav as sub tab. e.g notifications should be made the default.
2. Or you can get rid if the whole tab.
Since you are only interested in removing the default sub tab of the settings, Please set another sub tab of setting as default tab and it will work.
Regards
BrajeshHi Carsten,
Thank you.I am glad you chose the right way 🙂
Regards
Brajesh