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

观点

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

限制织梦会员每天投稿数量方法

时间:2020-12-15

经常有人提问怎么限制会员每天发稿数量,之前在网上转载过一篇类似文章,大家留言说不能用

我自己就写了这段代码,在我本地上测试成功,群里人也反映可以用,就把这段代码分享给大家,有需要的不妨试一试



第一步:打开member/article_add.php文件
 
二步:在大约39行处找到以下代码
else if($dopost=="save")
{
 
第三步:在 { 中添加以下代码
 

$memberarcnum = $dsql->GetOne("SELECT count(*) FROM `dede_archives` WHERE mid='".$cfg_ml->M_ID."' AND FROM_UNIXTIME(senddate,'%Y-%m-%d') = curdate()");
//判断当前投稿数量是否大于3篇

if($memberarcnum['count(*)'] > 3)
{
    ShowMsg("对不起,您所在会员组每日只可投稿3篇!","/member/content_list.php?channelid=1");
    exit();
}


$memberarcnum['count(*)'] > 3  ,3这个数字可以任意修改,就是限制会员每天只可以发布3条
0
首页
案例
关于
联系