2013-08-10, 02:33 PM
2013-08-10, 03:25 PM
I want edit the maximum number, 85, to 100 for example
2013-08-10, 10:18 PM
In your theme templates, find the following value:
Replace it with
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
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
2013-08-11, 12:01 AM
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>
2013-08-11, 12:22 AM
Seems to be correct. If you changed it in both templates then go to .inc/datahandlers/post.php
Find
Replace it with
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;
}
2013-08-11, 12:41 AM
Thanks, work