BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25211

    Hi Cristi,
    Thank you.
    We will have the solution in our next update.

    It is just a minor filter to disable the existing feature.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211

    Hi Joseph,
    Thank you for using MediaPress.

    Your second shortcode is correct

    
    [mpp-list-media for='displayed' type='photo']
    

    If it is not working, Please contact BuddyBuilder support and ask them if

    
    bp_displayed_user_id()
    

    function works with their profile?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    Brajesh Singh on in reply to: [Resolved] Auto feature members #45988

    Hi Tosin,
    Here is your updated code

    
    
    add_action( 'transition_post_status', function ( $new_status, $old_status, $post ) {
    
    	if ( 'publish' !== $new_status || ! function_exists( 'bp_featured_members' ) ) {
    		return;
    	}
    
    	$user = get_user_by( 'id', $post->post_author );
    
    	if ( ! $user ) {
    		return;
    	}
    
    	$users_post_count = count_user_posts( $user->ID, 'post' );
    
    	$is_featured = bp_featured_members()->is_featured( $user->ID );
    
    	if( 25 == $users_post_count && ! $is_featured ){
    		bp_featured_members()->add_user( $user->ID );
    	} elseif( $is_featured && $users_post_count< 25 ) {
    		bp_featured_members()->remove_user( $user->ID );
    	}
    
    }, 10, 3 );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211

    Hi Cristi,
    Thank you for reporting the issue.

    Yes, there were some issue with Pay per Post. we are in the process of releasing it on BuddyDev this weekend and it will have the fix.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211

    Hi George,
    Which plugin are you using for Blog tab?

    Please let us know.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    Brajesh Singh on in reply to: Sorry, you are not allowed to upload here. #45981

    Hi Martin,
    Thank you for using MediaPress.

    Please download this addon.
    https://github.com/mediapress/mpp-global-shared-gallery

    and install/activate it.

    After that, Please mark the gallery as Globally shared in the admin edit gallery page. After that, any member of your site can upload to the gallery.

    Please let me know if it works for you or not?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    Brajesh Singh on in reply to: [Resolved] Auto feature members #45980

    Hi Tosin,
    The problem is we are not storing any flag/marker to differentiate a user who has been marked as featured manually by the site admin.

    So, if we start automating the non featuring of user, it will impact that.

    Is that fine with you?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    Brajesh Singh on in reply to: Suggestion of making a newsletter #45978

    Hi Carsten,
    Thank you.

    Here is the link for subscribing to our newsletter.
    http://newsletter.buddydev.com/

    I will have it available on BuddyDev soon.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    Brajesh Singh on in reply to: [Resolved] Auto feature members #45960

    it strictly marks on 2. If you want to mark any user who has more than 24 posts(e.g 26, 28 etc), you change the condition from

    
    if ( 25 == $users_post_count && ! bp_featured_members()->is_featured( $user->ID ) ) {
    		bp_featured_members()->add_user( $user->ID );
    	}
    

    to

    
    if ( $users_post_count >= 25  && ! bp_featured_members()->is_featured( $user->ID ) ) {
    		bp_featured_members()->add_user( $user->ID );
    	}
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    Brajesh Singh on in reply to: [Resolved] Auto feature members #45959

    Hi Tosin,
    Please give it a try and let me know if it works or not?

    
    
    add_action( 'transition_post_status', function ( $new_status, $old_status, $post ) {
    
    	if ( 'publish' !== $new_status || ! function_exists( 'bp_featured_members' ) ) {
    		return;
    	}
    
    	$user = get_user_by( 'id', $post->post_author );
    
    	if ( ! $user ) {
    		return;
    	}
    
    	$users_post_count = count_user_posts( $user->ID, 'post' );
    
    	if ( 25 == $users_post_count && ! bp_featured_members()->is_featured( $user->ID ) ) {
    		bp_featured_members()->add_user( $user->ID );
    	}
    
    }, 10, 3 );
    
    

    Regards
    Brajesh