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
  #2  
Old 02-24-2010, 02:01 AM
Jarocks Jarocks is offline
 
Join Date: May 2008
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Definately installing this, Will edit this post after it's been tested at my site.

This will help me let parents keep users from seeing censored words!!!

(Marked As Installed)
Reply With Quote
  #3  
Old 02-25-2010, 01:53 AM
crs6785 crs6785 is offline
 
Join Date: Feb 2010
Location: WI
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fixed an issue in the group discussion plugin. Also added another plugin to cover censoring some pages that use the $pagetitle global variable.

I'm curious as to how this plugin performs on a moderate/large sized forum. Since it has to censor words in cached text, I'm guessing it might slow down loading cached posts. I'm curious if the delay/resources used is noticeable on a busy forum.
Reply With Quote
  #4  
Old 03-01-2010, 03:09 AM
SEW810's Avatar
SEW810 SEW810 is offline
 
Join Date: Mar 2008
Location: M?xico City
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any screen please?.
Thanx dude
Reply With Quote
  #5  
Old 07-06-2010, 10:35 PM
CClements CClements is offline
 
Join Date: Jun 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance for a vb4 release? I tried installing this with vb 4.0.4 and it didn't work so well. Whenever I enabled censored words through my user profile, I got a screen full of code. I really like the idea, though, so I hope you can release a vb4 version if you have the time.
Reply With Quote
  #6  
Old 07-21-2010, 01:58 AM
crs6785 crs6785 is offline
 
Join Date: Feb 2010
Location: WI
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CClements View Post
Any chance for a vb4 release? I tried installing this with vb 4.0.4 and it didn't work so well. Whenever I enabled censored words through my user profile, I got a screen full of code. I really like the idea, though, so I hope you can release a vb4 version if you have the time.
Interesting...what do you mean by screen full of code? You can PM the message/screenshot to me if you like.

I just tested the plugin with VB 4.0.5 and didn't see an issue like that when toggling the option in my profile. However, it could be that there is an issue with the logic that creates the custom user field, as it is created manually when the product is installed. That's just a guess though.

While I was testing VB 4 I also fixed the censoring in the forum bits plugin since it was changed a bit in VB 4. I'll still check if I can reproduce the issue with the option in the profile. If not I'll just upload the new version soon.
Reply With Quote
  #7  
Old 08-03-2010, 01:12 AM
CClements CClements is offline
 
Join Date: Jun 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I sent a screen shot to you via PM. Thanks for taking a look at it for me.
Reply With Quote
  #8  
Old 08-03-2010, 08:46 PM
TheKdd TheKdd is offline
 
Join Date: Oct 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Couple of questions....

So with this mod I could censor, say, all profanity (that I can come up with lol), then the user themselves would be able to decide whether they want it on or off? That's exactly what I'm looking for if that's the case. I just want to make sure I understand this correctly

Second question... is censorship globally enabled automatically, and then the user can then decide they want it off or is it auto off, and the user can go turn it on? Also, for guests viewing, would the censorship be auto-on for them as well until they join and then they can turn it off? If not, is it possible to do this?

Thanks so much, sorry for all the questions!
Reply With Quote
  #9  
Old 08-07-2010, 07:05 PM
crs6785 crs6785 is offline
 
Join Date: Feb 2010
Location: WI
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheKdd View Post
Couple of questions....

So with this mod I could censor, say, all profanity (that I can come up with lol), then the user themselves would be able to decide whether they want it on or off? That's exactly what I'm looking for if that's the case. I just want to make sure I understand this correctly
Yup, that's correct.

Quote:
Originally Posted by TheKdd View Post
Second question... is censorship globally enabled automatically, and then the user can then decide they want it off or is it auto off, and the user can go turn it on? Also, for guests viewing, would the censorship be auto-on for them as well until they join and then they can turn it off? If not, is it possible to do this?
Currently I have it set so censorship is disabled by default for users when you install the product. You can change it if you want, but you'll need to edit the product manually before installing it. You would need to edit the following line of the install code...

Code:
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "userfield ADD field{$profilefield_id} INT NOT NULL DEFAULT '1';");
And change the 1 near the end to a 0. So it would look like this ...

Code:
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "userfield ADD field{$profilefield_id} INT NOT NULL DEFAULT '0';");
They can go into their profile at anytime then to change the censorship status. You can also set an option in the AdminCP to decide whether you want censorship enabled or disabled for new users (this will not change the option for current users).

You can also toggle censorship on or off for visitors from an option in the AdminCP. By default it is set to not censor text for visitors (easily changed though, like I mentioned).

I will be releasing a new version soon with some fixes for vbulletin4. I'm pretty sure I fixed the bug CClements pointed out. If I don't hear back in a week I'll post the new version since I'm pretty confident it's fixed.
Reply With Quote
  #10  
Old 08-09-2010, 01:43 AM
steeler7 steeler7 is offline
 
Join Date: Oct 2009
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by crs6785 View Post
Yup, that's correct.



Currently I have it set so censorship is disabled by default for users when you install the product. You can change it if you want, but you'll need to edit the product manually before installing it. You would need to edit the following line of the install code...

Code:
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "userfield ADD field{$profilefield_id} INT NOT NULL DEFAULT '1';");
And change the 1 near the end to a 0. So it would look like this ...

Code:
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "userfield ADD field{$profilefield_id} INT NOT NULL DEFAULT '0';");
They can go into their profile at anytime then to change the censorship status. You can also set an option in the AdminCP to decide whether you want censorship enabled or disabled for new users (this will not change the option for current users).

You can also toggle censorship on or off for visitors from an option in the AdminCP. By default it is set to not censor text for visitors (easily changed though, like I mentioned).

I will be releasing a new version soon with some fixes for vbulletin4. I'm pretty sure I fixed the bug CClements pointed out. If I don't hear back in a week I'll post the new version since I'm pretty confident it's fixed.
Awesome! I've been looking for this when I had 3.8.4 and didn't see it and now that I upgraded to 4 I thought there was a slim chance to find this.

Thanks. I'm looking forward to the vB 4 release of this
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:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04680 seconds
  • Memory Usage 2,336KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_code
  • (4)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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