vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Replacement Words In Posts (https://vborg.vbsupport.ru/showthread.php?t=149118)

harmor19 06-06-2007 10:00 PM

Replacement Words In Posts
 
A few members were asking for a better censor system when it came to replacing bad words with good words.

This hack will replace any word you specify even if the word in question is typed with random uppercase and lowercase letters.
It still can be circumvented but I guess that's why you have moderators.


Installing
Download the product XML. Go into to your ACP --> Plugins & Products --> Manage Products click "[Add/Import Product]". Browse to product-ah_word_replace.xml and click "Import".

Settings
ACP --> vBulletin Options --> Censorship Options
There should be two new options titled "Word Replacements (Find)" and "Word Replacements (Replace)".

gtsch 06-07-2007 09:18 AM

what about replacement variables?

harmor19 06-07-2007 09:21 AM

I'll explain how it works.
Let's say you had these words for "Word Replacements (Find)".
suck|bad|whatsup

Now for "Word Replacements (Replace)"
stink|good|hello
================================================== ===

This message "whatsup you suck bad"
Will now be "hello you stink good".

harmor19 06-07-2007 09:22 AM

Quote:

Originally Posted by gtsch (Post 1263075)
what about replacement variables?

Replacement variables replace a word no matter where it is. This hack only replaces words in the posts.

Luky 06-07-2007 09:55 AM

This is working or not? It seems you are asking how tog et it to work, not releasing.. so im confused.

harmor19 06-07-2007 10:00 AM

Quote:

Originally Posted by Luky (Post 1263099)
This is working or not? It seems you are asking how tog et it to work, not releasing.. so im confused.

It's working. I just need help wording the descriptions in the vBulletin Options.

deezelpope 06-07-2007 10:03 AM

<i>I think it looks fine as it is...it's pretty self-explanatory, IMO.</i>

Charlie98902 06-07-2007 11:43 AM

Thanks harmor19

*******Clicks Installed******

Will there be one to not sensor globally? Like specify where this can and can't work later?

Hornstar 06-07-2007 11:45 AM

Arr cooool ^^ so i can change the swear word 'fu**' to 'beep' so if they type this: get fu**ed it will say: get beeped

Is that correct. and i can make as many as i like?

That means this also has seo benefits ^^

If someone types in slang or abbreviations, then this will be able to expand that to full, and will benefit your site ^^

Great work.

Sofia 06-07-2007 02:48 PM

Thanks a lot, harmor :)

But, i have vb 3.6.5 and your hack doesn't work :(

When i put the bad words in a post, the good words don"t replace the bad words. And in vbulletin options, i've separated words by "|", as you say.

Any idea ?

Jessi 06-07-2007 03:29 PM

Quote:

Originally Posted by Sofia (Post 1263308)
Thanks a lot, harmor :)

But, i have vb 3.6.5 and your hack doesn't work :(

When i put the bad words in a post, the good words don"t replace the bad words. And in vbulletin options, i've separated words by "|", as you say.

Any idea ?

Did you rebuild your post cache?

Luky 06-07-2007 04:02 PM

Quote:

Originally Posted by harmor19 (Post 1263103)
It's working. I just need help wording the descriptions in the vBulletin Options.

You should make it one big text box and like this, seperate different entries by new line

Badword|Good word!
replace me|with me!

etc..

COBRAws 06-07-2007 05:03 PM

Can I replace words case sensitive?

For example

hello|bye
Hello|Bye

Thanks

lostgirl815 06-07-2007 06:12 PM

Wow, I lost all hope of this ever being available - thanks!

If I'm using the censorship-per-forum hack, will this only change the words in the forums that are censored?

harmor19 06-07-2007 06:29 PM

Quote:

Originally Posted by Sofia (Post 1263308)
Thanks a lot, harmor :)

But, i have vb 3.6.5 and your hack doesn't work :(

When i put the bad words in a post, the good words don"t replace the bad words. And in vbulletin options, i've separated words by "|", as you say.

Any idea ?

Are you putting the bad words in the first text area and the good words in the bottom textarea?



Quote:

Originally Posted by COBRAws (Post 1263398)
Can I replace words case sensitive?

For example

hello|bye
Hello|Bye

Thanks

Yes.

harmor19 06-07-2007 06:34 PM

Quote:

Originally Posted by lostgirl815 (Post 1263457)
Wow, I lost all hope of this ever being available - thanks!

If I'm using the censorship-per-forum hack, will this only change the words in the forums that are censored?

I'd imagine it would.

harmor19 06-07-2007 07:17 PM

Quote:

Originally Posted by Luky (Post 1263350)
You should make it one big text box and like this, seperate different entries by new line

Badword|Good word!
replace me|with me!

etc..

I wanted to use badword => goodword but I don't know what code to write to produce [badword] => goodword

lostgirl815 06-07-2007 07:26 PM

Ok - I'll let you know if it did when I install it, which will be later tonight. :)

Luky 06-07-2007 07:51 PM

Quote:

Originally Posted by harmor19 (Post 1263530)
I wanted to use badword => goodword but I don't know what code to write to produce [badword] => goodword

Ask in the coding section on these forums ^^

harmor19 06-07-2007 07:56 PM

Quote:

Originally Posted by Luky (Post 1263574)
Ask in the coding section on these forums ^^

I'll keep trying to solve it on my own first. If I can't by this weekend I'll ask for help.

COBRAws 06-07-2007 08:32 PM

Im having a problem, all capital letters are turn into lowercase. :S

harmor19 06-07-2007 08:39 PM

Quote:

Originally Posted by COBRAws (Post 1263606)
Im having a problem, all capital letters are turn into lowercase. :S

I'm sorry about that. If I remove the code then you'll have to write every possible combination of the bad word. eg. bad|Bad|bAd|baD|BAd|

I'll see what I can do.

Charlie98902 06-07-2007 08:44 PM

Quote:

Originally Posted by lostgirl815 (Post 1263457)
Wow, I lost all hope of this ever being available - thanks!

If I'm using the censorship-per-forum hack, will this only change the words in the forums that are censored?

Off topic but thanks for the direction to this as I wanted that. :D

COBRAws 06-07-2007 08:46 PM

I have a 12 letter word :P kinda dificult to do that lol

I'll wait for a next release, if it happens.

Really good mod ;) Just needs a little bugfix

Hornstar 06-07-2007 09:51 PM

Quote:

Originally Posted by COBRAws (Post 1263614)
I have a 12 letter word :P kinda dificult to do that lol

I'll wait for a next release, if it happens.

Really good mod ;) Just needs a little bugfix

What is the bug for the 12 letter words?

harmor19 06-07-2007 10:00 PM

Quote:

Originally Posted by hornstar1337 (Post 1263653)
What is the bug for the 12 letter words?

The only bug so far is that it converts any uppercase letter to lowercase.

rjmjr69 06-08-2007 01:30 AM

When does it decide to replace the words? Cause I've tried and tried but the words stay the same

harmor19 06-08-2007 01:38 AM

Quote:

Originally Posted by rjmjr69 (Post 1263800)
When does it decide to replace the words? Cause I've tried and tried but the words stay the same

It should replace them automatically. What are the words you're using?

Dream 06-08-2007 01:42 AM

This sounds like a fun mod to use :)

edit: lol this mod is awesome, Im gonna have some good laughs with this

AzzidReign 06-08-2007 02:02 AM

Dude, this is awesome!! Thanks for this hack!

stwilson 06-08-2007 02:31 AM

Hmmm. I am having the same problem as some others posted. I put the target words in the first block and the replacement words in the second, with the | in between each word. I have censorship turned on. I post up and nothing has been replaced. I am on 3.6.7 PL1 and PHP 5 and MYSQL 5. Any suggestions.

harmor19 06-08-2007 03:28 AM

Quote:

Originally Posted by stwilson (Post 1263836)
Hmmm. I am having the same problem as some others posted. I put the target words in the first block and the replacement words in the second, with the | in between each word. I have censorship turned on. I post up and nothing has been replaced. I am on 3.6.7 PL1 and PHP 5 and MYSQL 5. Any suggestions.

I don't have 3.6.7 PL1 or those server environments to test this hack on.

Dream 06-08-2007 03:59 AM

Weird, this stopped working after I uninstalled v3 arcade, now it lowercases all posts but doesn't replace the words.

edit: I removed this mod and it fixed my posts being lowercased

rjmjr69 06-08-2007 04:00 AM

Quote:

Originally Posted by harmor19 (Post 1263805)
It should replace them automatically. What are the words you're using?

LOL I'm actually using the test words you have. I've also tried a few 4 letter words that did not work.

TTG 06-08-2007 07:39 AM

Had to remove this .. all my forum posts were altered to lower case.
Running 3.6.7

projectego 06-08-2007 08:05 AM

Thank you very much! This is awesome! :D

Sofia 06-08-2007 09:05 AM

Quote:

Originally Posted by harmor19 (Post 1263474)
Are you putting the bad words in the first text area and the good words in the bottom textarea?

Yes, of course. Bad words in the first area and good words in the second one; and words separated by a "|".

Sofia 06-08-2007 09:19 AM

Quote:

Originally Posted by Sofia (Post 1263965)
Yes, of course. Bad words in the first area and good words in the second one; and words separated by a "|".

I'm going to try to resolve this problem :p

dotJoel 06-09-2007 03:10 PM

looks like a great mod. i'll come back too it once it has been developed a little further.

Regards,

Joel

rjmjr69 06-10-2007 08:16 AM

I had to uninstall it was not doing anything noticeable. Will keep track for further updates and resolutions.


All times are GMT. The time now is 05:31 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.03232 seconds
  • Memory Usage 1,817KB
  • 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
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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