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: 25485

    Hi Chris,
    Yes. It is your choice. Whichever you prefer(email domain based or member type based), Please let me know and I will post the code.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: Excluding a role from all BuddyPress listings #31511

    Hi Jemima,
    That will work. It will apply to all members loops though.

    Also, Here is a minor enhancement(the above code did not respect already excluded users)

    
    
    add_action( 'bp_pre_user_query_construct', 'wd_build_exclude_args', 20, 1 );
    
    function wd_build_exclude_args( $args ) {
    
    	$excluded = isset( $args->query_vars['exclude'] ) ? $args->query_vars['exclude'] : array();
    
    	$user_ids = get_users( array( 'role__in' => [ 'subscriber' ], 'fields' => 'ID' ) );
    	$excluded = array_merge( $excluded, $user_ids );
    
    	$args->query_vars['exclude'] = $excluded;
    
    	return $args;
    }
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: Profile Tabs Shortcode #31510

    Hi Bill,
    Thank you.

    The plugin works with BuddyBoss theme. By menu, do you mean the left side menu or the account dropdown?

    Please let me know and I will check.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Sotiris,
    Thank you for the patience and helping with the links for seeing issue.

    I can see it. Please allow me 24 hours to push an update to fix it.

    I will write back after the update.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Sotiris ,
    I am sorry for the issue.

    Please allow me to check and get back to you.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Chris,
    Thank you for joining our membership.

    The BuddyPress Auto Friendship Pro addd the new User to a list of predefined users. In other words, the list of users who will be added is preset.

    What you are looking for is finding a match between the users and add them as friend. The plugin does not do that.

    Yes, It is doable with some code(will that work for you?). If I put the custom code, It will only apply to new users.

    If you need it for existing users, it will need searching all users and managing a queue for adding friendship relationship(which will be ajax based to avoid timeouts). This will be beyond the scope and will need custom service.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: Hide a member type in Profile Search Forms #31498

    Hi Ramon,
    Sure. I will share the activity code in next 1-2 days.

    The code for form was shared by @ravisharma and I am going to ask him to support you with that.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Alya,
    Thank you for the update. It is good to know.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: [Resolved] Hide Logged In User Member Card #31494

    Hi Steven,
    I am sorry for the inconvenience.

    Did you put it in your bp-custom.php.

    if yes, did that file started with
    <?php
    tag.

    If possible, Please share the complete code from that file on pastebin.com and link me.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: Hide a member type in Profile Search Forms #31493

    Hi Ramon,
    I am referring to the code for hiding activity.

    Hiding from the form should be simple.