<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-09

DEDECMS一般都是在会员发表完之后就把积分加上去了,对于文章投稿方式来说肯定不受用,万一来个灌水的,那分就high了去了,因此我们需要对这套系统进行修改,具体修改方法如下:

  第一步是在会员发表完文章之后不加积分,方法为:找到/member/article_add.php,找到//增加积分,将下面的代码注释或者删除掉。

1 //增加积分
2  //$dsql->ExecuteNoneQuery("Update `dede_member` set scores=scores+{$cfg_sendarc_scores} where mid='".$cfg_ml->M_ID."' ; ");

 

 第二步是找到后台审核文章的文件,即/dede/archives_do.php,找到审核文档的函数,function checkArchives(),然后找到$aid = $row['id'];,在下面添加:

1 //审核后增加积分
2 $dsql->ExecuteNoneQuery("UPDATE `xc_member` set scores=scores+{$cfg_sendarc_scores} WHERE mid=(SELECT mid FROM `js_arctiny` where id='$aid')");


接下来就可以了,对于其他栏目来说,比如图片或者什么的,按照这个方法类推就可以了。

0
首页
案例
关于
联系