<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

DedeCMS文章关键词长度修改的方法

时间:2020-12-15

第一步:数据表修改
首先将数据表中的keyword的varchar()改为varchar(任意长度,例如200)

dede_archives
dede_infos
dede_keywords

在后台执行SQL语句
alter table dede_archives modify keywords varchar(200)
alter table dede_infos modify keywords varchar(200)
alter table dede_keywords modify keyword varchar(200)

第二步:源文件修改
找到如下文件

/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));
将30改为200

查找

$keywords = cn_substrR($keywords,30);和$keywords = trim(cn_substrR($keywords,30));将里面的数值改为255

/dede/inc/inc_archives_function s.php找if(strlen($keywords.$k)>=

将后面的数值改为255

找到二句
if(strlen($keywords.$k)>=
将后面的数值改为200

OK,大功告成!

最后:如此修改之后,单个关键词和总的关键词长度都可以达到200。
0
首页
案例
关于
联系