New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Tosin,

    1. BP Profile Completion is a super set of BP Force Profile. You can remove BP Force Profile in favour of the Profile completion.

    They have similar code but the custom code for force profile won’t work with profile completion.

    The above code needs proper testing on Bp profile completion plugin, I will need sometime before I can test and provide you an update for it. Please reminding me by early Tuesday if I do not post the update here before that.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    Brajesh Singh on in reply to: [Resolved] comment plugin #21369
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Kristian,
    Thank you.

    Here is a link to post that shows how to do it

    https://buddydev.com/hiding-users-on-buddypress-based-site/

    Please do note that hiding a user will remove him from the members directory as well as other places. Since the widget uses bp_has_members() and we don’t have a context to differentiate it. The code has side effect of hiding users from other places too.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Thank you Dale.
    Than’s good to know.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Jack,
    Thank you for the post and the suggestion.

    Please feel free to do that. You can modify that line and use this instead

    
    	bp_core_add_message( sprintf( __( 'Your account is inactive. Please <a href="%s">activate</a> it to use all site functionality.', 'bp-deactivate-account' ),  bp_loggedin_user_domain() . bp_get_settings_slug() . '/account-deactivator/' ), 'error' );
    

    PS:- Please open a new topic in future to allow us keep the forum organized and help you server better.
    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    Brajesh Singh on in reply to: [Resolved] comment plugin #21362
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Joss,
    Please try adding this in your bp-custom.php

    
    
    /**
     * Print user's active membership level.
     */
    function buddydev_show_pmpro_membership_level_in_dir() {
    	// for the logged in user.
    	$level = pmpro_getMembershipLevelForUser( bp_get_member_user_id() );
    
    	if ( ! $level ) {
    		return;
    	}
    
    	echo '<div class="bp-member-xprofile-custom-field bp-member-level">' . $level->name . '</div>';
    }
    
    add_action( 'gwangi_buddypress_member_xprofile_custom_fields', 'buddydev_show_pmpro_membership_level_in_dir', 10 );
    

    Does it work for you?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Kuni,
    I am sorry, the option “Use members loop from theme for listing?” will not work, no matter which theme you use or template pack you use.

    The reason is you have custom filters on members loop and our loop gets affected by that.

    The solution is to differentiate between these two loops.

    A probable solution will be to create a copy of members-loop.php in buddypress/members in the theme and pass some “context=>avatar-widget” and then the original role based filter code, we will return the args if this context is found.

    If you are comfortable with it, Please do let me know.

    Regards
    Brajesh