How to prevent spam in discuz7.2

Source: Internet
Author: User
How does discuz7.2 prevent spam posts from being deleted and sent on the forum? how can this problem be solved? I have found a lot on the discuz official website, but I cannot solve it. 1. open include/newthread. inc. php found the code: checklowerlimit ($ postcredits); add // The First Post below to the specified forum discuz7.2 how to prevent spam
Now there are a lot of spam posts on the forum. I am tired of deleting them and sending them again. what should I do? I found a lot on the discuz official website, but none of them work.

------ Solution --------------------
1. open include/newthread. inc. php.
Find the code:
Checklowerlimit ($ postcredits );


Add below

// The first post is sent to the specified star Forum
If ($ fid! = 23 & $ posts = 0)
Showmessage ("Sorry, please first go to" new report 』

Post reports in the forum before posting normally! Thank you for your cooperation! ");
// Send the first post to the end of the specified Forum


Above $ fid! = 23 specify the Forum id for your new user's first post. if you do not know the id, you can view the forum with your mouse.
Forum-23-1.html for your forum connection address.
"Newcomer report" is the name of the Forum
2. open include/newreply. inc. php (this is for Replies)
Find the code:

$ Pinvisible = $ modnewreplies? -2: 0;

Copy code
Add below

If ($ posts <1 ){
Showmessage ("Sorry, please first go to" new report 』

Post reports! ");
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.