Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User Based Word Censorship Details »»
User Based Word Censorship
Version: 0.4, by crs6785 crs6785 is offline
Developer Last Online: May 2011 Show Printable Version Email this Page

Category: End-User Options - Version: 3.8.x Rating:
Released: 02-23-2010 Last Update: 08-09-2010 Installs: 27
DB Changes Uses Plugins
Re-useable Code  
No support by the author.

Info:

This mod allows a user to toggle word censorship from an option in their profile.

The following areas are covered by this mod:
  • Forum lists
  • Viewing threads/posts
  • Viewing user profiles
  • Groups
  • Albums
  • Who's Online list
  • Tags
  • Searches
  • Most private message stuff
  • Usertitles
It works by disabling censorship globally (so text gets into the database uncensored) and then selectively re-enabling it if the user has censorship enabled in their profile.

Installation:

Enable word censorship in the AdminCP area under vBulletin options and configure the words to block.

Import the XML file as a product under the 'Plugin System --> Manage Products' area of the AdminCP.

By default the censorship option in their profile will be checked, which disables word censorship.

You can change some product options for this mod by selecting the 'User Censorship Options' setting group from the vBulletin Options area in the AdminCP.

Uninstalling:

If you remove this product and want to stick with the normal vBulletin censoring system, then update the post cache and clear the parsed signatures under the 'Maintenance --> Update Counters' area of the AdminCP.

Changelog:

v0.1 (2/23/10)
  • Initial release
v0.2 (2/24/10)
  • Fix the plugin that censors group discussions.
  • Add a plugin to censor the pagetitle as set by navbits.
v0.3 (2/27/10)
  • Added an option to control if words are censored for visitors/unregistered users.
  • Added an option to control the default censorship value for newly registered users.
v0.4 (8/10/10)
  • Improved support for vBulletin 4.x.x (Thanks to CClements for the bug report and testing).

Download Now

File Type: xml user_based_word_censor-0.4.xml (29.2 KB, 170 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
MD_Hacker

Comments
  #12  
Old 08-10-2010, 04:17 PM
crs6785 crs6785 is offline
 
Join Date: Feb 2010
Location: WI
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The bug with vBulletin 4.x.x has been fixed, so I've uploaded the new version. If anyone encounters any other issues with this product feel free to let me know and I'll do my best to fix it.
Reply With Quote
  #13  
Old 08-10-2010, 07:48 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really like the idea of this mod but I have a couple of questions:

1) How does it affect performance- how are the posts cached? Are only the uncensored versions cached? Are both cached? Does the last one called replace the other- etc... I could see this effectively doubling the load if it isn't implemented right...

2) Is this system able to more or less guarantee the uncensored words would never shop up for someone with censorship enabled- including in 3rd party mods like vbAdvanced CMS and the Arcade high scores?
Reply With Quote
  #14  
Old 08-10-2010, 09:23 PM
crs6785 crs6785 is offline
 
Join Date: Feb 2010
Location: WI
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
1) How does it affect performance- how are the posts cached? Are only the uncensored versions cached? Are both cached? Does the last one called replace the other- etc... I could see this effectively doubling the load if it isn't implemented right...
Only uncensored versions are cached. There are not enough hooks in place (based on my understanding of how the caching is achieved...perhaps I'm wrong though :/ ) to create a cached censored and uncensored version. That would obviously be the ideal solution. Then it could retrieve the cached censored or uncensored version depending on user specific settings. The only solutions to that problem, that I can see, involve modifying the source itself.

Regarding performance, I was wondering about that myself. I'm not sure because I haven't had any feedback from a heavily used forum that tried it and I don't have access to one to try it.

However, a while back I did a simple benchmark of the page load times for a long thread with lots of censored words. The result was ...

0.09227 seconds - With Censor
0.08614 seconds - Without Censor

Which is a 0.00613 second difference. For a short thread with not as much text/stuff to censor the difference was 0.00181 seconds. For things like profile pages, albums, and groups there wasn't a difference in load time.

Quote:
Originally Posted by BirdOPrey5 View Post
2) Is this system able to more or less guarantee the uncensored words would never shop up for someone with censorship enabled- including in 3rd party mods like vbAdvanced CMS and the Arcade high scores?
There was only one spot in the private message system where there wasn't enough hooks to censor something (PM page titles or something like that...), other than that I think I pretty much covered it all.

Things in 3rd party mods would probably just come across uncensored. A global, fool proof solution, to having censorship controlled as a user based option is going to require rewriting a lot of stuff in vbulletin. It simply wasn't designed with that in mind.
Reply With Quote
  #15  
Old 08-10-2010, 11:18 PM
CClements CClements is offline
 
Join Date: Jun 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BirdOPrey5,

This mod is definitely worth a shot if user-based censorship is what you are going for. :up:

I don't run a heavily trafficked site, but the mod works great on mine. Plus the "more experienced" generation of members on my board really appreciate not having to read all the foul language on the board.

Download it and give it a shot. See what happens.
Reply With Quote
  #16  
Old 08-11-2010, 12:12 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem is I don't (can't) have obscene language showing up in my vbadvanced homepage or my arcade high scores or some other place I'm not thinking of- besides the bad light it would shed on the board and offended members I think it would red-flag the site in some web filtering programs as an 'adult' or worse, 'racist/hate' site and knock out visibility to many of my members who browse from work.

I'm all for the idea of user-based censorship but I can't take the chance of having uncensored parts of my page- my uses will find them. As is I have a mod that disables the word censor per forum id so we have a private 'anything goes' forum but no one can accidentally access it nor is it crawled by search or indexing spiders.
Reply With Quote
  #17  
Old 08-11-2010, 02:16 AM
CClements CClements is offline
 
Join Date: Jun 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know how it will handle vbadvanced because I don't have it installed, but I do have ibproarcade installed. I'll check and see if it censors anything in the arcade high scores...
Reply With Quote
  #18  
Old 08-11-2010, 02:20 AM
CClements CClements is offline
 
Join Date: Jun 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It censors the words in the ibproarcade high scores. :up:
Reply With Quote
  #19  
Old 08-11-2010, 02:59 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.
Reply With Quote
  #20  
Old 08-11-2010, 09:11 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CClements View Post
It censors the words in the ibproarcade high scores. :up:
Quote:
Originally Posted by BirdOPrey5 View Post
Thanks.
... but you're using v3 Arcade.

EDIT: I'll install a test copy somewhere to test it. If it isn't currently working as expected, then I'll put a change in so it does.
Reply With Quote
  #21  
Old 08-11-2010, 09:46 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KW802 View Post
... but you're using v3 Arcade.

EDIT: I'll install a test copy somewhere to test it. If it isn't currently working as expected, then I'll put a change in so it does.
I know but it was the thought that counted.

I don't have the arcade on my test install... if I decide to go this way I'll try it.

You have any guess on if it would work on VBadvanced?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 12:35 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05508 seconds
  • Memory Usage 2,335KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete