BuddyDev

Search

Replies

  • Participant
    Level: Enlightened
    Posts: 46
    Kristian Yngve on #28283

    Ah it doesn’t work for me sadly:

    The php:

    add_action( 'bp_after_has_members_parse_args', function ( $args ) {
    
    	if ( bp_is_members_directory() ) {
    		$args['meta_key']   = '_has_avatar';
    		$args['meta_value'] = 1;
    	}
    
    	return $args;
    } );

    still shows the users in the recently active despite having the BuddyPress Force Profile Photo plugin.

    Any suggestions on what I can do the the code?

  • Participant
    Level: Enlightened
    Posts: 46
    Kristian Yngve on #28276

    Ah! Your link looks like it is my case! 🙂

  • Participant
    Level: Enlightened
    Posts: 46
    Kristian Yngve on #28275

    I have the BuddyPress Force Profile Photo plugin, but the bots just sit there in in recently active after sign up with mystery man avatars.

    It’s good that they cannot do anything 🙂 but bad that they fill up the recently active buddypress widget 🙁

    I will look at the other suggestions and link now too.

  • Participant
    Level: Enlightened
    Posts: 46
    Kristian Yngve on #24487

    THANK YOU!!

    It actually works amazingly! 🙂

    Ravi, I can’t thank you enough! Loving the BuddyDev products, and many of them are paid.

    It’s an honor to be part of the BuddyDev community, sir.

    Best,

    Kristian

  • Participant
    Level: Enlightened
    Posts: 46
    Kristian Yngve on #23568

    Thank you Brajesh!

    By the way, only yours works when the Youzer devs offered their code.

    You really are a master in what you do.

    Thank you so much sir.

    It’s such an honor to know to you :,)

    Kristian

  • Participant
    Level: Enlightened
    Posts: 46
    Kristian Yngve on #23287

    Ravi, this is perfect!

    Thank you so so much. 🙂

  • Participant
    Level: Enlightened
    Posts: 46
    Kristian Yngve on #23258

    Hi again Ravi,

    thank you so much for getting back to me. Your code is amazing, but one small issue:

    As I worked on this all evening and found after a while that it looks like I need that in user IDs rather than admins.

    I have Admins hidden, and redirect rules if you try to access them.

    so actually this all would work if your code would require specific user IDs

    The user ID i need for this is 340

    kind regards to you, sir.

    Kristian

  • Participant
    Level: Enlightened
    Posts: 46
    Kristian Yngve on #23241

    Thank you Brajesh,

    Very grateful for your reply.

    🙂

  • Participant
    Level: Enlightened
    Posts: 46
    Kristian Yngve on #23240

    Hi Ravi,

    Thank you so much for getting back to me. Sadly, it doesn’t work.

    I put it in my BP custom file. is that alright, or must this go in the functions?

    Any other suggestions?

  • Participant
    Level: Enlightened
    Posts: 46
    Kristian Yngve on #22891

    Thank you, Brajesh.

    Take care.