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: 25490
    Brajesh Singh on in reply to: [Resolved] Profanity Filter #34371

    Hi Maarten,
    Thank you for your interest in the plugin.

    It will be a good fit if you are going to use 100 or so words. If you want to use thousands we do not recommend it.

    It uses regular expression for matching the words and a huge number of words will sit down(We have mentioned it on the plugin page too).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25490
    Brajesh Singh on in reply to: BuddyPress & WooCommerce Membership #34361

    Hi Moose,
    Thank you for the questions.

    1. Our experience so far is that once the member pays for the membership it ends up creating a new member/user even though an athlete user is logged in when he pays for the membership.

    In that case, Please suggest the developers of the Membership plugin to use the logged user’s email for checking the account and not the billing email. I am guessing using billing email different from the account one is causing this.


    2. What we are trying to accomplish here is that when Athlete registers he will have free membership and his profile will NOT show up on the Athlete index page (https://cyberizepartners.com/members/type/athletes/) but after the payment of the membership, the profile will show up on the index page … I know it’s a lot … but just wondering if you could point us to the right direction as you’ve done in the past …

    Do not assign the member type on registration. You can assign the member type as soon as membership is purchased. That will make it as expected.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25490

    Hi Saleam,
    I am glad I was able to assist.

    No need for the payment. It was a minor issue and I appreciate you joining our membership.

    Have a great day.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25490

    Hi Carsten,
    Thank you for the clarification.

    I hope it all gets resolved by your host or you have better idea on what was causing the issue(if it persists).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25490
    Brajesh Singh on in reply to: Buddyblog – How To Enable Multiple Capabilities #34356

    Hi Roni,
    No issues.

    About the Youzer, I am sorry, we do not support any compatibility with Youzer.

    Please ask for support from Youzer devs for the same.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25490

    Hi Saleam,
    Thank you for the patience.

    I have updated the bp-custom.php

    The only configuration change on site I made was changing the language to “English”. Please change that to the original.

    Please let me know if you need further assistance.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25490
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25490
    Brajesh Singh on in reply to: Storage of media files #34353

    Hi Ankit,
    Thank you for your interest in it. It is not available for general use currently. We will be releasing it sometimes next year.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25490

    Hi Dorian,
    Thank you for the reply.

    Yes, It should work fine for the REST API.

    Please put this in wp-content/plugins/bp-custom.php

    
    
    /**
     * Ensures default profile fields visibility is used while displaying profile
     *
     * It is only applied if user has not saved any custom visibility.
     */
    function budydev_ensure_default_xprofile_field_data_visibility_for_user( $value, $object_id, $meta_key ) {
    
    	if ( 'bp_xprofile_visibility_levels' !== $meta_key ) {
    		return $value;
    	}
    
    	// let us use a  static cache since the default visibilites won't change during a request.
    	static $default_visibilities = null;
    
    	if ( ! is_null( $default_visibilities ) ) {
    		return $default_visibilities;
    	}
    
    	$visibilities = BP_XProfile_Group::fetch_default_visibility_levels();
    
    	foreach ( $visibilities as $field_id => $visibility ) {
    		$default_visibilities[ $field_id ] = isset( $visibility['default'] ) ? $visibility['default'] : 'public';
    	}
    
    	return $default_visibilities;
    
    }
    
    add_filter( 'default_user_metadata', 'budydev_ensure_default_xprofile_field_data_visibility_for_user', 10, 3 );
    
    

    It will ensure that whatever you set as the default visibility for the profile field will be used for users who haven’t updated their profile data.

    Please let me know if it works for you or not?

    Regards
    Brajesh

    PS:- Please do not copy code from email notification. It is entity encoded. Use the code from this post on forum.

  • Keymaster
    (BuddyDev Team)
    Posts: 25490

    Hi Saleam,
    Thank you for the patience.

    For the time being, I have put this code at the bottom of your theme’s function.php

    
    // show all profile field groups on BuddyPress registration.
    add_filter( 'bp_after_has_profile_parse_args', function ( $args ) {
    
    	if ( ! bp_is_register_page() ) {
    		return $args;
    	}
    
    	// BuddyPress does not allow us fetch multiple group using id but it does allows excluding.
    	$args['profile_group_id'] = false;
    	$args['exclude_groups']   = [];
    
    	return $args;
    } );
    

    Please check if the registration is working or not(by registering a new account). If it does not, we may need to change a Youzer template file.

    This change will be lost when you will update your theme in future. I will recommend using child theme or putting the code in wp-content/plugins/bp-custom.php

    I was not able to put it in bp-custom.php as I don’t have access to FTP.

    Regards
    Brajesh