Advertisement:

Author Topic: Block Censored Words  (Read 6534 times)

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Block Censored Words
« on: December 11, 2013, 12:25:07 PM »
Link to Mod


Block Censored Words

This MODification gives you the option to block the post to be sent if a censored word is detected. SMF's default behaviour replaces "bad words" with your mask but allows the post to go through. With this, the post cannot be sent and an error message is issued.

Languages:
     - English

Changelog
Code: [Select]
Version 1.00 // 02-12-2013
================================================================================
+ First release

Legend:
--------------------------------------------------------------------------------
 ! Minor change or bugfix.
 + Feature addition or improvement.
 - Feature or option removal.

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline Burke ♞ Knight

  • SMF Hero
  • ******
  • Posts: 3,534
Re: Block Censored Words
« Reply #1 on: December 11, 2013, 12:31:37 PM »
Very nice mod idea. :)

Keep up the great work, and hope to see many more great mods from you, my friend. :)

Offline Colin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,879
  • Gender: Male
  • SMF Developer
    • colinschoen on GitHub
Re: Block Censored Words
« Reply #2 on: December 11, 2013, 12:33:38 PM »
Indeed very useful.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Offline rogueplanet

  • Semi-Newbie
  • *
  • Posts: 31
Re: Block Censored Words
« Reply #3 on: December 23, 2013, 06:09:14 AM »
thank you very much for the  :)
A small suggestion for a future update - the ability to change the refusal message from within the admin, I know it can be done via editing the language file but it would be neater to do it via the admin but again, many thanks for this :)

Offline MrMike

  • Full Member
  • ***
  • Posts: 649
    • BotScout.com - Bust Those Bots!
Re: Block Censored Words
« Reply #4 on: February 01, 2014, 10:13:04 AM »
GREAT modification!

I can only think of one possible improvement, and that would be to have a checkbox by each word that allows blocking on a word-by-word basis. In other words, you could censor some words and block others entirely.

Other than that I think this mod is perfect.

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Block Censored Words
« Reply #5 on: February 01, 2014, 11:51:15 AM »
Thank you all for your comments.

MrMike, I understand your idea and, while it should be doable, it's basically a new and much different modification as the changes are terribly different.

About the change of the message in the admin panel, it's actually very easy to implement. I'm just not sure that is actually useful to add a new database field because of something that will become static...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline Wellwisher

  • Full Member
  • ***
  • Posts: 402
  • Gender: Male
Re: Block Censored Words
« Reply #6 on: March 06, 2016, 10:15:03 PM »
Apologise for resurrecting an old topic, I was actually looking for this type of mod but is it possible to show which word is blocked once they submit the post so users are not left second guessing? Also does this mod still work on 2.0.11  :laugh:

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Block Censored Words
« Reply #7 on: March 13, 2016, 07:27:28 AM »
Not with the correct incarnation of the MOD. It should be "easy" to do it I suppose, but I need to look at it for a while.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline Wellwisher

  • Full Member
  • ***
  • Posts: 402
  • Gender: Male
Re: Block Censored Words
« Reply #8 on: March 13, 2016, 09:23:40 AM »
Not with the correct incarnation of the MOD. It should be "easy" to do it I suppose, but I need to look at it for a while.

The reason why I asked was because when I first implemented the censor system (mainly to stop ad-publishers whinning about NSFW content) some of my members got pissed off or would inadvertently blame their phones/ devices "auto-correct" feature.  :P

If members could get some sort of an "alert" or "warning" before posting (that their x-word will be censored), they would relax more. xD

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Block Censored Words
« Reply #9 on: March 13, 2016, 08:37:05 PM »
No, before submission clearly not as this is only evaluated at that time.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair