vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   The BEST Swear Word Modification Possible (https://vborg.vbsupport.ru/showthread.php?t=62969)

BlackxRam 03-26-2004 05:04 AM

The BEST Swear Word Modification Possible
 
This was a feature on MANY phpbb's back in the day in the form of an add-on or a general feature. I can't remember which.

However this is how it goes. You can set aside words with a swear filter just fine, but instead of only assigning a replacement text per letter you can assign the swear word to be replaced by its OWN word. For example.

If someone said the "f" word on a forum and it was censored out, that word would instead by RETYPED as "frick"

If someone typed the word "fag" and it was censored out it would be replaced by something like "girly-man" something like that. It could really make things funny if you have someone on the forums who tends to cuss alot and use obscenities.

Anyone here feel qualified to take this on? I would but i have no clue how to start.

base 03-26-2004 03:08 PM

you could just use replacements for this i guess. take into account though that the replacements will happen all over the board, for example - thread titles, usernames etc etc

Stray 03-26-2004 08:59 PM

phpbb still has this as a standard feature, it is very useful and it can be very funny

base 03-26-2004 09:11 PM

this is still standard in vbulletin also.

Tigerdude 03-27-2004 01:47 AM

Quote:

Originally Posted by base
this is still standard in vbulletin also.

How is this done?

base 03-27-2004 01:56 PM

admin cp > styles & templates > replacement variable manager.

but like i said, i think it will parse the replaced text everywhere on your board, so be careful what words you choose to replace.

Tigerdude 03-27-2004 10:45 PM

Quote:

Originally Posted by base
admin cp > styles & templates > replacement variable manager.

but like i said, i think it will parse the replaced text everywhere on your board, so be careful what words you choose to replace.

Will this feature just search for a word and replace it with another when I run it or will it automatically always replace one word with another?

NTLDR 03-27-2004 10:53 PM

It will replace all instances of that string, so if I wanted to replace other with test, another would become antest. These replacements will run through all the HTML just before its sent to thr browser.

BlackxRam 03-28-2004 01:59 AM

HOLY CRAP!!!! I didnt know it would do that. LOL Ill get on this right away.

Is there a way for it to IGNORE VB CODE? Like my users by pass the swear filters and other things by putting an empty vbcode string inbetween the letters of the word.. so the flter doesnt pick it up.

NTLDR 03-28-2004 04:00 PM

Not without modification to the Replacements system.

tjdrico 04-13-2004 08:42 PM

Quote:

Originally Posted by NTLDR
Not without modification to the Replacements system.

Where does the replacement actually get done? I'd like the make the use of the replacements a User Profile option, so users may choose whether to be censored or not.

NTLDR 04-13-2004 08:47 PM

In includes/functions.php within the process_replacement_vars(); function.

tjdrico 04-13-2004 09:29 PM

Marvellous, all done, thanks.

mantra 05-31-2004 11:50 PM

Strangely on our site its just filtering out CHAT with space. I am not sure where its set to banned that word but I dont know why its filtering it out.

Where is the option to see what words are filtered or banned in VB3? I removed something from 1 location but it didn't have word chat in filter.

please pm me if you can help.


All times are GMT. The time now is 10:30 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.02113 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete