• Resolved Carsten Lund

    (@carsten-lund)


    I could wish the Profile Fields -> Edit Field -> Type -> Text Box would contain and show all text, and not as it is, one long line while writing.

    I know that there is an Multi Select Box, but I don’t want the members to have the text editor toolbox.

    Regards
    Carsten

Viewing 6 replies - 1 through 6 (of 6 total)
  • jomo

    (@jonathanmoorebcsorg)

    I think there’s some confusion – Multi-select box is a select box, it is not a multi-line text box with editor tools

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Carsten,

    You can use a ‘Multi-line Text Area’, and to remove the editor from that field you can add this code to your bp-custom.php file:

    add_filter ('bp_xprofile_is_richtext_enabled_for_field', '__return_false');

    Thread Starter Carsten Lund

    (@carsten-lund)

    Hi Andrea,

    Thanks for your quick reply and solution to my problem.

    What about changing the default size of the text field instead, and change the content overflow to auto, would that be a possibility as well? Can I ask, why this text box is so short and in one line?

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Carsten,

    That’s a BuddyPress matter. I guess they chose to offer a ‘Text Box’ for very short text fields, and a ‘Multi-line Text Area’ for longer text fields. For the latter field type, you can keep or remove the default text editor toolbox as explained above.

    Thread Starter Carsten Lund

    (@carsten-lund)

    Thanks :-), I will follow your instructions and ad the code to the bp-custom.php file.

    Regards
    Carsten

    Thread Starter Carsten Lund

    (@carsten-lund)

    Hi, the bp-custom.php file code works very well, thanks.

    Is it possible only to show only the first four lines or 200 characters of the profile text?

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Text Box only one line’ is closed to new replies.