Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Block Censored Words in Posts by BOP5 VB4 Details »
Block Censored Words in Posts by BOP5 VB4
Mod Version: 1.3, by BirdOPrey5 (IB Staff) BirdOPrey5 is offline
Developer Last Online: Jan 2020 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (8 votes - 4.50 average) Installs: 60
Released: 20 Dec 2010 Last Update: 24 Jun 2012 Downloads: 315
Not Supported Uses Plugins Re-usable Code Translations  

By BirdOPrey5 / Qapla.com

Version 1.3

For people who don't want to see censored text (******) in their posts this mod will prevent a user from even submitting a new post or thread that has any word that would be censored. They will be forced to change it or it simply won't post. (Now works on post edits as well.)

You can demo this by trying post in the Testing Forum at Qapla.com. You can try posting the "F" word or other major curse words which are censored here.

Options included to limit checking on thread titles or only post bodies, or both. Also option to use on specific forums instead of all forums on your site.

Works on all vBulletin versions out there, VB 3.6.x through 4.2.x and will work on 4.3.x I'm sure as well.

I'd like to thank kh99 for helping me find the right hook to use on this mod.


Please Mark As Installed if you use this.
Donations Always Appreciated.

English - Downloaad Zip File - V 1.3

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	blockwords_newreplyvb4.jpg
Views:	615
Size:	64.5 KB
ID:	139342   Click image for larger version

Name:	blockwords_settings.jpg
Views:	377
Size:	103.7 KB
ID:	139343  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
New Posting Features Block Censored Words in Posts by BOP5 BirdOPrey5 vBulletin 3.8 Add-ons 14 29 Sep 2015 10:56
Administrative and Maintenance Tools Auto Delete Censored Words / Make Censored Words Disappear ShackMaster Modification Graveyard 9 07 Apr 2009 17:32

  #106  
Old 02 Oct 2018, 03:37
gsk8's Avatar
gsk8 gsk8 is offline
 
Join Date: Jun 2003
So I currently have some words in my default censor account in "{}". Do I remove all these words and put them on your list? I want to be sure that when I put the word "Jap" as censored, it doesn't affect "Japan", hence, the reason for using the brackets
Reply With Quote
  #107  
Old 02 Oct 2018, 13:11
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
I would say the mod is unfortunately not compatible with that kind of usage. Sorry.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #108  
Old 21 Nov 2019, 06:14
kether1 kether1 is offline
 
Join Date: Jun 2006
Real name: Kether
Hey Joe, is this mod available for vb5?

Thanks!
K
Reply With Quote
  #109  
Old 04 Jan 2020, 14:08
sv1cec sv1cec is offline
 
Join Date: May 2004
Real name: John
Joe, I know that this is way to old a mod, and I really do not expect you to provide any support for it, but I have tried to modify the error message (phrase blockpostbop5) in order to show the censored message and the non-censored one, so that a member can see which is the foul word he used. For some reason, if I change:

standard_error($vbphrase['blockpostbop5']);

to:

standard_error($vbphrase['blockpostbop5'], $censoredpost);

for example, and I add {1} in the phrase, I get a %1$s instead of the censored post.

Any ideas would be greatly appreciated!
__________________

John
SV1CEC
Reply With Quote
  #110  
Old 04 Jan 2020, 16:22
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Hey... Don't even have a VB4 forum to test this on anymore but let's try something.

If you make the line:

standard_error($vbphrase['blockpostbop5'], "test");

Do you get test to replace the {1} in the phrase?

If yes then the problem is with $censoredpost

If not then there is another issue, perhaps more is needed for vbphrase() function.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #111  
Old 04 Jan 2020, 17:38
sv1cec sv1cec is offline
 
Join Date: May 2004
Real name: John
Nope, it still shows %1$s.

Maybe the fact that the phrase is not a Front-End error message phrase, has something to do with that? I am not sure about which kind of phrases support replaceable parameters! Or perhaps the standard_error function has an issue?
__________________

John
SV1CEC
Reply With Quote
  #112  
Old 04 Jan 2020, 18:16
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Usually when I need to find out how a vbulletin function works I search the source code for:
function functioname

Such as

function vbdate

And it has ALWAYS worked. But this time I can't seem to find any function setup of the vbphrase function. No idea why but that would be where to start looking.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #113  
Old 05 Jan 2020, 11:02
sv1cec sv1cec is offline
 
Join Date: May 2004
Real name: John
That's because vbphrase is not a function. It's a variable.

In any case, I figured out a way to solve the problem. Instead of :

standard_error($vbphrase['blockpostbop5']);


I used:

$errormessage=construct_phrase($vbphrase['blockpostbop5'], $non_censored, $censored);
standard_error($errormessage);

Of course, I have edited your phrase accordingly and added {1} and {2} for the two parameters.

Joe, many thanks for your help, appreciated!
__________________

John
SV1CEC
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 07:19.

Layout Options | Width: Wide Color: