| 【DEDE tag长度修改】 1.修改数据库 进入数据库 修改表dede_tagindex和dede_taglist的tag字段分别修改为255 2.源文件修改 在include/archives.func.php中查找:if(isset($tag[12]) 修改为:if(isset($tag[255]) 在include/archives.func.php中查找:if(isset($tag[20]) 修改为:if(isset($tag[255]) 【DEDE title长度修改】- ]& A. k! \, H/ ?: V/ t: v dedecms 对文章的标题长度作了限制,最长为60字节,这显然不够用。下面是修改方面:1 t% C% N& y7 g: w7 S. c" I& x" a9 } 1、进入dedecms后台,系统——系统基本参数——其他选项——文档标题最大长度——在这修改为200或更大(其实200应该是足够了)。/ f7 S1 N3 d; e; X: ~+ e7 B . x+ P, s' B$ h* Q! S/ u3 R) G 2、进入数据库,点击dede_archives 进入表——title——点击编辑——输入200 (根据需要调整), Q2 b, _# O" g; A* M: w0 r; B DEDE keywords关键词长度修改 1.进入数据库 修改表dede_archives、dede_infos和dede_keywords的keyword字段分别修改为255 2.源文件修改 找到如下文件 /dede/article_add.php /dede/article_edit.php /dede/archives_add.php7 \; I8 W9 |, D8 c /dede/archives_edit.php查找$keywords = cn_substrR($keywords,30);和$keywords = trim(cn_substrR($keywords,30));将里面的数值改为255 /dede/inc/inc_archives_functions.php找if(strlen($keywords.$k)>=4 T5 y; R% N4 O6 T 将后面的数值改为255$ j9 L. O! M3 H$ G% i) C 【栏目名称长度修改】 修改数据表dede_arctype中的typename和typedir字段改为255# i) Y) r4 W) C7 M& T0 h& B 4 C" ^+ L+ r0 x/ x% k3 ? G |
| 欢迎光临 航空论坛_航空翻译_民航英语翻译_飞行翻译 (http://bbs.aero.cn/) | Powered by Discuz! X2 |