CnPack Forum


 
Subject: 终于改掉了Discuz!万恶的标题80字符限制!
  This thread has beed added to the blog of author's.  
zjy
管理员
Rank: 9Rank: 9Rank: 9



UID 2
Digest Posts 6
Credits 2385
Posts 1543
点点分 2385
Reading Access 102
Registered 2002-12-16
Location China
Status Offline
Post at 2010-4-12 23:10  Profile | Site | Blog | P.M. 
终于改掉了Discuz!万恶的标题80字符限制!

不知道为啥 Discuz! 要限制标题 80 字符,而且一旦标题超长就报错。更有可能在返回上一页时,辛辛苦苦打了半天的内容都丢了,实在是太不爽了!

还有,CnPack 用的是 utf-8 版本的论坛,utf-8下面一个汉字占3个字节,算下来标题只能限制在26个汉字,完全不够用嘛

现在终于爽了,刚才把数据库中 cdb_post 表的 subject 字段改成 varchar(150),最多可输入50个汉字

另外,再把 post.func.php 中 checkpost 函数中对标题 80 字符的改成 150 个,如果超出的话,自动取前 147 字符再加上 ...

开源就是好啊!自已动手,丰衣足食呐!




Zhou JingYu
CnPack Administrator
http://www.cnpack.org/
Top
 




All times are GMT++8, the time now is 2024-4-25 07:23

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.006728 second(s), 9 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP