• 本站招聘各个版块版主共同发展,有意可私聊站长
资源图标

[WMTech] Post Guard (basic) 2.0.0

没有下载权限

庆祝国庆中秋本站暂时关闭邀请码注册 https://t.me/tearcc

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.



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



Upgrading from XF1


This addon will successfully upgrade from the latest XF1 version.



Screenshots

161539-a928c925e8823b262d74a0efed0b22d5.jpg
161540-d496fc2ac9947f13cf61095c0ca7c2fc.jpg
作者
无名
下载
0
查看
4
首次发布
最后更新

Ratings

0.00 星 0 星

来自无名的更多资源

后退
顶部