vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   End-User Options - User Based Word Censorship (https://vborg.vbsupport.ru/showthread.php?t=236736)

crs6785 02-23-2010 10:00 PM

User Based Word Censorship
 
1 Attachment(s)
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).

Jarocks 02-24-2010 02:01 AM

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)

crs6785 02-25-2010 01:53 AM

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.

SEW810 03-01-2010 03:09 AM

any screen please?.
Thanx dude :)

CClements 07-06-2010 10:35 PM

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.

crs6785 07-21-2010 01:58 AM

Quote:

Originally Posted by CClements (Post 2065553)
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.

CClements 08-03-2010 01:12 AM

I sent a screen shot to you via PM. Thanks for taking a look at it for me.

TheKdd 08-03-2010 08:46 PM

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!

crs6785 08-07-2010 07:05 PM

Quote:

Originally Posted by TheKdd (Post 2078745)
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 (Post 2078745)
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.

steeler7 08-09-2010 01:43 AM

Quote:

Originally Posted by crs6785 (Post 2080597)
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


All times are GMT. The time now is 01:36 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.01142 seconds
  • Memory Usage 1,753KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete