BuddyDev

Search

how to add reach text field in a user profile

  • Participant
    Level: Enlightened
    Posts: 80
    טליה שוורץ on #46338

    do u have (or can recommend) about plugin that will let me add reach text field in a user profile? (using buddyboss)

  • Keymaster
    (BuddyDev Team)
    Posts: 21806
    Brajesh Singh on #46340

    Hi,
    You can use multline text field(Profile field). It allows you to have the rich text area.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 80
    טליה שוורץ on #46352

    thanks a lot for responding!
    i suppose u ment paragrapgh field?
    screenshot:
    https://drive.google.com/file/d/1ERI8_19nnIOkBUPJCZWkCU2OUuDBIybZ/view?usp=sharing

    can 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/

  • Keymaster
    (BuddyDev Team)
    Posts: 21806
    Brajesh Singh on #46360

    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
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 80
    טליה שוורץ on #46460

    as 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 );

  • Keymaster
    (BuddyDev Team)
    Posts: 21806
    Brajesh Singh on #46491

    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
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 80
    טליה שוורץ on #46571

    i would like to pay for
    “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.”
    what’s the price?

  • Participant
    Level: Enlightened
    Posts: 80
    טליה שוורץ on #46572

    just 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.

  • Keymaster
    (BuddyDev Team)
    Posts: 21806
    Brajesh Singh on #46587

    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

  • Participant
    Level: Enlightened
    Posts: 80
    טליה שוורץ on #46595

    thanks. Waiting patiently

You must be logged in to reply to this topic.

This topic is: not resolved