Resource icon

xF2 Beta Post Guard 2.0.0

No permission to download
Compatible XF Versions
  1. 2.0
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 Content -> Post Guards -> Manage
  • Click Add 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 -> Add 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.

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

Upgrading from XF1
This addon will successfully upgrade from the latest XF1 version.

Screenshots
Author
AnimeHaxor
Size
9.8 KB
Extension
zip
Downloads
8
Views
1,168
First release
Last update

More resources from AnimeHaxor

Similar resources

Change Post Date as an inline moderator option
0.00 star(s) 0 ratings
Downloads
36
Updated
Enable to use as default sort order view and first post reaction score under nodes
0.00 star(s) 0 ratings
Downloads
1
Updated
Jazzaaf Tweet Post AnimeHaxor
This addon will add the capability to send threads to a predefined Twitter account.
0.00 star(s) 0 ratings
Downloads
4
Updated
Maximum Smilies in a forum post per usergroup
0.00 star(s) 0 ratings
Downloads
6
Updated
Personal post notify Admin
Inform other users quickly and easily about a post.
0.00 star(s) 0 ratings
Downloads
3
Updated