@kobrakai75
5 years ago
Yes it will! I have a WordPress install on a subdomain and BuddyPress works absolutely fine.
Thanks for setting this up! I’ve joined 🙂
5 years, 2 months ago
@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!
Thanks a lot for this.
I’ll test it out when I get a chance and let you know the result.
5 years, 3 months ago
RESOLVED
@snorlax775
Did you find a solution for this?
I’m also trying to find a way to limit characters for profile fields.
9 years, 9 months ago
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!