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

    Hi Cathy,
    The last activity time on the directory was happening since BuddyPress introduced live timestamp.

    To fix it, I have dequeued the live timestamp js on the members directory. also, I have fixed the redirect to redirect to current page(or home page if the url was directly accessed).

    We already add the notice of the access redirection.

    It will be visible if your theme has this line

    
    <?php do_action( 'template_notices' ); ?>
    
    

    That code is used for inserting the BuddyPress notices on pages.

    Please upgrade to 1.4.0 and It all should work.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Conflict with BP Portfolio plugin #7539

    Hi Kristin,
    Thank you.

    That is because the BP portfolio plugin has a lot of messy code.

    Here is the code from the plugin that is causing the issue

    
    /**
     * Set upload file type
     *
     * @param $mime_types
     * @return array
     */
    function bpcp_myme_types($mime_types){
        //Creating a new array will reset the allowed filetypes
        $mime_types = array(
            'jpg|jpeg|jpe'                 => 'image/jpeg',
            'gif'                          => 'image/gif',
            'png'                          => 'image/png',
            'bmp'                          => 'image/bmp',
            'tif|tiff'                     => 'image/tiff',
            'ico'                          => 'image/x-icon',
        );
    
        return $mime_types;
    }
    add_filter('upload_mimes', 'bpcp_myme_types', 1, 1);
    
    

    It simply resets all the allowed mime types. This kind of code is bound to thousand problems in future.

    Please report it to them and they should be able to fix.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Feature: Featured members in different categories #7536

    Hi Waldemar,

    It is only visible if you have some member types registered. Do you have any member type registered on your site?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Recent Media Widget – Multiple Statuses #7535

    Hi Camden,
    Welcome to BuddyDev.
    Though you can extend the widget and in the MPP_Media_Query pass an array of status, Please do note that the friends status is relative to the owner of the media.
    The visibility of a group of media having status private, public, friendsonly will not result in what you might be thinking.

    If your goal is to list all media, the simple strategy that will work best is just not passing status to the MPP_media_Query.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Conflict with BP Portfolio plugin #7534

    Hi Kristin,
    Are you on WordPress 4.7.x

    WordPress 4.7.x has an issue with non image media files. It will be fixed in WordPress 4.7.3

    Till then, Please try using
    https://wordpress.org/plugins/disable-real-mime-check/

    That should make it work.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Restrict privacy settings by media type #7533

    Hi Kristin,
    At the time of Gallery creation, the type of gallery is unknown, so we can not limit the privacy type dropdown there.

    It is feasible to conditionally set the status but that will make a bad UI here. We only allow filtering by Component(member/sitewide/groups) since it is known which component the gallery will be associated to.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Cathy,
    Please give the following code try one more time

    
    
    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 );
    	}
    
    	if ( ! empty( $excluded ) ) {
    		$query->query_vars['exclude'] = $excluded;
    	}
    
    }
    
    add_action( 'bp_pre_user_query_construct', 'buddydev_exclude_users_in_bp_user_query' , 100);
    
    

    All I have changed here is the priority and the checkl if there is something to exclude.

    Even the first code worked for me. When you set a profile as Only me(private) It is not visible in part of the previous/next navigation.

    It is possible that some other is overriding the exclude too, so changing the priority might work.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Cathy,
    Apologies for the delayed reply.

    I am going to test it with the theme today and will report back with updated code.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    You are welcome. Thank you for marking it resolved.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: [Resolved] Buddypress Branded Login #7516

    Thank you.
    I am glad it is working for now. we will be looking at it again and update the docs accordingly.

    Regards
    Brajesh