1
   

phpBB word censor on overtime!

 
 
Reply Wed 2 Jul, 2003 09:29 am
Hi Guys!
I would rather post here than phpBB.com - mostly because I get lost and confused there!
Has anyone else experienced overactive word censors on phpbb? as an example, my word "document" is getting bleeped and it comes out as do*bleep*ment - yup, the 3 letters c u m are wiped out. Yes, that 3 letter word is in my censor list, however there are no wildcards before or after in the word censor list, i.e. it is those 3 letters alone.
I think I actually deleted the word - not worth the headaches, and document is a common word, but then i just posted the word "scraped" and it happend again - for yet another word that begins with c - c r a p
and again, there were no wild cards.
is this a quick fix, or a horror show?
Thanks for any info!
Gary
UPDATE: I'm getting way too comfortable here - the answer was on phpbb - happened after the 2.04 (or possibly 2.03 upgrade)
anyway:

Open up includes/functions.php. Online 506, find:

Code:
$orig_word[] = '#(' . str_replace('\*', '\w*?', phpbb_preg_quote($row['word'], '#')) . ')#i';


And replace with:

Code:
$orig_word[] = '#\b(' . str_replace('\*', '\w*?', phpbb_preg_quote($row['word'], '#')) . ')\b#i';

this can be found at http://www.phpbb.com/phpBB/viewtopic.php?t=111984&highlight=word+censor
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 1 • Views: 6,008 • Replies: 1
No top replies

 
DrewDad
 
  1  
Reply Fri 17 Mar, 2006 12:35 pm
****
0 Replies
 
 

Related Topics

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » phpBB word censor on overtime!
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.45 seconds on 04/25/2024 at 02:35:20