Extended Censor Mod

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply

Rating:

Excellent!
0
No votes
Very Good
0
No votes
Good
0
No votes
Fair
0
No votes
Poor
0
No votes
 
Total votes: 0

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 27856
Joined: Sat Aug 16, 2003 7:36 am

Extended Censor Mod

Post by Extensions Robot » Fri Jun 16, 2006 8:22 pm

MOD Name: Extended Censor Mod
Author: wiccaan
MOD Description: ECM allows you to add censoring to profile input lines all around your board. Including Webpage, location, contact methods, and so on.

MOD Version: 1.2.0 (Updated 08/13/06)
Tested on phpBB Version: 2.0.21

Download File: ECM 1.2.0a.mod
mods overview page: View
File Size: 12715 Bytes



Support for this MOD needs to be asked within this topic. The phpBB Teams are not responsible or required to give anyone support for this MOD. By installing this MOD, the phpBB Support Team or phpBB MODifications Team may not be able to provide support.

This MOD has only been tested by the phpBB MOD Team with the phpBB version in the topic title. It may not work in any other versions of phpBB.
Last edited by Extensions Robot on Mon Apr 30, 2007 12:30 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

User avatar
webmacster87
Former Team Member
Posts: 3758
Joined: Fri Jun 11, 2004 2:30 am
Location: San Mateo, CA
Name: Douglas Bell
Contact:

Post by webmacster87 » Mon Jul 10, 2006 4:10 am

MOD Validated/Released

Notes:
Applies phpBB's word censoring to various fields in the profile, specifically Location, Occupation, Interests, AIM, Yahoo! IM, MSNM, and Websites. There is a possibility of IM names getting messed up with this MOD, but this is probably desirable to some admins who don't want to see inappropriate language in these fields. ;)

wiccaan
Registered User
Posts: 75
Joined: Wed May 12, 2004 12:33 am

Post by wiccaan » Mon Jul 10, 2006 6:10 am

:o wow, I wasnt expecting to see this actually get validated...

Well since I submitted it, my fellow webmaster and I have found area's to add to this so Ill try to post an update soon :)

wiccaan
Registered User
Posts: 75
Joined: Wed May 12, 2004 12:33 am

Post by wiccaan » Mon Jul 10, 2006 9:00 am

To anyone that uses the extended user class system by Kooky, found here: http://www.myphpbb.zaup.org/ you may want to use this small edit to his level_list.php file.

A simple mod, should take less then 5 minutes for you to add this edit:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
level_list.php
#
#-----[ FIND ]------------------------------------------
#

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

#
#-----[ AFTER, ADD ]------------------------------------------
#

//--[ Extended Censoring Mod Start ]-----------------------------------------------------
// Define censored word matches
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);
//--[ Extended Censoring Mod End ]-------------------------------------------------------

#
#-----[ FIND ]------------------------------------------
#

if ( $row = $db->sql_fetchrow($result) )
{
	$i = 0;
	do
	{
		$username = $row['username'];
		$user_id = $row['user_id'];

#
#-----[ AFTER, ADD ]------------------------------------------
#

//--[ Extended Censoring Mod Start ]-----------------------------------------------------
		$row['user_from'] = preg_replace($orig_word, '', $row['user_from']);
		$row['user_email'] = preg_replace($orig_word, '', $row['user_email']);
		$row['user_website'] = preg_replace($orig_word, $replacement_word, $row['user_website']);
		$row['user_aim'] = preg_replace($orig_word, '',  $row['user_aim']);
		$row['user_msnm'] = preg_replace($orig_word, '',  $row['user_msnm']);
		$row['user_yim'] = preg_replace($orig_word, '',  $row['user_yim']);
//--[ Extended Censoring Mod End ]-------------------------------------------------------


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

nycore
Registered User
Posts: 185
Joined: Tue Apr 05, 2005 10:45 pm
Location: NYC
Contact:

Post by nycore » Sat Jul 15, 2006 3:28 am

Any instructs on how to use this? Installed with EasyMod but dont see any new features / options anywhere

wiccaan
Registered User
Posts: 75
Joined: Wed May 12, 2004 12:33 am

Post by wiccaan » Sun Jul 16, 2006 9:36 pm

nycore wrote: Any instructs on how to use this? Installed with EasyMod but dont see any new features / options anywhere


There isnt any way to turn it on / off. Its just on at all times.

What it does is takes the Censored word list and expands whats censored on your forums. Instead of just changing bad words in posts, it extends to much more.

It will censor things inside URL tags killing bad links that are against your censored rule list, as well as remove bad worded email, AIM, MSN, Email, ect publicly viewable to anyone on your forums.

Once its installed your done. Just add words to your censored list and your done.

nycore
Registered User
Posts: 185
Joined: Tue Apr 05, 2005 10:45 pm
Location: NYC
Contact:

Post by nycore » Mon Jul 17, 2006 12:58 am

wiccaan wrote:
nycore wrote:Any instructs on how to use this? Installed with EasyMod but dont see any new features / options anywhere


There isnt any way to turn it on / off. Its just on at all times.

What it does is takes the Censored word list and expands whats censored on your forums. Instead of just changing bad words in posts, it extends to much more.

It will censor things inside URL tags killing bad links that are against your censored rule list, as well as remove bad worded email, AIM, MSN, Email, ect publicly viewable to anyone on your forums.

Once its installed your done. Just add words to your censored list and your done.


I thought that was the idea but Ive noticed some links sneaking through. The link itself appears edited but the "replaced" word with the link contains the correct URL. Isnt the link itself supposed to be replaced?

wiccaan
Registered User
Posts: 75
Joined: Wed May 12, 2004 12:33 am

Post by wiccaan » Fri Jul 21, 2006 7:57 pm

Yes, the link gets replaced. Ill look into it, I use it on my forums and its working fine for me right now. So Ill have to install it somewhere else to test it.

The part that replaces the link itself is in the bbcode.php file.

The code in the mod is:

Code: Select all

//--[ Extended Censoring Mod Start ]-----------------------------------------------------
	// Define censored word matches
	$orig_word = array();
	$replacement_word = array();
	obtain_word_list($orig_word, $replacement_word);
	$text = preg_replace($orig_word, $replacement_word, $text);
//--[ Extended Censoring Mod End ]-------------------------------------------------------
I updated the code some to include a few more files, just waiting for it to get updated and validated.

nycore
Registered User
Posts: 185
Joined: Tue Apr 05, 2005 10:45 pm
Location: NYC
Contact:

Post by nycore » Sat Jul 22, 2006 2:21 am

I did notice that it seems to work on new posts but it was the older posts (before the MOD) that werent always edited. Seems weird since its all from a database but so far all new posts are fully edited. I was mistaken

User avatar
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 » Sun Aug 13, 2006 12:13 pm

MOD Updated to version 1.2.0
See first post for Download Link

tchjts1
Registered User
Posts: 10
Joined: Mon Jul 31, 2006 11:09 pm
Contact:

Post by tchjts1 » Mon Aug 14, 2006 6:09 pm

wiccaan wrote: What it does is takes the Censored word list and expands whats censored on your forums. Instead of just changing bad words in posts, it extends to much more.

It will censor things inside URL tags killing bad links that are against your censored rule list, as well as remove bad worded email, AIM, MSN, Email, ect publicly viewable to anyone on your forums.


So, if I read this right - it will help deal with all the spammers who register just to put up their www sites for porn, pharmacy, viagra, xanax, swingers, etc?

If they put a link in their profile and it has any of those words in the censored word list, it will "kill" the link?

(Update) I've installed this mod and it works great for breaking the spammer links. I tranform words like viagra, porn, etc into "ice cream".

A nice update to the mod would be if we could specify which field we want to apply specific words to. For instance, while we get a lot of www spammers putting links for "meds" and "debt", we still would like for our members to be able to use those words in regular posts. So it would be nice to specify certain words being censored in the www field, but not affect the posting field.

travelingSPAM
Registered User
Posts: 42
Joined: Mon May 01, 2006 12:44 pm

Re: Extended Censor Mod

Post by travelingSPAM » Thu Apr 05, 2007 12:01 am

Can we get an updated download link??

User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: Extended Censor Mod

Post by Raimon » Thu Apr 05, 2007 10:53 am

Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!

uncle_fatz
Registered User
Posts: 1
Joined: Mon Jul 02, 2007 12:43 pm

Re: Extended Censor Mod

Post by uncle_fatz » Mon Jul 02, 2007 12:55 pm

Hi folks,
just a questions before I go through the work installing this mod:
Is it possible to instantly delete users using 'spam words' in eg. their homepage field?
If not, does anyone know a mod that is capable of this?

I have a lot of spammers registering in our forum and currently getting rid of this guys is a lot of boring handwork.

Thanks,
Franz

Post Reply

Return to “[2.0.x] MOD Database Releases”

Who is online

Users browsing this forum: No registered users and 16 guests