BuddyDev

Search

Replies

  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #26280

    Great! The error is gone after update. Thank you again!

  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #26259

    Great! Thanks again. Everything is working how it should then.

  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #26250

    I’ve attempted to create the code in functions.php for this, but users who I have whitelisted still have the report button on their profile, and their activities. Is this code correct?

    
    function whitelist_users_from_moderation($is_super_admin, $user_id) {
    	// Default whitelist all super admins
    	$whitelist = $is_super_admin;
    	
    	$whitelisted_user_ids = array( 2, 95 );
    	
    	if ( in_array( $user_id, $whitelisted_user_ids) ) {
    		$whitelist = true;
    	}
    	
    	return $whitelist;
    }
    add_filter('bpmts_is_user_whitelisted', 'whitelist_users_from_moderation', 10, 2);
    
    
  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #26249

    As I have said before many times, I am smart and I notice things…

    Sorry I didn’t see that. A filter is great.

    Thanks gain for all the awesome support around here!

  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #26240

    I don’t see a way to whitelist a user anywhere in the settings or on a users record. How do we do it?

  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #26238

    I believe you are correct, and I am working on that now. Thanks for all the help!

    • This reply was modified 4 years, 8 months ago by Gregg Housh.
  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #26235

    The only way I got rid of those php errors was to downgrade back to 1.2.3.

  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #26206

    I downloaded the zip file from here: https://buddydev.com/plugins/buddypress-moderation-tools/

    And I uploaded it with SFTP.

    But looking at the source in that zip, it has the version issues.

  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #26195
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 73
    Gregg Housh on #26193

    Also, on the changelog it says you can whitelist users now. I can’t find that anywhere in the options. How do we whitelist?