注意:字符最大不能超过255
第一步:
修改include/post.func.php
找:
Quote:
function checkpost() {
global $subject, $message, $disablepostctrl, $minpostsize, $maxpostsize;
if(strlen($subject) > 80) {
return 'post_subject_toolong';
}
|
把80改为想要的数目
第二步:修改模板
templates/default/post_newreply.htm
Quote:
} else if (theform.subject.value.length > 80) {
alert("{lang post_subject_toolong}");
return false;
|
templates/default/post_newthread.htm
Quote:
} else if (theform.subject.value.length > 80) {
alert("{lang post_subject_toolong}");
theform.subject.focus();
|
templates/default/post_editpost.htm
Quote:
} else if (theform.subject.value.length > 80) {
alert("{lang post_subject_toolong}");
|
把80改为想要的数字
第三步:修改语言包
templates/default/messages.lang.php
Quote:
|
对不起,您的标题超过 80 个字符,请返回修改标题长度
|
templates/default/templates.lang.php
Quote:
|
'post_subject_toolong' => '您的标题超过 80 个字符的限制。',
|
把80改为想要的数字
第四步:论坛后台-系统工具-升级数据库
Quote:
ALTER TABLE `cdb_threads` CHANGE `subject` `subject` VARCHAR(想要的数字) NOT NULL;
ALTER TABLE `cdb_posts` CHANGE `subject` `subject` VARCHAR(想要的数字) NOT NULL;
ALTER TABLE `cdb_pms` CHANGE `subject` `subject` VARCHAR(想要的数字) NOT NULL;
|
第5步:更新缓存