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

    Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    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: 25302
    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: 25302

    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: 25302

    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: 25302

    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: 25302
    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: 25302
    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi,
    I am sorry, I skipped the post earlier.
    i am seeing a lost of issues:-

    1. Play list is not defined for users other than with id 12
    2. The Payload is not included as you are not putting it correctly.

    You should add the body parameter after you have created the $dataPut as shown below

    
    $argsPut['body'] = $dataPut;
    

    Please give it a try after that. I will suggest 2 other changes too:-

    1. add a fallback playlist id or return at the beginning
    2. make sure to check if ‘103’ exists in the $old_values/$new_values

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: [Resolved] Buddyblog activity button #47557

    Hi Tosin,
    We will check if BuddyPress allows us to add extra markup without applying their kses(otherwise, we will have to use action to add the buttons).

    Ravi or I will update you in next 2 days.

    Regards
    Brajesh