DISCUZ X1.5帖子标题有个80字符限制,个人感觉字数少了些,何况UTF-8下一个汉字占了3个字节,DISCUZ X1.5主题标题80字符也就是限制最多只能用26个汉字。怎么修改这个呢?比如我要修改为120字

  1. // source/function/function_post.php  
  2. // 修改:  
  3. strlen($subject) > 80  
  4. // 为:  
  5. strlen($subject) > 120  
  6.   
  7. // static/js/forum_post.js  
  8. // 修改:  
  9. mb_strlen(theform.subject.value) > 80  
  10. // 为:  
  11. mb_strlen(theform.subject.value) > 120  
  12. // 修改:  
  13. showDialog('您的标题超过 80 个字符的限制');  
  14. // 为:  
  15. showDialog('您的标题超过 120 个字符的限制');  
  16.   
  17. // static/js/forum.js  
  18. // 修改:  
  19. mb_strlen(theform.subject.value) > 80  
  20. // 为:  
  21. mb_strlen(theform.subject.value) > 120  
  22. // 修改:  
  23. s = '您的标题超过 80 个字符的限制。';  
  24. // 为:  
  25. s = '您的标题超过 120 个字符的限制。';  
  26.   
  27. // templates/default/forum/post.htm  
  28. // 修改:  
  29. strLenCalc(this, 'checklen', 80);  
  30. // 为:  
  31. strLenCalc(this, 'checklen', 120);  
  32. // 修改:  
  33. <strong id="checklen">80</strong>  
  34. // 为:  
  35. <strong id="checklen">120</strong>  
  36.   
  37. // templates/default/forum/forumdisplay_fastpost.htm  
  38. // 修改:  
  39. strLenCalc(this, 'checklen', 80);  
  40. // 为:  
  41. strLenCalc(this, 'checklen', 120);  
  42. // 修改:  
  43. <strong id="checklen">80</strong>  
  44. // 为:  
  45. <strong id="checklen">120</strong>  
  46.   
  47. // source/language/lang_message.php  
  48. // 修改:  
  49. 'post_subject_toolong' => '对不起,你的标题超过 80 个字符'  
  50. // 为:  
  51. 'post_subject_toolong' => '对不起,你的标题超过 120 个字符'  
posted on 2011-03-28 10:34  小炒花生米  阅读(816)  评论(0编辑  收藏  举报