Home > Backend Development > PHP Tutorial > discuz7.2如何防止垃圾贴

discuz7.2如何防止垃圾贴

WBOY
Release: 2016-06-13 10:18:12
Original
922 people have browsed it

discuz7.2怎么防止垃圾贴
现在论坛上好多垃圾贴,删了又发,烦了,这类该怎么处理呢?在discuz官网上找了很多,都不行,求解

------解决方案--------------------
1、找开include/newthread.inc.php
找到代码:
checklowerlimit($postcredits);


下面加入

//第一帖发到指定版块 star
if( $fid != 23 && $posts == 0 )
showmessage("对不起,请先到『新人报道』

版块发帖报道,然后才能正常发帖!谢谢合作!");
//第一帖发到指定版块 end


以上$fid != 23 为你的新用户第一帖指定版块id,如不知道id的话,你就用鼠标对着版块你就能看到。
forum-23-1.html 为你的版块连接地址。
『新人报道』为版块的名称
2、打开:include/newreply.inc.php(这个是针对回复的)
找到代码:

$pinvisible = $modnewreplies ? -2 : 0;

复制代码
下面加入

if( $posts showmessage("对不起,请先到『新人报道』

发帖报道!");
}

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template