MyBB Community Forums

Full Version: maximum number of characters title
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Where can I edit the maximum number of characters in the title of topic?
I don't find this option Huh
see this and this
I want edit the maximum number, 85, to 100 for example
In your theme templates, find the following value:

maxlength="85"

Replace it with

maxlength="100"

The maximum you can use is 120, anything above that would not work.

Templates to modify

newthread
newreply



Go to ACP>Templates & Styles>Templates>YOUR THEME
Don't work, this is the code, i wrong?

<td class="trow2">{$prefixselect}<input name="subject" type="text" onKeyDown="limitText(this.form.subject,this.form.countdown,110);" 
onKeyUp="limitText(this.form.subject,this.form.countdown,110);" size="60" maxlength="110" value="{$subject}">
<font size="1">
<input teadonly type="text" name="countdown" size="3" value="110"> caratteri da inserire</font>
</form>
<script language="javascript" type="text/javascript">
function limitText(limitField, limitCount, limitNum) {
    if (limitField.value.length > limitNum) {
        limitField.value = limitField.value.substring(0, limitNum);
    } else {
        limitCount.value = limitNum - limitField.value.length;
    }
}
</script></td>
Seems to be correct. If you changed it in both templates then go to .inc/datahandlers/post.php

Find

if($subject_length > 85)
		{
			// Subject is too long
			$this->set_error('subject_too_long', my_strlen($subject));
			return false;
		}

Replace it with

if($subject_length > 110)
		{
			// Subject is too long
			$this->set_error('subject_too_long', my_strlen($subject));
			return false;
		}
Thanks, work Smile