演示链接:查看演示

DEDECMSdedecms修改文章标题,来源,摘要,作者等字数限制的方法

本文将为您介绍的是DEDECMS修改文章标题,来源,摘要,作者等字数限制,具体操作方法请看下文:

 

具体步骤:

 

1、找到后台登录目录,默认为dede目录,找到以下文件:

/archives_add.php

/archives_edit.php

/article_add.php

/article_edit.php

 

记得四个文件都要修改

 

如果修改专题摘要,还得修改:

/spec_add.php

/spec_edit.php

 

————————-

 

查找以下代码:

$title= cn_substrR($title,$cfg_title_maxlen);
$shorttitle = cn_substrR($shorttitle,36);//简略标题字符数
$color = cn_substrR($color,7);
$writer = cn_substrR($writer,20);//作者字符数
$source = cn_substrR($source,30);//文章来源字符数
$description = cn_substrR($description,600);//摘要字符数
$keywords = trim(cn_substrR($keywords,30));//关键词字符数
$filename = trim(cn_substrR($filename,40));//文件名字符数
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck'))

修改相应括号里的数字为想要显示的字符数

 

2、修改数据表打开数据表,找到相关数据表,查找:

 

description字段,将其中数值改为想要的字符数。此方法还可以修改其他显示字符的数值。

THE END
喜欢就支持一下吧
点赞0 分享