Advertisement:

Author Topic: Moderation filters  (Read 4443 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Moderation filters
« on: September 03, 2013, 07:36:36 PM »
Probably the most controversial change I added to Wedge - at least, neither of us were entirely happy with the UI but I don't think we ever found anything better.

I think it'd be cool to add to SMF but the amount of code I wrote, I'm not going to rewrite it for SMF.

Anyway, the premise is straightforward, you create rules around which moderation is applied for you.

The first picture tells the story:
- Prevent a post being made (return it to the user with an error)
- on every new post
- when there are 5 or more smileys in it
- regardless of board, user permissions or anything else

The second picture gives you an example of how it might look when returned to the user with an error before posting, the third an example of how it might look when a post has been moderated rather than prevented.

There are all kinds of uses for a system like this, you can create flexible rules for almost any community - moderation or prevention of posts based on various criteria. The idea is that a rule can contain one or any of the following criteria:
* post is in (or not in) a given board or boards
* user has a given post count
* based on warning level
* based on subject of the post
* based on content of the post
* user is in (or not in) a given group
* how many links in the post
* how many images in the post
* how many smileys in the post
* minimum/maximum characters/words in the post
(not all of these were core features but it was relatively easy to add new ones as edit-free plugins)

And because it's criteria you can daisy chain it together, for example a rule about swearing might be:
- moderate the post, when any new post is made if...
* post contains (rude word)
* and user is not an admin
* and the post is not in (list of boards that are staff only)

And so on.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

kat

  • Guest
Re: Moderation filters
« Reply #1 on: September 04, 2013, 08:57:19 AM »

Offline ѕησω

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,432
  • Gender: Male
  • Nisi credideritis, non intelligetis.
    • wade.poulsen93 on Facebook
    • acans on GitHub
    • https://www.linkedin.com/profile/view?id=145186638 on LinkedIn
    • @imacans on Twitter
    • Acans
Re: Moderation filters
« Reply #2 on: September 08, 2013, 01:27:49 AM »
"The Book of Arantor, 17:3-5
  And I said unto him, thy database query shalt always be sent by the messenger of $smcFunc
  And $smcFunc shall protect you against injections and evil
  And so it came to pass that mysql_query was declared deprecated and even though he says he is not dead yet, the time was soon to come to pass when mysql_query shall be gone and no more."