NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

Post a reply

Write your message and submit
Options
Humanity test

What is nine + six?

Go back

Topic review (newest first)

lizzie01
04-04-2009 08:28:35

Wow, this whole curse and swearing filter is so cool! I think most online users nowadays forget the real meaning of respect. It's okay to be yourself, as long as you don't "overdo" it.

Waccoon
01-10-2009 05:45:37

This is free code I got from someone else, so I'll have to take a closer look at it.  It looks like the brackets work differently than how it was described in the documentation.

I ihave a question though, how could you possibly change what it ends up in, instead of the ----?

Yup, that's easy.  I'm not sure how many options I want to hack in there, though, since you'd have to choose either a per-character replacement (such as "-" or "*" or "X"), or a keyword (such as "{bleep}").  I really don't want to add too many more options to the control panel, as it's pretty messy as it is.

squirtle_sketcher
01-09-2009 15:12:26

Ah, this is really helpful, now the admins at my oekaki won't have to go searching for those cusses xDD
Though something strange seems to be going on with the bracketed words, as the user above me said, its bleeping out some people's username in comments xD But this is really working great :]
I ihave a question though, how could you possibly change what it ends up in, instead of the ----?

Zoole
01-08-2009 20:10:22

Neat stuff! I'm a mod at SRO, where this is being tested. I noticed the censor function kicked in more frequently than it was supposed to with [bracketed] words.

If [string] is in censorwords.txt:

This:
string astring aastring aaastring stringb astringb

Becomes this:
----- a----- aa----- aaa----- stringb astringb

line 33: $content = preg_replace("@".substr($badword, 1, ($len - 2))."[^\w]@i", substr($rep, 0, (strlen($rep) - 2)).' ', $content);

There's something funky with the regex in this line that's producing matches when the word to be censored ends with a [bad word], even though it's not that word. I'm not too familiar with regular expressions or PHP, but would this work better? Looks for a boundary between an alphanumeric character and a non-alphanumeric character, so it'll ignore anything that isn't supposed to be filtered.

$content = preg_replace("@\b".substr($badword, 1, ($len - 2))."\b@i", substr($rep, 0, (strlen($rep) - 2)).' ', $content);

w00t for Wac! It's awesome that you do all this cool stuff for the oekaki community.

Rage Inflictor
01-07-2009 18:49:35

Waccoon wrote:

Pretty soon, once I get all the moderator flags switched over.  There will finally be a new moderator group below the admin group, strictly for moderating comments and a few other little things.  I'm also thinking about boosting super-admin access, so people don't have to have more than one owner on a board, which is generally a very bad thing.

Sweet, I can't wait for all of your new modifications big_smile Especially the mod flag <3
I'm kind of scared of the upgrade part, I've modified a lot of files ;_;

~*Eevee1*~
01-07-2009 18:30:11

They show up as ----
I removed a lot of words from the list since they were conflicting with sentences, and it's working a lot better now. =}
I'm curious, would adding the on/off option for a feature have to do with editing the editprofile page, functions page and editing the database only, or are there other pages that need to be altered?

twighlightschool compute
01-07-2009 13:46:12

oooooooh i see.
but when they are censored, what will they become?
is there another list to determine that?
or is it just in ****?

haha, school computers...

Waccoon
01-07-2009 03:57:48

Words in brackets are filtered less aggressively.

Let's suppose "amp" is a trendy new naughty word, and you add it to the list with brackets.  If the word appears by itself, it will be censored.  However, other words that contain it, such as "amplifier" and "ample" will not be censored.

If "amp" is added to the list without brackets, it will always be filtered out, even if it is a part of a larger word.

Twighlight
01-06-2009 18:08:11

so the words in bracket are what the badwords that are under it will turn into?

Trunksi
01-06-2009 11:19:10

big_smile ah great work waccoon!
this things will be really helpfull big_smile~
you're really amazing wink

will there also be the "leaving drawing site"-warning included?
( http://www.ninechime.com/forum/viewtopic.php?id=854
since I couldn't figure out...where to put the code lol)

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB