找回密码
 点一下
查看: 4232|回复: 9

[建议]希望调整一下字数限制

  [复制链接]
发表于 2006-3-27 19:56:59 | 显示全部楼层 |阅读模式
现在的字数限制是10000字符
太少了
对于转载或贴Jass代码都是不够的


建议:
1.字数限制与等级挂钩,等级越高字数限制也越高
2.发表主题时的字数限制得比发表回复大
3.在Jass区,字数限制得比其他区大
发表于 2006-3-27 20:32:26 | 显示全部楼层
SORRY
DISCUZ程序设计时是统一进行字数控制的
所以要改只能全体都变
因此控制在了1W字上
回复

使用道具 举报

发表于 2006-3-27 20:41:00 | 显示全部楼层
楼主要不分成2帖发?
回复

使用道具 举报

 楼主| 发表于 2006-3-27 21:00:39 | 显示全部楼层
是可以分成两段发
但看起来太不爽了


比如:
http://www.gacn.net/forum/viewthread.php?tid=103&pid=942
【转贴】创建一个魔兽RPG的AI系统

比较一下原作:
http://bbs.uuu9.com/viewthread.php?tid=216907
■创建一个魔兽RPG的AI系统■ 想你的地图更加智能吗?来看看吧

这么短的一篇文章居然分成了三段
U9网字数限制是16000,看起来好多了



PS:
修改一下论坛代码应该不难吧
我看了一下网页源代码,应该只需要改动一下这段代码:

  1. <script language="JavaScript">
  2. var postminchars = parseInt(\'10\');
  3. var postmaxchars = parseInt(\'10000\');
  4. var disablepostctrl = parseInt(\'0\');
  5. function validate(theform) {
  6. if (theform.message.value == "" && theform.subject.value == "") {
  7. alert("请完成标题或内容栏。");
  8. return false;
  9. } else if (theform.subject.value.length > 80) {
  10. alert("您的标题超过 80 个字符的限制。");
  11. return false;
  12. }
  13. if (!disablepostctrl && ((postminchars != 0 && theform.message.value.length < postminchars) || (postmaxchars != 0 && theform.message.value.length > postmaxchars))) {
  14. alert("您的帖子长度不符合要求。\\n\\n当前长度: "+theform.message.value.length+" 字节\\n系统限制: "+postminchars+" 到 "+postmaxchars+" 字节");
  15. return false;
  16. }                       
  17. theform.replysubmit.disabled = true;
  18. return true;
  19. }
  20. </script>
复制代码
回复

使用道具 举报

 楼主| 发表于 2006-3-27 21:13:09 | 显示全部楼层
刚刚尝试了一下

试图利用IE漏洞来绕过JavaScript的字数限制

虽然JavaScript绕过去了,但php却提示字数限制

看来要改的地方很多
回复

使用道具 举报

发表于 2006-3-28 11:16:43 | 显示全部楼层
原帖由 zyl910 于 2006-3-27 21:13 发表
刚刚尝试了一下

试图利用IE漏洞来绕过JavaScript的字数限制

虽然JavaScript绕过去了,但php却提示字数限制

看来要改的地方很多


hoho,这段代码只是在客户端生成的脚本
只修改它二不改动服务器端的代码显然是不行的..
回复

使用道具 举报

发表于 2006-4-2 23:40:38 | 显示全部楼层
呃。可以考虑一下。自己把字数限制和等级挂勾。
回复

使用道具 举报

发表于 2006-4-3 12:37:46 | 显示全部楼层
貌似昨天听到通知说字数已经扩充到20000鸟。恩…………还木试验不知真假厄。
回复

使用道具 举报

发表于 2006-4-3 12:40:49 | 显示全部楼层
可以测试 在发贴旁有字数检查
回复

使用道具 举报

 楼主| 发表于 2006-4-3 23:11:05 | 显示全部楼层
原帖由 freeman_666666 于 2006-4-3 12:37 发表
貌似昨天听到通知说字数已经扩充到20000鸟。恩…………还木试验不知真假厄。


果然


  1. <script language="JavaScript">
  2. var postminchars = parseInt(\'10\');
  3. var postmaxchars = parseInt(\'20000\');
  4. var disablepostctrl = parseInt(\'1\');
  5. function validate(theform) {
  6. if (theform.message.value == "" && theform.subject.value == "") {
  7. alert("请完成标题或内容栏。");
  8. return false;
  9. } else if (theform.subject.value.length > 80) {
  10. alert("您的标题超过 80 个字符的限制。");
  11. return false;
  12. }
  13. if (!disablepostctrl && ((postminchars != 0 && theform.message.value.length < postminchars) || (postmaxchars != 0 && theform.message.value.length > postmaxchars))) {
  14. alert("您的帖子长度不符合要求。\\n\\n当前长度: "+theform.message.value.length+" 字节\\n系统限制: "+postminchars+" 到 "+postmaxchars+" 字节");
  15. return false;
  16. }                       
  17. theform.replysubmit.disabled = true;
  18. return true;
  19. }
  20. </script>
复制代码

[ 本帖最后由 zyl910 于 2006-4-3 23:13 编辑 ]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-4-26 15:13 , Processed in 0.094097 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表