• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Post Guard 1.1.4

No permission to download
Compatible XF 1.x versions
1.0, 1.1, 1.2, 1.3, 1.4, 1.5
License
BSD 3-clause
Introduction
XenForo prevents users from creating posts with no content. However there may be other types of invalid posts that you wish to prevent.

Description
This add-on allows you to specify invalid posts using regular expressions, or "post guards". If a user attempts to submit a post which matches one of your post guards, it will fail and they will receive an error message that you specify for that post guard. You can also set guards for thread titles.

Instructions
  • In admin, go to Applications -> Post Guards -> Manage
  • Click Create Post Guard.
  • Give the post guard a Label which describes what it does, a Regex that matches an invalid post, an Error Phrase that should be returned to a user if the guard is triggered, and an Applies To to set whether the guard applies to post content or thread title content.
  • Create a phrase with the name you specified (Appearance -> Phrases -> Create New Phrase), with the desired content.
    Important: this phrase should NOT be made in Master with the Add-on field set. Only add the phrase to a subordinate language (e.g. English). Alternatively, you can add it to Master with the Add-on field left blank. This is to prevent phrase loss during add-on upgrades.
The regex should match PCRE (php) style.

Some useful regex may be listed in the FAQ for this resource.

Screenshots
View attachment 159101 View attachment 159102
Author
Yugensoft
Downloads
31
First release
Last update
Rating
5.00 star(s) 2 ratings

More resources from Yugensoft

Latest updates

  1. v1.1.4

    Fix Narrowed title checking to new thread creation / title editing only
  2. v1.1.3

    Fix: Removed leading newline character
  3. v1.1.2

    Fix: Removed retroactive action on thread titles

Latest reviews

With this addon you can force your members to post as you desire. For example use line breaks, no short posts, block links to specific sites, block specific terms, etc. The possibilities are endless. An error message will inform your members exactly what they need to do. It greatly improves post quality. I use this in combination with Post Friction on my big board.

Highly Recommended!
This addon works great agains spammer, in creating new post / even editing existing post. You just need to know the correct regex. Life safer for every admin.