Replies
- Brajesh Singh on October 9, 2024 at 1:23 pm in reply to: [Resolved] Limit invitations to avoid beeing spammed #53286
Hi,
Thank you for the reply.I am glad it worked.
BuddyPress does not provide the API for counting for an interval. It is certainly doable with direct queries. It will need significant time to develop(at least couple of hours to turn into a plugin with settings etc) .
Currently, I lack free time to do any further work on it though.
Regards
Brajesh - Brajesh Singh on October 9, 2024 at 1:20 pm in reply to: [Resolved] How to completely remove Buddydev plugins including deleting all files? #53285
You are welcome.
- Brajesh Singh on October 9, 2024 at 1:19 pm in reply to: “Post Visiblity” in translation file is not Buddyblog Pro translation file #53284This reply has been marked as private.
- Brajesh Singh on October 8, 2024 at 9:13 pm in reply to: [Resolved] Limit invitations to avoid beeing spammed #53278
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
Brajesh - Brajesh Singh on October 8, 2024 at 8:51 pm in reply to: [Resolved] Buddyboss – hide admin user id from member directory and network search. #53276
Hi 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
Brajesh Hi 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
Brajesh- Brajesh Singh on October 8, 2024 at 6:35 pm in reply to: [Resolved] Buddyboss – hide admin user id from member directory and network search. #53272
Hi,
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
Brajesh - Brajesh Singh on October 8, 2024 at 5:55 pm in reply to: [Resolved] Buddyboss – hide admin user id from member directory and network search. #53270
Hi 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
Brajesh - Brajesh Singh on October 7, 2024 at 8:15 pm in reply to: [Resolved] Would it be possible for the uploaded images to be downloaded to the default wor #53263
You are welcome.
- Brajesh Singh on October 7, 2024 at 8:09 pm in reply to: [Resolved] How to completely remove Buddydev plugins including deleting all files? #53262
Hi,
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
Brajesh