Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • @kobrakai75

    Participant

    Yes it will! I have a WordPress install on a subdomain and BuddyPress works absolutely fine.

    @kobrakai75

    Participant

    Thanks for setting this up! I’ve joined 🙂

    @kobrakai75

    Participant

    @rsmithgs

    You can try the following to limit character length in xprofile fields:

    function buddydev_limit_xpfield_length( $validated, $values, $field ) {
    	$allowed_len = 0;
    
    	if ( $field instanceof BP_XProfile_Field_Type_Textarea ) {
    		$allowed_len = 600;
    	} elseif ( $field instanceof BP_XProfile_Field_Type_Textbox ) {
    		$allowed_len = 60; 
    	}
    
    	if ( $allowed_len ) {
    		$validated = strlen( $values ) < $allowed_len;
    	}
    
    	return $validated;
    }
    
    add_filter( 'bp_xprofile_field_type_is_valid', 'buddydev_limit_xpfield_length', 10, 3 );

    It worked for me!

    @kobrakai75

    Participant

    @rsmithgs

    Thanks a lot for this.

    I’ll test it out when I get a chance and let you know the result.

    @kobrakai75

    Participant

    RESOLVED

    @kobrakai75

    Participant

    @snorlax775

    Did you find a solution for this?

    I’m also trying to find a way to limit characters for profile fields.

    @kobrakai75

    Participant

    That’s exactly what I’m trying to achieve. With the new Member Types in BP 2.2 it would so useful if members could select the type during registration, hopefully there’s a way!

Viewing 7 replies - 1 through 7 (of 7 total)
Skip to toolbar