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

    Hi Cathy,
    Is there any chance that you copied the code from the notification email. The code might have been entity encoded.
    can you please post it on pastebin and link me?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    Hi Cathy,
    Please put this code in your bp-custom.php

    
    
    function buddydev_exclude_users_in_bp_user_query( $query ) {
    
    	if ( ! function_exists( 'bp_profile_visibility_manager' ) ) {
    		return;
    	}
    
    	$excluded = bp_profile_visibility_manager()->get_users( 'bp_profile_visibility', 'self' );
    	//should we exclude friends only profile too?
    	$excluded = array_merge( $excluded, bp_profile_visibility_manager()->get_users( 'bp_profile_visibility', 'friends' ) );
    
    	$pre_excluded = empty( $query->query_vars['exclude'] ) ? array() : wp_parse_id_list( $query->query_vars['exclude'] );
    
    	if ( ! empty( $pre_excluded ) ) {
    		$excluded = array_merge( $excluded, $pre_excluded );
    	}
    
    	$query->query_vars['exclude'] = $excluded;
    
    }
    
    add_action( 'bp_pre_user_query_construct', 'buddydev_exclude_users_in_bp_user_query' );
    
    

    Please do let me know if it works or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    Hi,
    I just tested on WordPress 4.7.2 and BuddyPress 2.8.1 and It is working fine for me.

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    Hi,
    can you please explain me again? I am sorry but I could not understand the issue.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: Activity ShortCode Plugin #7450

    Hi MW93,
    That action seems to be the issue here. Which plugin are you using to attach media to the activity stream? All plugins add their own action type. You will need to include that action type to make it work.

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: Mediapress Upload Photo from iPhone #7447

    Hi BD,
    I am setting up a demo site today for you. will message back here in the evening with the details.

    I am not sure of the issue yet, so may be this will help.

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: [Resolved] Gallery Created But Not Showing Up #7445

    Hi Mario,
    I am sorry the week has been hectic and I could not reply on time.

    from your last reply, It is clear that MediaPress is working as expected(the component/status/type is set properly).

    Here is what might be happening, one of the plugin or some code is modifying is WP_Query loop( most probably using pre_get_posts) without checking properly and that is causing the issue.

    Please try by disabling any custom/code, plugin /changing theme. Please do let me know what was causing it. I can add it to our list of conflicts.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: Activity ShortCode Plugin #7444

    Hi,
    Welcome to BuddyDev.

    Can you please post the exact shortcode. is there any chance that you have some parameters specified.

    If you haven’t specified any options in the shortcode, The plugin should list every visible activity.

    If it does not, then the code for generating attachment activity is doing some magic(setting it to hidden, which is only visible on profile).

    Please do let me know if you are using it with options.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: where is it? #7443

    Hi Venus,
    Welcome to BuddyDev.

    The plugin does not provide any setting.
    Please login as a normal user and visit Profile->Settings and you will see the option to change username.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    Thank you.
    That makes sense.
    I have also applied for their go global program and hope to provide better compatibility for all of our plugins in future.