vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   User-optional Replacements-based Censorship (https://vborg.vbsupport.ru/showthread.php?t=63875)

tjdrico 04-20-2004 04:17 PM

Quote:

Originally Posted by Oblivion Knight
It doesn't appear to be working for me.. :(

I'm using 3.0.1.. The Microstats hack also touches the same area of code in includes/functions.php, but I don't think that's the cause of it. The censor is disabled in the Admin CP, and tested on my account to enable the censor option - and the words are still visible uncensored..

Any ideas?

This hack doesn't use the vBulletin censorship system at all, so that would make no difference at all whether it's on or off. To get words filtered or replaced using this hack you must enter each one into the Replacement Variables system. It's a bit of a pain if you have a long list of words, but it is flexible and means that rather than have just asterisks (as with the vB censorship system) you can replace one word with another. For example, m*therf**ker could be replaced by muddyfunster.

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.

Oblivion Knight 04-20-2004 04:22 PM

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.

007 04-21-2004 01:13 PM

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. :)

tjdrico 04-21-2004 01:54 PM

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.

Eternal2u 04-25-2004 07:27 AM

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..

Curll 05-01-2004 11:13 PM

How do I turn on filtering by default to my registered users?

zsmom 05-04-2004 05:11 AM

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!

tjdrico 05-05-2004 06:46 PM

Quote:

Originally Posted by Curll
How do I turn on filtering by default to my registered users?

You can do this by using the following SQL instead of the line in the instructions:

Code:

ALTER TABLE user ADD usereplacementscensor TINYINT(1) NOT NULL DEFAULT '0' AFTER pmunread;
If you have already added this new column, you can set all the existing users to use the censorship by default using this:

Code:

ALTER TABLE user ALTER COLUMN usereplacementscensor SET DEFAULT '1';

UPDATE user SET usereplacementscensor=1;

This will set everyone to be using the censorship filter, and make it the default for all new users. Anyone that had it turned off will have to turn it off again if they want it that way.

tjdrico 05-05-2004 06:48 PM

Quote:

Originally Posted by zsmom
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!

I'm not sure about this as I don't have Microstats installed. If you give me a link ti the appropriate release thread I'll take a look at installing it and see if I can work out what the problem is.

zetetic 05-08-2004 04:41 PM

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!


All times are GMT. The time now is 06:54 AM.

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.03656 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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