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 |
#22
|
||||
|
||||
Quote:
I can't think of a reason why it wouldn't be working for you off the top of my head. I haven't upgraded my forum to 3.0.1 yet, nor do I have Microstats applied. All I can say is it "should work" if you've followed the instructions correctly, to the best of my knowledge. If anyone else has had problems installing this, I'd be grateful to hear about it. |
#23
|
||||
|
||||
Ahh.. I thought it used the forum's censored words and bypassed the off switch.
My apologies.. I'm not with it at the moment.! Unfortunately, doing it via replacements censors "ass" in password for example.. Bah, it's a nice idea - but not quite what I wanted. |
#24
|
||||
|
||||
I just remembered why I disabled it for titles. The fact that, like Obliviaon Knight said, parts of words are censored, such as "ass." That's the same problem I ran into. No worries though. it's still better than the permanent *** censor. I will install this later tonight when I get home from work.
|
#25
|
||||
|
||||
Hehe, fair comment. Where I live, "ass" is more likely to mean donkey than buttocks, so I don't even regard it as a candidate for censorship.
However, if it posed a problem, an administrator should be able to get round it by using 3 replacements. For example: 1. ass -> donkey This has the undesired side-effect of changing password to "pdonkeyword" and "class" to "cldonkey". The abomination of "class" means that a lot of the CSS stuff up. However, if the admin also includes: 2. cldonkey -> class 3. pdonkeyword -> password Then everything's fine. "ass password" gets rendered as "donkey password", and all the class= definitions in the source are also correct. Whether an admin can be bothered to add a couple of extra replacements to "correct" any such problems really depends on how important the optional censorship is. |
#26
|
|||
|
|||
This is a very nice hack, i myself find it EXTREMLY aggrvating that i have to view edited ++++ even though i like to curse myself, therby not really caring if others do as well..
|
#27
|
||||
|
||||
How do I turn on filtering by default to my registered users?
|
#28
|
||||
|
||||
It doesn't appear to be working for me either and I went back and double, and triple-checked that I followed the instructions correctly. I also have 3.0.1 and Microstats installed, not sure if there's a correlation or not. It just censors words for everyone, regardless of the setting in their control panel.
I'd love to use this, we have a few potty mouths (me included) and a few others quite the opposite and this would be perfect! |
#29
|
||||
|
||||
Quote:
Code:
ALTER TABLE user ADD usereplacementscensor TINYINT(1) NOT NULL DEFAULT '0' AFTER pmunread; Code:
ALTER TABLE user ALTER COLUMN usereplacementscensor SET DEFAULT '1'; UPDATE user SET usereplacementscensor=1; |
#30
|
||||
|
||||
Quote:
|
#31
|
||||
|
||||
I'm interested in this hack, but I'm brand new to vB3 and a bit put off by the caveat that use of the replacements system in this way might preclude its use in other ways. I guess I'm asking what potential I lose by using this, since I'm not really sure what else I would use replacements for.
Thanks! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|