MyBB Community Forums

Full Version: help,the Thread Subject too long
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
hi, i'm a newer
i found the Thread Subject which in "last post" on the index page is too long.
how can i limit the length of the Thread Subject?
Don't think you can but I think there should a setting for it really...
no setting here Sad
I know, what I meant was there isn't one but I think one should be added.
thanks Matt
anyone else can hlep me ?
(2008-11-23, 05:12 PM)shalibaji Wrote: [ -> ]thanks Matt
anyone else can hlep me ?

You've had your help.. from Matt. There is no setting for this. It cannot be done.
(2008-11-23, 06:27 PM)BizNiz Wrote: [ -> ]
(2008-11-23, 05:12 PM)shalibaji Wrote: [ -> ]thanks Matt
anyone else can hlep me ?

You've had your help.. from Matt. There is no setting for this. It cannot be done.

Yeah, I'm not quite sure what else I could say... I said I think it should be included, but until then, someone will have to make a plugin for it.
thanks.
i find a way to fix it.
edit the "forumbit_depth2_forum" in ACP
find
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>

change to
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap; width:200px;">{$lastpost}</td>

i add "width:200px;" in it.
i don't know if it's a good way.
i hope someone can find a way to limit the characters of the Subject Angel
Technically you can limit it...
Now, in your templates, edit new_reply and new_thread, and find:

<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" />

Change the "maxlength" value to prevent people from posting a long subject.

You can also edit this in phpMyAdmin, so the database will truncuate any values greater than the default.
When I edited the field length in PHPMyAdmin there wasn't an error message when the title was too long, it just shortened it... I take it the template edits would make it not type anymore when the limit is reached, yeah??
Pages: 1 2