MyBB Community Forums

Full Version: Word filters should cooperate with username banning
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Currently in 1.x you can register with an abusive name even though it's in the word filter - it doesn't affect registration at all. To disallow it, you need to recreate the list in the Banned Usernames section either manually or by running a query. Not so easy to maintain if you add new word filters every now and then.

Solution? Combine Word Filters and Banned Usernames sections into single "Banned Words" or something like that, which would be basically the Word Filters section with 2 additional checkboxes and a peeker:
  • Ban this word from being used in an username.
  • Replace this word with a chosen phrase in user inputs such as posts and signatures - if ticked, show the Replacement textbox/textarea.

Positives:
- only 1 ACP section instead of 2 = less coding
- quicker editing for admins
- no duplicates in the database

Can't think of any negatives.
How would it work with words that should be banned from usernames but not from posts? It looks like your suggestion only works for words that can't be in posts or usernames or only can't be in posts.
(2015-05-26, 11:30 AM)Will P Wrote: [ -> ]How would it work with words that should be banned from usernames but not from posts?

By unticking the 2nd checkbox?
I agree with this, would be a lot easier to manage.
(2015-05-26, 11:31 AM)Destroy666 Wrote: [ -> ]
(2015-05-26, 11:30 AM)Will P Wrote: [ -> ]How would it work with words that should be banned from usernames but not from posts?

By unticking the 2nd checkbox?

Ah I see, so the only way to ban a word in a post is to provide a replacement phrase? Is there not some advantage to banning words outright? Not allowing a post to be submitted with that word but not providing a replacement.
Well, that feature doesn't exist in 1.x either - word filters only work during output because the parser handles them: https://github.com/mybb/mybb/search?utf8...e_badwords. We can of course add another checkbox/radio for either banning the word completely on input or replacing it on output (nothing against that), but that's not the main aspect/point of this suggestion.
+1... sounds like an mighty useful suggestion...
Hi,

Your feature suggestion has been accepted as a planned feature to be implemented in MyBB 2.0. Thanks for your contribution!