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: 25486
    Brajesh Singh on in reply to: Emojis #45198

    Hi Tomas,
    Thank you for purchasing from us.

    The Emoji needs to convert the posting area from plain text to content editable and that may have issues with some of the themes as we don’t have control over their js. That’s why it is available with our theme currently.

    I have seen your mail and the name of the theme. I will be writing back over mail for more details as I update the plugin to support your theme.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi Tosin,

    Please try this code

    
    
    /**
     * Update BuddyBlog Author when a post is submitted in a specific category.
     */
    
    add_filter( 'bblpro_post_submission_prepared_data', function ( $post_data, $form_id, $post, $is_submission ) {
    	// update author if the category was selected. Don't do anything on edit.
    
        $anonymous_cat_id = 1487;
        $anonymous_user_id = 4766806;
    
        if( ! $is_submission ) {
            return $post_data;
        }
    
    	$selected_terms_ids = isset( $post_data['tax_input'] ) ? (array) $post_data['tax_input'] : array();
    
    	$selected_categories = isset( $selected_terms_ids['category'] ) ? (array) $selected_terms_ids['category']: array();
    
        if( ! $selected_categories  || ! in_array( $anonymous_cat_id, $selected_categories ) ) {
            return $post_data;
        }
    
    	// Update.
    	$post_data['post_author'] = $anonymous_user_id;
    	// keep current user data for future?
    	if ( ! empty( $post_data['ID'] ) ) {
    		update_post_meta( $post_data['ID'], '_bbl_original_post_author', get_current_user_id() );
    	}
    
    	return $post_data;
    }, 10, 4 );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
    Brajesh Singh on in reply to: installation breaks the groups #45191

    Hi Greg,
    Thank you.

    I am sorry, we are off on weekend and I could not reply earlier.

    1. Please share me link to screenshots showing the tab configurations.

    You may put the image on any of the following services(or any other of your choice) and link me
    https://imgbb.com/
    https://prnt.sc/

    2. You seem to be not included in notification earlier. I checked and you have enabled reply notification for this topic. Please let me know if you still face the issue.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi,
    Thank you for the replies.

    1. The link takes to the link you set while creating/editing badge in the User->Badges screen.
    2. I checked, It is not linking to discussion. It is not linking to anything. Since the link is not pointing to here, It is leading to current document/page opened.

    Do you want the link on the badges to take somewhere or do you want to disable the link completely? Please let me know and I will assist.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Thank you Tosin,
    I will be sharing code soon.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi Hussein,
    Thank you for the reply.

    Hope you are doing well too.

    We have it fixed and will be making a release today. We will be replying after pushing the release.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
    Brajesh Singh on in reply to: [Resolved] Xprofile Field – Country Select #45178

    Thank you Quint.

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi,
    Thank you for the patience.

    Please add the following code too

    
    add_filter( 'bbp_get_topic_author_link', function ( $link , $args) {
    
    	if( isset( $args['type']) && 'name' != $args['type']) {
    		return $link;
    	}
    
    	if ( bbp_is_single_topic() && function_exists( 'bp_user_badges_get_user_badges_html' ) ) {
    		$link = $link . bp_user_badges_get_user_badges_html( bbp_get_topic_author_id() );
    	}
    
    	return $link;
    }, 10, 2 );
    

    That should show the badge in the main topic.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi Quint,
    Thank you for the feedback.

    We are using the default HTML field for number/range and their UI is managed by browsers.

    1. There is no restriction from our side. We can’t use the field for both the integer and float, It may be used for only one at a time.
    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number#allowing_decimal_values

    After your feedback, we do plan to add the step option to let users choose.

    2. This is an issue with how the broser works.
    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range

    3. It can be achieved by adding external scripts(an example is jQuey UI slider)
    https://jqueryui.com/slider/#custom-handle

    Regards
    Brajesh