Bad Words Censorship on Reviews

Anything about the script that does not fit in the other categories.

Bad Words Censorship on Reviews

Postby WebMasterJorge » 2006-04-27 12:09 am

Can you add bad words censorship on reviews? I've been getting tons of drama from the members of my top sites list, because theirs lots of people who keep on using bad words and profanity to write bad reviews about the sites. If you could add a censorship feature for the reviews section, it would help a lot. A top sites list with word censorship would be perfect because theirs a lot of sites out their who prefer keeping it clean when it comes to content.
WebMasterJorge
Advanced Member
 
Posts: 149
Joined: 2005-04-11 02:15 am

Postby Jeremy » 2006-04-27 12:53 pm

i'll try to put it in the next version.
Jeremy
Supreme Diety
 
Posts: 8922
Joined: 2003-05-05 04:41 pm
Location: NJ, USA

Postby devman » 2006-05-07 06:09 pm

That would be a great feature perhaps something like below can be used:
Code: Select all
$badWords=array("loser","badword2")
$review=str_replace($badWords,"###",$review);


Now all badwords are replaced with ### even yourealoser will turn into youra###. It could also be enhanced by treating upper- and lowercase as same so LoSeR will also be ### and the words could be in an external file like badwords.php.

Just an idea..
devman
Advanced Member
 
Posts: 87
Joined: 2006-05-04 07:04 am

Postby Jeremy » 2006-05-07 08:12 pm

i'll probably use regex so it catches different cases
Jeremy
Supreme Diety
 
Posts: 8922
Joined: 2003-05-05 04:41 pm
Location: NJ, USA


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron