Go to the previous topic.    Go to the next topic.

Censoring bad words

You may choose to censor offensive (bad) words from your guestbook. Censoring behavior is determined by the following two lines:

$remove_bad_words = "yes";
@bad_words = ("darn");

If you would like to allow offensive words in your guestbook, set $remove_bad_words = "no";. Otherwise, leave it set to yes. You may also edit the list of those words your guestbook will consider offensive. Simply enter words you wish to censor in double quotes, separated by commas, between the parentheses after @bad_words =. For example, if you wish to censor the words "computer" and "keyboard" from your guestbook, the code will look like this:

$remove_bad_words = "yes";
@bad_words = ("computer","keyboard");