您现在的位置:首页 >> 前端 >> 内容

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

时间:2012/2/17 14:35:30 点击:

  核心提示:一、DEDECMS tag长度修改1.修改数据库进入数据库 修改表dede_tagindex和dede_taglist的tag字段分别修改为2552.源文件修改在include/archives.fu...
一、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

摘自 kaifa123的专栏

Tags:DE ED DE EC 
作者:网络 来源:不详