Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
LAM - Profanity Filter Details »
LAM - Profanity Filter
Mod Version: 4.1.4.0, by mawby (Coder) mawby is offline
Developer Last Online: Mar 2018 I like it Show Printable Version Email this Page

vB Version: 4.1.4 Rating: (6 votes - 4.83 average) Installs: 43
Released: 02 Nov 2010 Last Update: 05 Jul 2011 Downloads: 188
Not Supported Uses Plugins Re-usable Code Translations  

This product will mask out rude words on your forum, but with an option that allows the filter to be turned off by the user.

The filter works on all forum posts, threads, titles, search results and emails. There is also a BLOGs version of this product which I've extended to also filter the built-in blogs, comments, latest bits and titles. Blog support is not 100% complete yet. There are some places where no suitable hooks exist for the filter to work; blog search results being an example. Hopefully these will be fixed as and when more hooks become available. (I'd rather wait for the hooks then start giving instructions on hacking the files)

As of version 4.0.8.2 it is now possible to set a minimum age required before a user is allowed to turn off the profanity filter.

Installation
  1. Download the required .xml file
    product-LAM_product-LAM_ProfanityFilter.xml or product-LAM_ProfanityFilterBLOG.xml
  2. Install the product
    AdminCP -> Plugins & Products -> Add/Import Product -> Import Product
  3. Create the required User Profile Field
    A picture speak a thousand words....

    ...but here are the words as well!

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  4. Configure the product

Configuration

You need to configure the product to specify the Profile Field ID to use (the one created during installation). If you want to change the "Turn On" "Turn Off" labels in the profile field (e.g. for translations) then you need to change the default "Turned Off" Selection option. This product works on the basis that the filter is always on unless the user chooses to turn it off. Therefore it needs to know what to look for to determine the user has turned it off. Next is the filter mask. This is the replacement for any words which have been filtered. And finally is the list of words to filter. I've masked them out in the picture below just in case vB.org get upset.



Each user can then turn the filter off in their user cp...




Example

A user who has the profanity filter turned off can create and view posts without any alterations being made to them. For users with the profanity filter turned on this product should mask out the configured words where ever they may appear on your forum.

Here are some examples of the filter at work...










Known Issues
  • Blog search results are not filtered
  • Latest blog/comments AJAX results are not filtered

Version History

4.1.4.0 - Fixed bug which could display a no permission error when trying to create a new blog post (2011/07/05)
4.1.1.0 - Fixed HTML clobbering when filtering the word "ass" again (2011/01/17)
4.1.0.2 - Fixed vB4.0.1 not filtering search results post titles (2010/12/11)
4.1.0.1 - Fixed vB4.0.1 not filtering posts at all (2010/12/11)
4.0.8.3 - Fixed HTML clobbering when filtering the word "ass", plus optimised Blog filtering (2010/11/09)
4.0.8.2 - Added minimum age required to turn off the profanity filter
4.0.8.1 - Fix to prevent over filtering if a trailing comma is put in the filtered words list (2010/11/03)
4.0.8.0 - Initial release (2010/11/02)

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	ProfileField.jpg
Views:	105
Size:	74.3 KB
ID:	123331   Click image for larger version

Name:	UserCP.png
Views:	2095
Size:	8.7 KB
ID:	123333   Click image for larger version

Name:	Quotes.png
Views:	2121
Size:	14.4 KB
ID:	123336   Click image for larger version

Name:	Blog.png
Views:	2138
Size:	43.3 KB
ID:	123337  

Click image for larger version

Name:	1.png
Views:	2141
Size:	64.7 KB
ID:	123334   Click image for larger version

Name:	NewPosts.png
Views:	2101
Size:	15.3 KB
ID:	123335   Click image for larger version

Name:	Admin.png
Views:	1946
Size:	56.6 KB
ID:	123332  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
New Posting Features LAM - Dispute Resolution mawby vBulletin 4.x Add-ons 109 18 Feb 2013 18:14
Private Messages Enhancements LAM - PM Security Notice mawby vBulletin 4.x Add-ons 34 30 Jul 2012 18:29
Statistics Modifications LAM - Lifetime Statistics mawby vBulletin 4.x Add-ons 27 28 Mar 2012 07:27

Comments
  #2  
Old 02 Nov 2010, 13:52
sulasno sulasno is offline
 
Join Date: Feb 2010
tagged and thanks

is it possible for the Admin to turn on the filter instead of allowing the users ?
Reply With Quote
  #3  
Old 02 Nov 2010, 13:59
mawby mawby is offline
 
Join Date: Jun 2004
As it works at the moment, the filter is always on unless turned off by a user. It would require a few changes to make it work the other way around, but I'd look into it if there was enough demand.

If you only want the admin to change the setting then you can set the profile field to not be user editable.
__________________
The mkiv Supra Owners Club
Reply With Quote
  #4  
Old 02 Nov 2010, 15:06
sulasno sulasno is offline
 
Join Date: Feb 2010
thanks for the tip
Reply With Quote
  #5  
Old 02 Nov 2010, 15:21
x9751's Avatar
x9751 x9751 is offline
 
Join Date: Dec 2009
Real name: Troy
Pretty cool Will probably install I wanted to turn my filter on but people complained saying they are "mature" enough for it to be turned off... anyway thanks. taged
__________________
Reply With Quote
  #6  
Old 02 Nov 2010, 22:12
tafreeh's Avatar
tafreeh tafreeh is offline
 
Join Date: May 2008
Location: Canada
Real name: DON
nice one.. but can you give an option where we can define filter what word to what?

for example:

right now its gonna convert all the bad words to whatever is in filter mask field. What I want is an option where we can define; convert what word to what.
eg: apple will convert to orange or blue will convert to black

The reason I am asking this is to reduce the amount of wyrd typos I get to see at my forum.

Thanks
__________________
Vb Forum
Reply With Quote
  #7  
Old 03 Nov 2010, 01:55
inshooter inshooter is offline
 
Join Date: Oct 2010
I get this when it is turned on...all throughout the forum links

$#@!p$#@! $#@!cl$#@!$#@!="$#@!lastposttitle$#@!"> <$#@!a$#@! $#@!href$#@!="$#@!showthread$#@!.$#@!php$#@!?$#@!40$#@!-$#@!I$#@!-$#@!read$#@!-$#@!the$#@!-$#@!rules$#@!...&$#@!amp$#@!;$#@!goto$#@!=$#@!newpost$#@!" $#@!cl$#@!$#@!="$#@!threadtitle$#@!" $#@!$#@!le$#@!="$#@!Go$#@! $#@!to$#@! $#@!first$#@! $#@!unread$#@! $#@!post$#@! $#@!in$#@! $#@!thread$#@! '$#@!I$#@! $#@!read$#@! $#@!the$#@! $#@!rules$#@!...'">$#@!I$#@! $#@!read$#@! $#@!the$#@! $#@!rules$#@!... <$#@!a$#@! $#@!href$#@!="$#@!showthread$#@!.$#@!php$#@!?$#@!40$#@!-$#@!I$#@!-$#@!read$#@!-$#@!the$#@!-$#@!rules$#@!...&$#@!amp$#@!;$#@!p$#@!=$#@!316$#@!#$#@!post316$#@!"><$#@!img$#@! $#@!src$#@!="$#@!images$#@!/$#@!shades_of_green$#@!/$#@!buttons$#@!/$#@!lastpost$#@!-$#@!right$#@!.$#@!png$#@!" $#@!alt$#@!="$#@!Go$#@! $#@!to$#@! $#@!last$#@! $#@!post$#@!" /> <$#@!div$#@! $#@!cl$#@!$#@!="$#@!lastpostby$#@!"> $#@!by$#@! <$#@!div$#@! $#@!cl$#@!$#@!="$#@!popupmenu$#@! $#@!memberaction$#@!"> <$#@!a$#@! $#@!cl$#@!$#@!="$#@!username$#@! $#@!offline$#@! $#@!popupctrl$#@!" $#@!href$#@!="$#@!member$#@!.$#@!php$#@!?$#@!11$#@!-$#@!Que$#@!" $#@!$#@!le$#@!="$#@!Que$#@! $#@!is$#@! $#@!offline$#@!"><$#@!strong$#@!>$#@!Que$#@! <$#@!ul$#@! $#@!cl$#@!$#@!="$#@!popupbody$#@! $#@!popuphover$#@! $#@!memberaction_body$#@!"> <$#@!li$#@! $#@!cl$#@!$#@!="$#@!left$#@!"> <$#@!img$#@! $#@!src$#@!="$#@!images$#@!/$#@!shades_of_green$#@!/$#@!site_icons$#@!/$#@!profile$#@!.$#@!png$#@!" $#@!alt$#@!="" /> <$#@!a$#@! $#@!href$#@!="$#@!member$#@!.$#@!php$#@!?$#@!11$#@!-$#@!Que$#@!"> $#@!View$#@! $#@!Profile$#@! <$#@!li$#@! $#@!cl$#@!$#@!="$#@!right$#@!"> <$#@!img$#@! $#@!src$#@!="$#@!images$#@!/$#@!shades_of_green$#@!/$#@!site_icons$#@!/$#@!forum$#@!.$#@!png$#@!" $#@!alt$#@!="" /> <$#@!a$#@! $#@!href$#@!="$#@!search$#@!.$#@!php$#@!?$#@!do$#@!=$#@!finduser$#@!&$#@!amp$#@! ;$#@!userid$#@!=$#@!11$#@!&$#@!amp$#@!;$#@!contenttype$#@!=$#@!vBForum_Post$#@!& $#@!amp$#@!;$#@!showposts$#@!=$#@!1$#@!" $#@!rel$#@!='$#@!nofollow$#@!'> $#@!View$#@! $#@!Forum$#@! $#@!Posts$#@! <$#@!li$#@! $#@!cl$#@!$#@!="$#@!left$#@!"> <$#@!img$#@! $#@!src$#@!="$#@!images$#@!/$#@!shades_of_green$#@!/$#@!site_icons$#@!/$#@!message$#@!.$#@!png$#@!" $#@!alt$#@!="" /> <$#@!a$#@! $#@!href$#@!="$#@!private$#@!.$#@!php$#@!?$#@!do$#@!=$#@!newpm$#@!&$#@!amp$#@!;$ #@!u$#@!=$#@!11$#@!" $#@!rel$#@!='$#@!nofollow$#@!'> $#@!Private$#@! $#@!Message$#@! <$#@!li$#@! $#@!cl$#@!$#@!="$#@!left$#@!"> <$#@!img$#@! $#@!src$#@!="$#@!images$#@!/$#@!shades_of_green$#@!/$#@!site_icons$#@!/$#@!add$#@!.$#@!png$#@!" $#@!alt$#@!="" /> <$#@!a$#@! $#@!href$#@!="$#@!profile$#@!.$#@!php$#@!?$#@!do$#@!=$#@!addlist$#@!&$#@!amp$#@! ;$#@!userlist$#@!=$#@!buddy$#@!&$#@!amp$#@!;$#@!u$#@!=$#@!11$#@!"> $#@!Add$#@! $#@!as$#@! $#@!Contact$#@! <$#@!p$#@! $#@!cl$#@!$#@!="$#@!lastpostdate$#@!">$#@!October$#@! $#@!29th$#@!, $#@!2010$#@!, <$#@!span$#@! $#@!cl$#@!$#@!="$#@!time$#@!">$#@!21$#@!:$#@
Reply With Quote
  #8  
Old 03 Nov 2010, 04:38
sulasno sulasno is offline
 
Join Date: Feb 2010
Originally Posted by tafreeh View Post
nice one.. but can you give an option where we can define filter what word to what?

for example:

right now its gonna convert all the bad words to whatever is in filter mask field. What I want is an option where we can define; convert what word to what.
eg: apple will convert to orange or blue will convert to black

The reason I am asking this is to reduce the amount of wyrd typos I get to see at my forum.

Thanks
good idea

I did not use the built in censor since all the words will be converted to ****
but this mod allows me to select the mask

the ability to select the mask for different words would be a winner !
Reply With Quote
  #9  
Old 03 Nov 2010, 08:17
mawby mawby is offline
 
Join Date: Jun 2004
Originally Posted by tafreeh View Post
nice one.. but can you give an option where we can define filter what word to what?
That wouldn't be too difficult, I'll add it to the to-do list for now though as first I need to fix...

Originally Posted by inshooter View Post
I get this when it is turned on...all throughout the forum links
What words do you have in the "filter words" list? Thinking about it, does your "Filter Words" have a trailing comma by any chance?
__________________
The mkiv Supra Owners Club
Reply With Quote
  #10  
Old 03 Nov 2010, 08:40
mawby mawby is offline
 
Join Date: Jun 2004
Originally Posted by inshooter View Post
I get this when it is turned on...all throughout the forum links
Originally Posted by mawby View Post
Thinking about it, does your "Filter Words" have a trailing comma by any chance?
I've tested this and having a filtered words list like "word1,word2,word3," or "word1,word2,,word3" would cause the problem you've described. I've updated to product to stop this from happening. Can you try the update and let me know if it fixes your problem please?

You will, however, still get a problem if your filtered words list contains a space like "word1,word2, ,word3" but in this situation I think it quite reasonable for the filter to start replacing all spaces as that's what its been configured to do - so I'm not going to fix that one.
__________________
The mkiv Supra Owners Club
Reply With Quote
  #11  
Old 03 Nov 2010, 11:27
x9751's Avatar
x9751 x9751 is offline
 
Join Date: Dec 2009
Real name: Troy
Would be cool if their was an age option where they could only turn it off if they where a certain age or in a certain usergroup.
__________________
Reply With Quote
  #12  
Old 03 Nov 2010, 12:52
mawby mawby is offline
 
Join Date: Jun 2004
Originally Posted by x9751 View Post
Would be cool if their was an age option where they could only turn it off if they where a certain age or in a certain usergroup.
I like the age option, so I've added it.

You can now set the age in the settings...



And if the user is not old enough they will see this in their user cp...

Attached Images
File Type: png Admin.png (56.6 KB, 1858 views)
File Type: png NoPerm.png (5.4 KB, 1839 views)
__________________
The mkiv Supra Owners Club
Reply With Quote
  #13  
Old 03 Nov 2010, 14:23
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
Top mod yet again Mawby!Thanks
Reply With Quote
  #14  
Old 03 Nov 2010, 20:56
x9751's Avatar
x9751 x9751 is offline
 
Join Date: Dec 2009
Real name: Troy
Originally Posted by mawby View Post
I like the age option, so I've added it.
Niiiice Thank you
__________________
Reply With Quote
  #15  
Old 03 Nov 2010, 21:25
inshooter inshooter is offline
 
Join Date: Oct 2010
Originally Posted by mawby View Post
I've tested this and having a filtered words list like "word1,word2,word3," or "word1,word2,,word3" would cause the problem you've described. I've updated to product to stop this from happening. Can you try the update and let me know if it fixes your problem please?

You will, however, still get a problem if your filtered words list contains a space like "word1,word2, ,word3" but in this situation I think it quite reasonable for the filter to start replacing all spaces as that's what its been configured to do - so I'm not going to fix that one.
No more jibberish like before, but now it does this to all of the posts on the home screen under Last Post:



I read the rules...
by
XXXUSERXXX
View Profile
View Forum Posts
Private Message
Add as Contact
October 29th, 2010, 21:48
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:32.

Layout Options | Width: Wide Color: