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: [Resolved] Changing XProfile field Topic #47583

    Hi Daniel,
    You will not loose any data.
    Please feel free to edit the field name.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi Amanda,
    There is no clean way to do it currently.
    There are hooks that allow to buffer and remove the form but they are inconsistent and I will suggest doing a template override.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi Vitor,
    Thank you for the question.
    I have limited experience with elementor. So, I may not be able to assit much.

    Do you know a way you can achieve the same for a standard post type? If yes, you need to apply the same for BuddyBlog post types.

    The entry(single/loop) comes from a slightly modieifd buddyboss entry file.
    You can copy it from buddyblog/buddyboss/default/entry-content.php to your child theme/buddyblog/buddyboss/default/entry-content.php

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
    Brajesh Singh on in reply to: Image field not working in BuddyBoss app #47577

    Hi Henrik,
    Welcome to BuddyDev.

    The field rendering in BuddyBoss app is handled by the BuddyBoss App. Please contact their support and report the issue.

    Please let me know if they suggest any change from our side.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi
    Thank you for the reply.

    1. Can you please share the code for your endpoint as it seems you are probably checking the string value for checkbox incorrectly.

    2. I was not referring to any issue. My suggestion was to put an extra set of isset there to avoid notice if the field is not updated, this will cause php notice.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Hi Amanda,
    Thank you for the question.

    you can update the

    
    function buddydev_is_restricted_commenter( $user_id ) {
    
    	// Never restrict super admin from commenting or no user found.
    	if ( is_super_admin( $user_id ) ) {
    		return false;
    	}
    
    	$user = get_user_by( 'id', $user_id );
    
    	// Roles those will be restricted.
    	$restricted_roles = array( 'contributor', 'subscriber' );
    
    	// Restrict only if the user has restricted roles.
    	if ( $user && array_intersect( $user->roles, $restricted_roles ) ) {
    		return true;
    	}
    
    	return false;
    }
    
    

    with

    
    
    function buddydev_is_restricted_commenter( $user_id ) {
    
    	// Never restrict super admin from commenting or no user found.
    	if ( is_super_admin( $user_id ) ) {
    		return false;
    	}
    
    	$user = get_user_by( 'id', $user_id );
    
    	// Roles those will be allowed.
    	$allowed_roles = array( 'contributor', 'subscriber' );
    
    	// Do not restrict if user has atleast one of the allowed roles.
    	if ( $user && array_intersect( $user->roles, $allowed_roles ) ) {
    		return false;
    	}
    
    	return true;
    }
    
    

    Please feel free to change the $allowed_roles.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486

    Are you putting the shortcode inside the post content?
    Can you please share me the steps to re-create it?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
    Brajesh Singh on in reply to: [Resolved] BuddyBlog delete action hook/filter #47567

    Hi Nik,
    Thank you for the question.

    1. Please avoid using the filter ‘bblpro_post_submission_prepared_data’ if you are not changing the data which will be saved. The goal is to allow filtering content/

    There are better action hooks available if you want to do some housekeeping action ( prefer ‘bblpro_post_submitted’.

    We haven’t added an action for deletion but you can use the default WordPress one( if trashing is enabled, ‘wp_trash_post’ or ‘wp_delete_post’)

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25486
    Brajesh Singh on in reply to: [Resolved] Buddy Press Profanity Filter #47566

    Hi Kerry,
    Welcome to BuddyDev support forums.

    I am very sorry. I had a look at the plugin and I see that we made a huge blunder by not including the content link.

    We will be updating the plugin by Tuesday and let you know here.

    I sincerely apologize for the inconvenience.

    Brajesh