2021-07-22 14:22:14
1.上传e目录到网站目录
2.打开 你的网址/e/ecmsshop/addkeyword/install 进行安装(需要先登陆后台)
3.安装好去后台 扩展菜单 下面找到插件 然后导入关键词
按上面的安装好
下面是手动修改文档:
后台发布自动增加修改:
打开 e/class/hinfofun.php
找到
function AddNews($add,$userid,$username){
在下面找到
$add=DoPostInfoVar($add);//返回变量
在这句上面增加(有多个位置 只改function AddNews($add,$userid,$username){这个里面的,也就是找到的第一个!)
$s=$empire->fetch1("select * from {$dbtbpre}tkeyword where ison=0 order by id asc");
if($s[id]){
$add[title]=stripSlashes($s[keyword]).$add[title];
$empire->query("update {$dbtbpre}tkeyword set ison=1 where id='$s[id]'");
} else {
$empire->query("update {$dbtbpre}tkeyword set ison=0");
$s=$empire->fetch1("select * from {$dbtbpre}tkeyword where ison=0 order by id asc");
if($s[id]){
$add[title]=stripSlashes($s[keyword]).$add[title];
$empire->query("update {$dbtbpre}tkeyword set ison=1 where id='$s[id]'");
}
}
前台投稿自动增加修改
打开 e/class/qinfofun.php
找到
qCheckMemberOneInfo($tbname,$mid,$classid,$muserid);
在下面增加
$s=$empire->fetch1("select * from {$dbtbpre}tkeyword where ison=0 order by id asc");
if($s[id]){
$add[title]=stripSlashes($s[keyword]).$add[title];
$empire->query("update {$dbtbpre}tkeyword set ison=1 where id='$s[id]'");
} else {
$empire->query("update {$dbtbpre}tkeyword set ison=0");
$s=$empire->fetch1("select * from {$dbtbpre}tkeyword where ison=0 order by id asc");
if($s[id]){
$add[title]=stripSlashes($s[keyword]).$add[title];
$empire->query("update {$dbtbpre}tkeyword set ison=1 where id='$s[id]'");
}
}
安装完成!
后期更改关键词标题位置:
这里面的
$add[title]=stripSlashes($s[keyword]).$add[title];
改成
$add[title]=$add[title].stripSlashes($s[keyword]);
也就是换下位置就行
stripSlashes($s[keyword]) 就是加的关键词
$add[title] 就是原来的标题
原文链接:https://www.yuepc.com/info/145228.html
技术文章 2023-09-17
技术文章 2023-09-17
技术文章 2023-09-13
技术文章 2023-09-13
技术文章 2023-09-10
技术文章 2023-09-05
技术文章 2023-09-05
技术文章 2023-09-03
技术文章 2023-09-03
技术文章 2023-09-03