The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
User-optional Replacements-based Censorship Details »» | |||||||||||||||||||||||||||
User-optional Replacements-based Censorship
Developer Last Online: Apr 2014
User-optional Replacements-based Censorship Hack
================================================ Rationale: ---------- Some of my forum members wanted a swear filter for use at work, but others didn't. I searched for a hack that could do that and I saw a similar hack ( https://vborg.vbsupport.ru/showthread.php?t=53640 ) by 006 but that's for vB 2.2.* and I have vB 3.0.0. I started to look at the hack to install it but it looked significantly different from the code I had for vB, so I thought it'd be simpler to write a new version for vB 3 from scratch. This is it. Description: ------------ The "bad words" censorship filter built in to vBulletin has at least three drawbacks: 1. It's all or nothing - all users are subject to the censorship whether they choose to be or not. 2. Censored words are replaced by asterisks and are not recoverable, even if the censorship is subsequently removed. 3. There is only a single list possible, where a forum administrator may wish different censorship lists within different styles (if they relate to different fora, for example). This hack is a solution. Based upon the built-in Replacement Variables system, this hack enables individual users to specify whether they want to view censored posts or not. Even if the Administrator chooses not to censor his forum, individual members sometimes prefer some words to be censored because they view in an office environment and Web proxies log certain words, or because minors may be present and read the screen. Using his own "Edit Options" page, a member of your forum can turn his censorhip on or off unilaterally, and because of the way the replacements system works this is an entirely reversible operation. He can view censored posts at work, then log in at home and turn the censorship off again to view the posts as intended. Also because of the way the replacements system works, censorship should take place in thread titles as well as posts. If there are words that simply must be censored for all users, the built-in global censorship system can deal with that. Caveats: -------- Using the Replacement Variables system in this manner may preclude its use from any other function. I have no useful information relating to how much additional load this will put in your server. I would imagine it would be minimal if the list of words is short or most users have censorship turned off. Hack Information: ----------------- Queries to run: 1 Files to modify: 2 Templates to modify: 1 Phrases to add: 4 Estimated time to install hack: 5 minutes As ever, please take sensible precautions before installing this hack; back up your database and files beforehand. I have tested this hack on my own forum and my test forum and found it to be fine, but I am not responsible for the application of any hack I don't do myself. For support, please use this thread or email me if you don't get a response. Thanks. Daren "Rico" Chandisingh rico[at]justice-department.org.uk http://www.respawned.co.uk/forums/ Show Your Support
|
Comments |
#32
|
||||
|
||||
Quote:
I put the caveat in there really as I'm sure some people use the replacements for various purposes, but in general I think most people would be fine using them to implement a censorship hack. |
#33
|
||||
|
||||
Excellent. I think I'll give it a shot, then. Thanks.
|
#34
|
|||
|
|||
I really like the idea of this hack, but as you mentioned in the instructions, some odd errors may appear. I must frankly say that it is really hard to actually think of all the combinations of ( ass = donkey , password = donkeyword ) swearing / non-swearing words. There must be some way to work this out without having to sit and think of hundreds, maybe thousands of combinations? ( yes... norwegian language has a whole lot of swearing )
|
#35
|
||||
|
||||
This is very useful for me as one of my members logs on from work and constantly has pages restricted to her by 'webmarshal' software because of bad language. *installs*
|
#36
|
|||
|
|||
Nice little hack, thanks.
In regards to having part words replaced, you can solve the problem in most cases by using spaces, example: If you want "ass" replaced with "thingy" for the text to replace put <space>ass<space> then "password ass glass" would come out as "password thingy glass" rather than "pthingyword thingy glthingy" the only time this wouldn't work is if they post the word that's getting replaced as the first word in their post, but it's probally very very rare that would happen. |
#37
|
||||
|
||||
That's handy to know, Loon, thanks.
I noticed that "parse links in text" was coming out as "pdonkey links in text" on my test forum the other day. =) |
#38
|
||||
|
||||
AAhhh. Awsome! I'll have to seriously consider this when we install vb3.
I briefly read over this and am wondering if there's still a place where you can have words censored for everyone outside of the optional censorship? We sometimes censor outwar links and other various domain names. |
#39
|
||||
|
||||
You can still use the standard vBulletin censorship system, and those words would be replaced by '**********' as normal.
|
#40
|
||||
|
||||
great thanks
|
#41
|
||||
|
||||
One more suggestion, if you don't mind...
Instead of using the forum default for "bad words", why not allow users to specify their own list of words that they personally find offensive? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|