Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: BuddyPress Moderation Tools support #26593

    Hi Tosin,
    I am sorry for the delay.

    Here is the code

    
    
    // BuddyPress Moderation Tools: White list specific user's content from moderation.
    add_filter( 'bpmts_is_user_whitelisted', function ( $is, $user_id ) {
    	$white_listed_users = array( 284, 37845, 4578, 2357 );
    	if ( in_array( $user_id, $white_listed_users, true ) ) {
    		$is = true;
    	}
    
    	return $is;
    }, 10, 2 );
    
    // BuddyPress Moderation Tools: Do not allow white listed user's profile to be reported.
    add_filter( 'bpmts_is_item_reportable', function ( $is, $item_type, $item_id ) {
    	if ( 'user' !== $item_type ) {
    		return $is;
    	}
    
    	$white_listed_users = array( 284, 37845, 4578, 2357 );
    	if ( in_array( $item_id, $white_listed_users, true ) ) {
    		$is = true;
    	}
    
    	return $is;
    }, 10, 3 );
    
    

    Please put it in your bp-custom.php and it will work.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: [Resolved] Moderation Tools group restriction #26591

    You are welcome 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: BuddyPress Moderation Tools #26590
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Plugin development question #26589

    Hi Tosin,
    Thank you for being part of BuddyDev.

    We do have a restrictions plugin in development which has a lot more functionality than the above plugin.

    At the moment, we have paused its development to focus on our upcomign theme(s). We are hoping to resume it after mid December and we should have it soon after.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: [Resolved] Confused on finding settings… #26588

    Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Hide username in comments for all but admin #26587

    Hi,
    You will need to use css to do it. We are unable to develop the above plugin further.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: [Resolved] MP Flexible Storage Limit Doesn't work #26586

    Hi,
    Welcome to BuddyDev.

    Is there any chance that you tested the limit while logged in as super admin or site admin?

    Did you set a limit by role or applied to that specific user? Please let me know and I will assist.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Friendship Restrictions re-imagine #26582

    Hi,
    Thank you for the feedback. I will explore if we can add invite. Currently, The Invite Anyone plugin already allows you to invite users and let users register with invite codes. I recommend using that.

    Going Male/female is not justifiable for a generic plugin as BuddyPress does not have support for gender field out of the box and It will not make sense for larger community.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Buddypro Membership #26581
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Buddypro Membership #26577
    This reply has been marked as private.