Gossamer Forum
Home : Products : DBMan : Customization :

Dirty word censor on 1 field only?

Quote Reply
Dirty word censor on 1 field only?
Is it possible to have the censor only check 1 field? If so, what do I need to change?

Thanks


DBMan SQL Version 1 mods available at:
http://dbmansqlmods.rainbowroomies.com
(Mods based on JPDeni's original mods.)
Quote Reply
Re: [shann123] Dirty word censor on 1 field only? In reply to
Fair warning: haven't tried this, but...

in db.cgi look for the:

####################
# Censoring routine
####################

and replace: $in{$col}

with: $in{'Whatever Field Name You Want'}

also be aware that $col appears by itself in an error message so you'll have to type in the field name manually (or change "$col (Includes a banned word -- $dirty_word)");

to "$in{'Field Name'} (Includes a banned word -- $dirty_word)");

Try this and see if it works - if it doesn't you can always change it back.

Good Luck!