MyBB Community Forums

Full Version: Wrap text in custom profile field
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,

I hope is not a repost after i google the hell out of it.
The problem i have is with one of my custom profile on my board, even do i setup the maximum length to 20 user can enter more and it makes the author postbit to be way to wide. Is there any chance i can wrap that text?

Field Type: Textarea
Maximum Length: 20

Please see the attachment below for reference.
Thanks
J

[EDIT] Sorry for posting in the wrong thread [/EDIT]
Can any mod move my thread here
Pretty please BlushBig Grin
I second that. Have the same problem.
Use Textbox in "Field Type".
if its textarea, declare these attributes

cols="x" rows="x"

if its textbox, declare

size="x" maxlength="x"

replace x with number you want the width to be
thanks a lot!
Where I should declare it?
You could also do this:

Open your postbit_classic template;

Find:

        <td class="trow1" width="20%" valign="top" style="white-space: normal; text-align: center;"> 
Or something similar to that - it's the side container of the postbit.

Replace with:

        <td class="trow1" width="20%" valign="top" style= "white-space: pre-line; line-height: 1.2em;"> 
Leefish
Thank you! Now everything is correct ^^
Thanks for the help Leefish

mine was:
<td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: left;">

replaced with:
<td class="{$altbg}" width="15%" valign="top" style="white-space: wrap; text-align: left;">

and now is working fine.