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

    Hi Joss,
    Thank you for the question.

    1. Showing PMPro level, it is doable.
    2. Listing users from 2 member types in one directory:- BuddyPress member types directory does not allow it. You can use our shortcode to achieve this though.

    For 1, I will look test install for PMPro a bit late today and post the code.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331

    Hi Kristian,
    I am sorry, It seems you are mixing it with something else.
    The code is only affecting the arguements for activity loop. There is no way it can affect your login unless there is something else wrong. It can not create the login related bug, I can assure you about that.

    About the code not working:- The only reason is may not work is either you are not looking at activity loop via bp_has_activities() or something else is modifying the activities.

    The above code will exclude a users’s activity from sitewide activity page as well as other places where bp_has_activities() has been used.

    There is a possibility that a plugin like BuddyPress wall, Facebook Like Activity Stream, activity privacy or RT media activity privacy can change this behaviour. These plugins modify the activity clause and that could cause it to not work.

    Please check if you have any of these.

    Regards
    Brajesh

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

    Hi Edward,
    I am sorry, the issue is related to your theme.

    The auto loader plugin simply simulates click on load more. It is exactly same as a person clicking on “Load more” button.

    Please disable it and give a ty to clicking load more.

    As far as I understand, this needs to be resolved in the theme.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331
    Brajesh Singh on in reply to: Members view admin only #21304

    Hi Thibault,
    Is there any chance that the user was searching? Since the user is not excluded from search, they will appear if somehow they are being searched or search term is set on the page.

    Please do visit that user’s profile and check if the options for that specific user is set correctly or not?

    PS:- Did the user registration happened as normal or did you add the user from dashboard?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331

    Hi Barry,
    That path will be buddypress/members/single/bpucf-form.php

    We need the following lines at its top

    
    <?php if ( ! did_action( 'template_notices' ) ) : ?>
    	<?php do_action( 'template_notices' ); ?>
    <?php endif; ?>
    

    It checks if notices action was not called, calls them.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331

    Hi Kuni,
    I am sorry for the inconvenience. Please allow me to check it and post an update to you by tomorrow.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331

    Hi Kristian,

    You can use the following

    
    
    /**
     * Exclude a user's activity from listing.
     *
     * @param array $args args.
     *
     * @return array
     */
    function buddydev_exclude_single_user_activities( $args ) {
    
    	$args['filter_query'] = array(
    		array(
    			'column'  => 'user_id',
    			'value'   => 46, // update with your own user id.
    			'compare' => '!=',
    		),
    	);
    
    	return $args;
    }
    
    add_filter( 'bp_after_has_activities_parse_args', 'buddydev_exclude_single_user_activities' );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25331

    Hi Barry,
    I a sorry for the inconvenience. Is there any chance that you had copied the template for form from the plugin to your theme or child theme?

    Regards
    Brajesh

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