Tagged: Podium Stainless Bogor
Hi,
You can use multline text field(Profile field). It allows you to have the rich text area.Regards
Brajeshthanks a lot for responding!
i suppose u ment paragrapgh field?
screenshot:
https://drive.google.com/file/d/1ERI8_19nnIOkBUPJCZWkCU2OUuDBIybZ/view?usp=sharingcan i limit numbers of chracters and links to be inserted in this field?
does your plugin can do so:
https://buddydev.com/plugins/bp-xprofile-custom-field-types/Hi,
yes, It seems BuddyBoss has renamed it as Paragraph field.Our plugin does not have the ability to limit number of character but you may use Advance Xprofile Fields plugin to achieve that.
https://wordpress.org/plugins/advanced-xprofile-fields-for-buddypress/
Regards
Brajeshas u suggested , i want to use this to limit chars in the signature field :
https://wordpress.org/plugins/advanced-xprofile-fields-for-buddypress/
but am affraid it will somehow harm/not integrate well with buddyboss platform (and profiles)
1. do u think it can harm?2. how come u dont have this option in any of your plugins? (chars limit)
i saw your answer here:
https://buddydev.com/support/forums/topic/snipped-code-prevent-links-in-xprofile-new-plugin/can you pls edit this so this will only apply for specific profile field called signature?
3. this code will apply when clicking “save”/update in edit profile screen?/**
* Limit the allowed no. of characters for xprofile field.
*
* @param bool $validated is validated?
* @param string|array $values value(s).
* @param BP_XProfile_Field_Type $field field object.
*
* @return bool
*/
function buddydev_limit_xpfield_length( $validated, $values, $field ) {
$allowed_len = 0;if ( $field instanceof BP_XProfile_Field_Type_Textarea ) {
$allowed_len = 500; // how many chars.
} elseif ( $field instanceof BP_XProfile_Field_Type_Textbox ) {
$allowed_len = 100;
}if ( $allowed_len ) {
$validated = strlen( $values ) < $allowed_len;
}return $validated;
}add_filter( ‘bp_xprofile_field_type_is_valid’, ‘buddydev_limit_xpfield_length’, 10, 3 );
Hi,
Thank you for the replies.1. For BuddyBoss core related questions, BuddyBoss is the authority and I will suggest checking with their support.
2/3. We did not add it in core as it is not the experience we are looking for. If we ever added an option like that, we will need to implement some kind of the fedeback mechanism to the user on the chars length. Without that, this only applies on save and is not very helpful for the end user.
Regards
Brajeshjust to be clear, my will is to add to this plugin:
https://buddydev.com/plugins/buddypress-profile-data-control/
option to limit character for a specific field + implement the feedback mechanism to the user on the chars length.Thank you for your reply.
Please allow me a day to think if we should really have it in the profile data control.
Regards
Brajesh
You must be logged in to reply to this topic.