Dedecms修改TAG、title、keywords及栏目名称长度限制

一、DEDECMS tag长度修改

1.修改数据库

进入数据库 修改表dede_tagindex和dede_taglist的tag字段分别修改为255

2.源文件修改

在include/archives.func.php和include/archives.func.php中查找:

if(isset($tag[12])

都修改为:

if(isset($tag[255])

二、DEDECMS title长度修改

1.修改数据表dede_archives中的title字段 后台系统基本参数-其他选项中-“文档标题最大长度”改为255。(最好先改下系统基本参数-其他选项-文档标题最大长度)

三、DEDECMS keywords关键词长度修改

1.进入数据库 修改表dede_archives、dede_infos和dede_keywords的keyword字段分别修改为255

2.源文件修改

找到如下文件

/dede/article_add.php

/dede/article_edit.php

/dede/archives_add.php

/dede/archives_edit.php 查找

$keywords = cn_substrR($keywords,30);

 

$keywords = trim(cn_substrR($keywords,30));

将里面的数值改为255

3./dede/inc/inc_archives_functions.php找到

if(strlen($keywords.$k)>=

将后面的数值改为255

四、栏目名称长度修改

修改数据表dede_arctype中的typename和typedir字段改为255

posted @ 2013-12-20 14:12  chinaifne  阅读(279)  评论(0编辑  收藏  举报