DISCUZ X1.5帖子标题有个80字符限制,个人感觉字数少了些,何况UTF-8下一个汉字占了3个字节,DISCUZ X1.5主题标题80字符也就是限制最多只能用26个汉字。怎么修改这个呢?比如我要修改为120字
- // source/function/function_post.php
- // 修改:
- strlen($subject) > 80
- // 为:
- strlen($subject) > 120
- // static/js/forum_post.js
- // 修改:
- mb_strlen(theform.subject.value) > 80
- // 为:
- mb_strlen(theform.subject.value) > 120
- // 修改:
- showDialog('您的标题超过 80 个字符的限制');
- // 为:
- showDialog('您的标题超过 120 个字符的限制');
- // static/js/forum.js
- // 修改:
- mb_strlen(theform.subject.value) > 80
- // 为:
- mb_strlen(theform.subject.value) > 120
- // 修改:
- s = '您的标题超过 80 个字符的限制。';
- // 为:
- s = '您的标题超过 120 个字符的限制。';
- // templates/default/forum/post.htm
- // 修改:
- strLenCalc(this, 'checklen', 80);
- // 为:
- strLenCalc(this, 'checklen', 120);
- // 修改:
- <strong id="checklen">80</strong>
- // 为:
- <strong id="checklen">120</strong>
- // templates/default/forum/forumdisplay_fastpost.htm
- // 修改:
- strLenCalc(this, 'checklen', 80);
- // 为:
- strLenCalc(this, 'checklen', 120);
- // 修改:
- <strong id="checklen">80</strong>
- // 为:
- <strong id="checklen">120</strong>
- // source/language/lang_message.php
- // 修改:
- 'post_subject_toolong' => '对不起,你的标题超过 80 个字符'
- // 为:
- 'post_subject_toolong' => '对不起,你的标题超过 120 个字符'