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: 25302
    Brajesh Singh on in reply to: BuddyBlog Pro – Group Pluging Posting #47064

    Hi Aaron,
    Thank you for the details.
    Is this happening with ‘post’ post type or have you registered a custom post type?

    If this is a custom post type, does the post type support featured image(in register_post_type() )?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: Trouble finding Badges tab in back end #47063

    Hi Brealyn,
    Thank you for purchasing from us.
    I am sorry for the inconvenience.

    Please visit Dashboard-> Users->Badges to create badge.

    In case you have issue, Please do let me know here and I will assist.
    Here is a link to our documentation for reference.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: BuddyBlog Pro Posts Layout – 2 #47059

    Hi Nik,
    I will be glad to look into the Event Manager after Diwali(It’s on 24th here) and assit you with it.

    Using

    
    remove_action( 'parse_query', array( 'EM_Event_Post', 'parse_query' ) );
    

    Without scoping is not suggested at all. It is bound to have conflict.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: BuddyBlog Pro – Group Pluging Posting #47056

    Hi Aaron,
    Welcome to BuddyDev support forums.
    Thank you for the feedback.

    1. I am assuming that you have marked the featured image as required?
    2. What is the issue that you are facing selecting the featured image? I am able to do it with BuddyPress and BuddyBoss both.

    Please share the details about your theme and environment to help me troubleshoot it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: Custom User ID Custom created #47054

    Hi,
    Here is your updated code.

    
    
    function createCustomUserId( $user ) {
    	$user_id       = intval( $user->data->ID );
    	$id_prefix     = 'pie';
    	$separator     = '-';
    	$number_format = '000';
    	$batch_symbol  = 'BN';
    	$batch_size    = 10000;
    	$batch_number  = 1 + intval( ( $user_id - 1 ) / $batch_size );
    
    	$custom_id = $id_prefix . $separator . $number_format . $user_id . ' | ' . $batch_symbol . $batch_number;
    
    	update_user_meta( $user_id, 'custom_user_id', $custom_id );
    }
    
    add_action( 'pie_register_after_user_created', 'createCustomUserId', 10, 1 );
    
    function showCustomUserId() {
    	$output = '';
    
    	if ( is_user_logged_in() ) {
    		$user_id   = get_current_user_id();
    		$custom_id = get_user_meta( $user_id, 'custom_user_id', true );
    
    		$output .= '<div class="custom_id_div">';
    		$output .= '<p>';
    		$output .= $custom_id;
    		$output .= '</p>';
    		$output .= '</div>';
    
    		return $output;
    	}
    }
    
    add_shortcode( 'custom_user_id', 'showCustomUserId' );
    
    

    All I have done is added 1 line

    
    $batch_size    = 10000;
    

    and updated your batch number calculation to this

    
    $batch_number  = 1 + intval( ( $user_id - 1 ) / $batch_size );
    
    

    That will add the correct batch number.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: [Resolved] Posting in groups #47053

    Thank you Chris

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: How to reject buddyblogs #47052

    Hi Mike,
    After selecting the option, Please save/update the post and the mail will be sent.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: How to reject buddyblogs #47050

    Hi Mike,
    If you are using the classic editor, it appears at the right sidebar top.
    If you are using Gutenberg, It appears at the bottom of the post as shown here.

    https://i.ibb.co/DLdy2Qp/Selection-005.png

    If you still have issue, Please grant me temporary admin access to your site and I will check and assist you.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Tosin,
    For the time being, Please change the hook to

    
    bblpro_ppp_post_purchase_completed

    from

    
    bblpro_ppp_post_published
    

    In your code and it should work as expected.

    Regards
    Brajesh