修改文件
1. include/post.func.php
2. include/ja
3. modcp/editpost.inc.php
4. default/viewthread.htm
5. default/forumdisplay.htm
6. default/templates.lang.php
7. default/messages.lang.php
1. 打开 include/post.func.php
查找
1.
2. function checkpost() {
3. global $subject $message $disablepostctrl $minpostsize $maxpostsize;
4. if(strlen($subject) > 80) {
5. return ‘post_subject_toolong’;
6. }
把 > 80 改成 你想要的数字
2. 打开 include/ja
查找
1. } else if(mb_strlen(theform.subject.value) > 80) {
2. alert(lang['post_subject_toolong']);
3. theform.subject.focus();
把 > 80 改成 你想要的数字
3. 打开 modcp/editpost.inc.php
查找
1. require_once DISCUZ_ROOT.’./include/discuzcode.func.php’;
2. $subjectnew = dhtmlspecialchars(censor(trim($subjectnew)));
3. if(strlen($subjectnew) > 80) {
4. showmessage(’post_subject_toolong’);
把 > 80 改成 你想要的数字
4. 打开 default/viewthread.htm
查找
1. } else if(mb_strlen(theform.subject.value) > 80) {
2. alert(”{lang post_subject_toolong}”);
3. theform.subject.focus();
4. return false;
把 > 80 改成 你想要的数字
5. 打开 default/forumdisplay.htm
查找
1. } else if(mb_strlen(theform.subject.value) > 80) {
2. alert(”{lang post_subject_toolong}”);
3. theform.subject.focus();
4. return false;
把 > 80 改成 你想要的数字
6. 打开 default/templates.lang.php
查找
1. ‘post_subject_toolong’ => ‘您的标题超过 80 个字符的限制。’
改成
1. ‘post_subject_toolong’ => ‘对不起,您的标题超过 xx 个字符,请返回修改。’
7. 打开 default/messages.lang.php
查找
1. ‘post_subject_toolong’ => ‘对不起,您的标题超过 80 个字符,请返回修改标题长度。’
改成
1. ‘post_subject_toolong’ => ‘对不起,您的标题超过 xx 个字符,请返回修改。’
上传所有修改好的文件 后台更新 所有缓存
OK,一切搞定~
