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 05-11-2004 11:58 AM

Quote:

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

Well, if you have to ask, you're probably not likely to be affected. =) I haven't yet had any use for replacements, but you could use them to... um... alter the pages in some way. e.g. replacing "<body " with "<body onLoad=..." -- that's something you could do with templates though. Or, say, "someword" with one of those "sponsored links" things. I don't know what else people use the replacements for generally.

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.

zetetic 05-11-2004 01:19 PM

Excellent. I think I'll give it a shot, then. Thanks. :)

jcr 05-15-2004 03:17 AM

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 )

moonclamp 05-28-2004 07:16 PM

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*

Loon 06-01-2004 05:32 PM

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.

tjdrico 06-06-2004 03:43 PM

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

forumdude 06-09-2004 08:07 PM

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.

tjdrico 06-09-2004 08:14 PM

You can still use the standard vBulletin censorship system, and those words would be replaced by '**********' as normal.

forumdude 06-09-2004 08:16 PM

great thanks

FASherman 06-10-2004 04:29 PM

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?


All times are GMT. The time now is 07:56 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.01345 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)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