word censor

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

word censor

Beitrag von Blisk »

I notice, that word censor doesn't work anymore
i have installed
Disable Word Censor For Single Forums
and it works some time, now it doesn't anymore.
:(
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Do you have installed any other mods after this?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

yes, but I uninstall it, and there is no change.
When I put in ACP a forum not to be censored I cannot change from No to Yes, it is always NO, and it is not censored even if it is No.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Then you have make a mistake while changing the admin_forums.php.
Attach this file and I'll take a look.
Write if you wants to deinstall or install this mod.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

Don't know because I load up a version, before I made some changes (install a Mod), and it was the same. Maybe is problem in database, because 1 forum accept Yes or No, all others don't, they have only No no matther what I assign.
I think there may be somerthing with colorize forum Mod and this censor mod.
With unninstall there can't bhe something because i always have a backup of files before I change it.
here is my file
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Okay, I'll take a look later on to deinstall the remaining code blocks from the Word Censor Mod.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

no don't uninstall anything, maybe just for testing, but not for final, all others works great!
;)
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Okay, then I'll check the installation.

EDIT
I've insert one point, but I think it's not the reason for you errors.
Try it out with the attached file.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

no, doesn't work, I need this kind of hurry, because I have on forum a guy with very very bad language, and must be censored.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

So why you uninstall my mod and uses the original functions in phpBB? He may write in more than one forum.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

because in some forum bad words are allowed on most of them are not.

I did uninstall your mod, but still doesn't work a censor.
Must be something else wrong.
I cannot tell which mod disabled this censor because I installed fev after.
advanced_countdown_1_0_4
thread_kicker_102
birthday to PM
bookie_mod_200
no image quotes
smilie row corector
topic user started
verified_user_2_1_0

I did some testnig.
I did upload a total fresh phpbb2 1.5, didn't change or isntall database, but only copied a files, and tested word censor and doesn't work, so there must be something with mysql tables.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

You must run a db_update.php file which comes with the mod. Do you have use this?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

yes I did db_update, and I found a table in mysql, but when I click a yes or no, under the ACP, do you want to disable word censor, nothing happends it is always no. even when I uninstall this mod and run a fresh files of phpbb 2 plus 1.5 with no added mods and with old (existing) mysql tables, censor doesn't work.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

If you run the mod with the old tables, the mod can't save the setted value.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I did run phpbb2 1.5 withouth a disable word censor for single forums
so it should work?

I did some testing, and I notice, that censor WORKS :D
but what happend, in ACP when I setup a disable or enable it is always disable, when open ACP forum management, that confuses me.
But I think that is a litle bug.

And there is a problem with word censor, which doesnt recognize bad words like this
b.a.d.w.o.r.d. or
ba dwo rd
badwôrd
thisisabadwordwritten
or something like that, is it possible to fix that.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

1. I'll test it this WE. A thing I can't find for now.
2. Sorry, the possibilities for preg_match() and preg_replace() are to high for me. These commands will be used to find and replace text, but the codes for that... Heavy :(
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

If you have time, please check my www.povej.com in ACP, too see where is a problem.
About censor MOD I will ask author if I find it :D
TNX! have a nice night
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I found this for others who like to sofisticate theri censor

Code: Alles auswählen

############################################################## 
## MOD Title: IntelliCensor
## MOD Author: jsmotta < phpbb@rusticweb.com > (Jonathan Motta) http://www.geoclashing.com/
## MOD Description: Closes most of the loopholes users
##       find to outwit the standard word censor, without
##       increasing false positives. 
## 
## MOD Version: 1.0.0
## 
## Installation Level: Easy 
## Installation Time: ~3 Minutes
## Files To Edit: includes/functions.php
##
## Included Files: N/A
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## MOD History:
## 
## Feb 12, 2004 - Version 1.0.0
##    Mod has survived substantial testing. Changed
##    version number to signify mod is complete.
## Jan 06, 2004 - version 0.2.1
##    * added sort so that longer words get matched
##      first when poster uses spacing to break up a word
##      (i.e. if 'fu' and 'fubar' are both in the Word
##      Censor list, 'f.u.b.a.r' will match entirely.
##      Previously, IC would sometimes only catch 'f.u'.
## Jan 05, 2004 - version 0.2.0
##  - Beta Release 2, with a supercharged regex
## Jan 04, 2004 - Version 0.1.0
##  - Beta Release as just a fix for the a$$ issue.
############################################################## 
## Author Notes: 
##   For the standard Word Censor to catch the word 'fubar',
##   you must enter 'fubar' into the censor's word list.
##   However, if a forum member wants to trick the censor,
##   all they need to do is type fub@r, f u b a r, f.u.b.a.r,
##   F#U#B#A#R, f_u.b+a'r, etc, or they can enclose it in
##   BBCode, like [b]fubar[/b]. So, if 'fubar' was considered
##   a horendously offensive word on your board, you'd need
##   to enter a nearly infinite number of potential 
##   variations of the word into the censor's list. Plus,
##   the standard Word Censor has serious problems with any
##   BBCode or non-alphanumeric characters appearing at the
##   beginning or end of the censord word (i.e. pa$$),and
##   fails to ever catch those words. All of which makes
##   the standard Word Censor pretty useless.
##
##   Enter IntelliCensor. Just enter the word 'fubar' once
##   into your censored word list, and instantly IC will
##   close the door on all of the above tricks and a whole
##   lot more (yes, including the BBCode). Then, just sit
##   back, and enjoy as the usual offenders scramble to
##   find new and creative ways to cuss at each other,
##   and now probably you too. ;)
## 
##
## Final Note regarding [code]:
##   When analyzing normal conversational text, IC is
##   designed to catch censored words much better, and without
##   any more false positives, than the standard Word Censor.
##   However, if your board is the type that frequently
##   has users posting software code into their messages,
##   IC may be a little too aggressive for your tastes.
##   For instance, the variable $hit would be censored
##   every time. However, I've pasted huge blocks of phpBB2
##   source into messages to test this, and failed to have
##   it censor anything. So, you'll need to decide for
##   yourself. It may be worth it, or not.
##  
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/functions.php

# 
#-----[ FIND ]------------------------------------------ 
#
$sql = "SELECT word, replacement
                FROM  " . WORDS_TABLE;

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
$sql = "SELECT word, replacement
                FROM  " . WORDS_TABLE . " ORDER BY length(word) DESC";

# 
#-----[ FIND ]------------------------------------------ 
#
$orig_word[] = '#\b(' . str_replace('\*', '\w*?', phpbb_preg_quote($row['word'], '#')) . ')\b#i'; 
$replacement_word[] = $row['replacement'];

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
$ic_word = ''; $ic_first = 0;
$ic_chars = preg_split('//', $row['word'], -1, PREG_SPLIT_NO_EMPTY);
foreach ($ic_chars as $char) {
if (($ic_first == 1) && ($char != "*")) { $ic_word .= "_"; }
   $ic_word .= $char; $ic_first = 1;
}
$ic_search = array('\*','s','a','b','l','i','o','p','_');
$ic_replace = array('\w*?','(?:s|\$)','(?:a|\@)','(?:b|8|3)','(?:l|1|i|\!)','(?:i|1|l|\!)','(?:o|0)','(?:p|\?)','(?:_|\W)*');
$orig_word[] = '#(?<=^|\W)(' . str_replace($ic_search, $ic_replace, phpbb_preg_quote($ic_word, '#')) . ')(?=\W|$)#i';
$replacement_word[] = $row['replacement'];

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Yes, this I've installed, too, but missed the link.
This "mini"-mod works very fine!

EDIT
I've found another error on your admin_forums.php.
Now the mod really should work.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

:D TNX
now it really works!
Did I make a mistake in admin_forums???

And this mini censor MOD should work with words like b.a.d.w.o.r.d.
but on my forum doesn't.

Works that here on your forum??
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

1. You have set the default values while opening the forum settings, so this value was everytime set to NO. You've inserted one Code at the wrong place, because another mod have confused my description ;)
2. Yes, I can write any censored word in many versions, they will all be replaced. But the intelli censor word mod can't do wonders...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I have installed to many mods, but I think now I am mostly finish with mods, just a updating mods or fixing things which doesn't work.

About censor, I know there is alot trick, but in the mod said that it censor words like b.a.d.w.o.r.d. but on my forum doesn't censor that, does it on yours?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

I've tested it after installing here and it did it.
Why it will not work for you :confused:
No idea. Look on the search/replace-strings in the mod and you can unserstand me, why I can't help here...
It's tricky for me still now.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

ok, i will test more to see.

tell me, did you write a word
b.a.d.w.o.r.d.
and than replacement
goodword

or you write in badword
and
godword
Antworten