The attached add-on files may be out of date. Please visit Devot-ee for the latest versions.
Hi,
Banned Phrases extension allows you to forbid to use in the website certain words or phrases and to specify how those words or phrases should be replaced.
E.g. you may want to forbid using the word “sucks” on your website. Using Banned Phrases extension you can specify the rule that the word “sucks” should be replaced with some other phrase, such as “is bad”.
Banned Phrases extension allows to specify unconditional and conditional rules. The former example is one of unconditional rule. Conditional rules are applied when some condition is met.
E.g. you may specify than on condition the string “suck” is found two rules should be applied: 1) the rule that the word “sucks” should be replaced with the phrase “is bad” and 2) the rule that the word “sucker” should be replaced with the phrase “bad guy”.
Hiya,
Looks like a great idea. I just tried it on a 1.6.8 install though and it didn’t seem to do anything. By that I mean that I added a rule and then posted a comment to an entry with a word that should have changed but when viewing the post that had gone in it still had the same word in there.
I thought it may have been because I was logged in as a Super Admin so tried it as a guest but still the same thing unfortunately.
I’m probably just missing something obvious somewhere I guess?
Best wishes,
Mark
Excellent seems to be working now 😊
Just out of interest as my Regex isn’t very good, how would you say create a rule that says if the word Poodle in either uppercase (Poodle) or lowercase (poodle) or maybe even just the word itself no matter what the case (PoOdLe) is to be converted into the word dog instead?
Best wishes,
Mark
Hi Mark, Put in the Find box this regex (letter “i” means case-insensitive):/poodle/i
Absolutely perfect, thanks.
Just as a quick aside I noticed that this extension only works on any new posts as opposed to working on existing posts. Would there ever be any way of it working on existing posts too or perhaps better still instead of changing the words as they go in just change them on displaying the post instead?
No matter if it’s not possible but just a thought.
Once again, thanks for such a great add-on.
Best wishes,
Mark
Hi Mark,
Just as a quick aside I noticed that this extension only works on any new posts as opposed to working on existing posts. Would there ever be any way of it working on existing posts too or perhaps better still instead of changing the words as they go in just change them on displaying the post instead?
For this extension to work on existing content that content must be resubmitted.
I doubt it is possible because it would involve parsing of result of the Weblog module’s query and that parsing can be very resource consuming.
Ah okay. Never-mind. I was just thinking of something like an Acronym module or something like that. This extension is great though so not a worry.
Best wishes,
Mark
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.