BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    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: 25211
    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: 25211
    Brajesh Singh on in reply to: [Resolved] Posting in groups #47053

    Thank you Chris

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    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: 25211
    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: 25211

    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

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

    Hi,
    Thank you for the details. I have been a bit away. will look into it and get back to you in next 24 hours.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    Brajesh Singh on in reply to: Image uploaded not seen in backend #47043

    Hi Dev,
    I am glad that issue is fixed. Will check your other issue about the file as required field not working properly and will get back to you in next 24 hours.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211

    Hi Peter,
    Thank you.
    It’s wonderful to know that you have been to India around Diwali. It’s one of the most amazing festival we have here.

    I hope you enjoyed your stay here.

    Yes, the plugin will be available in early November.

    1. The issue with xprofile upload seems to be your wp-content/upload is not being writable/readable. It is thrown by WordPress when we ask it to handle the upload but the upload file is not readable.

    Please check uploads directory and its permissions.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    Brajesh Singh on in reply to: Spamers #47041

    Hi Daniel,
    You are welcome.
    I had suggested the registration plugin as you had asked for a solution to block gmail. I am glad you have already done this.

    Regards
    Brajesh