XenForo has a nice built in function to censor words when displaying messages. Unlike the XenForo word censoring function, the replacements made by this versatile add-on is permanently committed into posted messages. The replacement is occurring at the moment when someone makes a post.
- Compatible XF Versions:
- Visible Branding:
The benefits of using a regular expression instead of a fixed word is that the possibilities are vast. A regular expression is a compact way of describing sets of strings which conform to a pattern.
For example, if you have users on your forum repeatedly ending forum posts with a mantra like Sent from my XPhone using my app you can easily define a single regular expression that matches that kind of comment. (Even if XPhone should be an YPhone or whatever)
You can also define patterns that replaces all URLs, all email addresses or whatever you can think of.
Settings are made within Options->Censoring (At the end)"
View attachment 8958
Note that this is an advanced add-on that requires some knowledge of using and testing regular expressions. Improperly used it may replace text in posts that you didn't intend to replace. If You are not sure about exactly what the regular expressions that you define are doing, you are advised to ask someone who knows.
This is a very new add-on and it is in Beta stage. I've only been trying it out on my own web site but with good results. Try it out but check that it's working so that it's replacing text that it shouldn't. In the beginning I recommend that you enter a replacement string in the options, just so that you can see that something has been replaced. There are some examples provided that you may use but you should check by yourself that they are working as expected.
The replacement is occurring at the moment when someone makes a post. It doesn't alter old posts. If You need to clean up your old posts I recommend that you have a look at the nice add-on Post Content Find /Replace.
If You try my add-on out, please write a line in the discussion thread and tell me how it's working. Also if you like it, please rate it. If You encounter any problems, please use the discussion thread and I will try to help you out.
This add-on is free but comes with a small branding in the footer. If you want to remove the branding you can do so by a donation. Any amount above $0,01 is completely optional and completely appreciated. After donating, pleasePM me for branding removal instructions.
Donating gives you the right to remove the branding from one installation on one forum.
To the fullest extent permitted at law, I will not be liable for damages arising out of or in connection with the use of this add-on or the examples and documentation provided. This is a comprehensive limitation of liability that applies to all damages of any kind, including (without limitation) direct, indirect compensatory or consequential damages, loss of data, loss of income or profit, loss of or damage to property and claims of third parties.
- You must like to download this resource "Dont forget Like it under Overview tab"
Beta Advanced Censoring (Post Content Replacement) 0.9.1
Censoring posts using regular expressions. Helps prevent spam