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)
-   -   New Posting Features - Censor List Replacing (https://vborg.vbsupport.ru/showthread.php?t=166011)

alexgeek 12-23-2007 10:00 PM

Censor List Replacing
 
My first product! This product will take a list of words and replace the first with the second in an easy to manage way.
This can be enabled and disabled and whilst disabled all words changed will reverse back to the original.
Also, whilst editing posts the original words will still be there as they are replaced at runtime.

This should be very simple to install just import the XML file and add words to your list via the admincp.

Howto add words to be replaced.
If you wanted to replace cat with dog and fish with spoon it would look like this:
cat,dog;fish,spoon

Enjoy guys and please mark as installed!

Updated
- You can now show users that can moderate the word that has been replaced.

alexgeek 12-23-2007 11:55 PM

Reserved.

ymy 12-24-2007 12:09 AM

Thanks,

Install with 3.6.7

YmY

.

silver surfer 12-24-2007 12:32 AM

Thnx !!!

Installed*

edit :

dont work 4 me...product installed, enabled and ur example words dont changed.cat was at in the post i made.

*uninstalled

aycan555 12-24-2007 12:37 AM

thanxs verri much can we use this for the links is wel??

alexgeek 12-24-2007 12:42 AM

Quote:

Originally Posted by aycan555 (Post 1408012)
thanxs verri much can we use this for the links is wel??

Do you mean can you use it to replace URLs? If so, I don't see why not but I will check on my dev server now :)

alexgeek 12-24-2007 12:46 AM

Is this working correctly for everyone?

alexgeek 12-24-2007 12:50 AM

Quote:

Originally Posted by silver surfer (Post 1408009)
Thnx !!!

Installed*

edit :

dont work 4 me...product installed, enabled and ur example words dont changed.cat was at in the post i made.

*uninstalled

Could you check if the plugin is enabled?

Bflat5 12-24-2007 01:00 AM

Too cool! I came here specifically to see if I could find something just like this and it was the first post here! :)

Installed and works. Seems to be a lag in the way it works though. When you post a message it shows the words you want changed, but a page refresh shows the words you want them changed to. Not a big deal though.

alexgeek 12-24-2007 01:13 AM

Update with an improved version.

Updates:
- Carriage return after a semi-colon will not affect results and semi-colon after the last entry does not make a difference.
e.g. Both of the following will work:
Code:

cat,dog;fish,spoon
Code:

cat,dog;
fish,spoon;

- People who it didn't work for - it should work now.

alexgeek 12-24-2007 01:14 AM

Quote:

Originally Posted by Bflat5 (Post 1408024)
Too cool! I came here specifically to see if I could find something just like this and it was the first post here! :)

Installed and works. Seems to be a lag in the way it works though. When you post a message it shows the words you want changed, but a page refresh shows the words you want them changed to. Not a big deal though.

Glad I could help! This is my first mod so it won't be perfect.
I'll have a see on how I can improve that then!

Bflat5 12-24-2007 03:53 AM

Good job on your first mod. I have always wondered why this wasn't the way the word censor work anyway.

Thanks again. :)

alexgeek 12-24-2007 08:35 AM

You're welcome, thanks for the kind words :)

Hornstar 12-24-2007 09:52 AM

Thanks, if this will work on links, then that will be awesome! Thanks.

Just wondering tho, how heavy is this hack on the server? (on a very large and busy site)

Marco van Herwaarden 12-24-2007 09:54 AM

Quote:

Originally Posted by Bflat5 (Post 1408094)
Good job on your first mod. I have always wondered why this wasn't the way the word censor work anyway.

Thanks again. :)

Because it is a censor. To replace words with a different word with only default vBulletin, you should use Replacement variables.

alexgeek 12-24-2007 10:18 AM

Quote:

Originally Posted by Marco van Herwaarden (Post 1408252)
Because it is a censor. To replace words with a different word with only default vBulletin, you should use Replacement variables.

I created this as a faster method than replacement variables (They take ages to put up multiple replacements).

cheech47 12-26-2007 07:34 PM

Where in the admincp do you edit the list, looked under censorship options but cant see where im meant to edit the lists

Cheers

alexgeek 12-27-2007 09:50 PM

Should be towards the bottom of the options list, "Censor Replacement List".

s3nt3nc3d 01-06-2008 12:59 AM

I will be installing this later tonight on my test forum...was just curious, is it possible to replace multiple words when used together? I'd like to use this for replacing racial slurs and such.

For example:

"porch" and "monkey" alone are two harmless words and do not need replaced, however, I would like to replace "porch monkey" with something that won't spark a huge fight.

Thanks! If this works out well, I think it'll be a very popular mod.

bp323 01-08-2008 05:06 AM

attempted install & failed to have it work... the original replacement variables still overrode my input.

testebr 01-13-2008 08:30 PM

Can you avoid url's to replacing?

AcidX 01-13-2008 09:21 PM

Installed it on 3.6.3 - doesn't work.
Product and censoring is enabled.

Damn I need this mod.

z0diac 01-13-2008 09:49 PM

Does this work only with "FULL" words. eg: will it check for spaces on each side of the word or will it replace partial parts? eg: if I enter cat,dog and someone types the word "catch", I don't want it changed to "dogch"

The reason I ask is that in my forum people use acronyms a lot when talking about other forum members (my name is alphadog and many people just say "AD" so I'd like this to auto-change to the full name). Just want to make sure it will change only full words with spaces before/after the string, and not start changing partial text inside words.

z0diac 01-13-2008 09:55 PM

Tested on 3.6.8 - not working.

I have in my replacement list:

IGT,ItsGameTime;
AD,AlphaDog;
GDG;GoDogsGo;
WDF;WellandDogsFan;
IDA;IceDogArmy;

when I enter IGT, AD, etc... in a message - it appears just as I entered it.

AcidX 01-14-2008 11:54 AM

I would be most thankful if someone can get this mod to work on 3.6.3 :(
But it seems it's not working on any vBulletin version... Help anyone?

kiril_cvetkov 01-14-2008 02:39 PM

it's working good :)

bp323 01-14-2008 04:49 PM

help x2

alexgeek 01-14-2008 06:42 PM

Quote:

Originally Posted by z0diac (Post 1420881)
Does this work only with "FULL" words. eg: will it check for spaces on each side of the word or will it replace partial parts? eg: if I enter cat,dog and someone types the word "catch", I don't want it changed to "dogch"

The reason I ask is that in my forum people use acronyms a lot when talking about other forum members (my name is alphadog and many people just say "AD" so I'd like this to auto-change to the full name). Just want to make sure it will change only full words with spaces before/after the string, and not start changing partial text inside words.

yes it will replace catch with dogch.

Quote:

Originally Posted by z0diac (Post 1420883)
Tested on 3.6.8 - not working.

I have in my replacement list:

IGT,ItsGameTime;
AD,AlphaDog;
GDG;GoDogsGo;
WDF;WellandDogsFan;
IDA;IceDogArmy;

when I enter IGT, AD, etc... in a message - it appears just as I entered it.

Quote:

Originally Posted by AcidX (Post 1421183)
I would be most thankful if someone can get this mod to work on 3.6.3 :(
But it seems it's not working on any vBulletin version... Help anyone?

To both: Please try debugging by using the "show replacements to moderators" option.

AcidX 01-14-2008 09:06 PM

Quote:

Originally Posted by alexgeek (Post 1421407)
To both: Please try debugging by using the "show replacements to moderators" option.

I tried it now, doesn't seem to work :( Any other ideas?
I desperately need to get this great mod working. :erm:

alexgeek 01-15-2008 04:00 PM

Post your censor list please. And the contents a post you have used to test it.

katan 01-19-2008 12:55 AM

thanks you!!!

HT | Clark [HG] 10-24-2008 07:38 PM

Is this compatible with 3.7?

donald200 10-31-2008 10:13 AM

working for 3.7.3

speakeasy media 11-07-2008 01:29 AM

Works in 3.7.1 PL2! Loads of fun!

Anyoldname 01-17-2009 11:47 AM

Anyone know if this will work with 3.8.0?
Also, is it possible that the replacement can also be a link? For example, can I do this?:
Quote:

Censor List Replacing,<a href="https://vborg.vbsupport.ru/showthread.php?t=166011">Censor List Replacing</a>;

Pokerbanter 01-22-2009 08:13 AM

I would like to know if it will censor "u" or "b" or "n" on their own or if they will screw up a number of words/HTML.

For example if I have u,you; b,be Will it change youtube to yoyoutyoubee???

Alfa1 01-22-2009 01:44 PM

Quote:

Originally Posted by Pokerbanter (Post 1720986)
I would like to know if it will censor "u" or "b" or "n" on their own or if they will screw up a number of words/HTML.

For example if I have u,you; b,be Will it change youtube to yoyoutyoubee???

It replaces letters, while ignoring spaces. This means that it would change 'youtube' to 'yoyoutyoubee'. Even if you would add spaces and define the replacement as ' u , you;'. It ignores the spaces. It does not ignore words that have replacements in them.

I tried it on my board and it completely screws up my board, because of this.

Pokerbanter 01-23-2009 08:47 PM

Quote:

Originally Posted by Alfa1 (Post 1721185)
It replaces letters, while ignoring spaces. This means that it would change 'youtube' to 'yoyoutyoubee'. Even if you would add spaces and define the replacement as ' u , you;'. It ignores the spaces. It does not ignore words that have replacements in them.

I tried it on my board and it completely screws up my board, because of this.

Yes I tested it myself and you are right. Disabled it for now. Doubt this feature will ever be available and it is kinda essential to my board. At the moment we are having to moderate manually :(

Alfa1 01-24-2009 12:37 AM

vb4 will have SEO functionality and James has requested to get suggestions for SEO, so I requested this functionality here:Global replacements

Aadil 01-29-2009 07:20 AM

anyone can confirm this works with 3.8


All times are GMT. The time now is 02:06 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.04378 seconds
  • Memory Usage 1,816KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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