Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Block Censored Words in Posts by BOP5 VB4 Details »»
Block Censored Words in Posts by BOP5 VB4
Version: 1.3, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.x.x Rating:
Released: 12-19-2010 Last Update: 06-23-2012 Installs: 63
Uses Plugins
Re-useable Code Translations  
No support by the author.

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. :up:

English - Downloaad Zip File - V 1.3

Download Now

File Type: zip Block Censored Words by BOP5 - VB4 v13.zip (3.9 KB, 259 views)

Screenshots

File Type: jpg blockwords_newreplyvb4.jpg (64.5 KB, 0 views)
File Type: jpg blockwords_settings.jpg (103.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
DNCL

Comments
  #102  
Old 09-27-2018, 03:47 AM
gsk8's Avatar
gsk8 gsk8 is offline
 
Join Date: Jun 2003
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey there! Thanks so much for making this - badly needed

Unfortunately it's not working. I triple checked my censored words. I'm using 4.2.5.

All of the words are in curlys with like this {'Bad'}

So when someone type Bad in the title or post, it still goes through

If I remove the curly brackets it works.

The problem is that I run a forum where many athletes are mentioned. For instance "Slutskaya". But if I put in slut without the curly brackets and quotes, guess what happens
Reply With Quote
  #103  
Old 09-27-2018, 03:51 AM
gsk8's Avatar
gsk8 gsk8 is offline
 
Join Date: Jun 2003
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also noted that when the post is being typed, there is no way to "edit". So someone might type a whole paragraph only to get the next page saying:

Quote:
A censored word was detected. Please do not use censored words in your posts..
Reply With Quote
  #104  
Old 09-27-2018, 04:01 AM
gsk8's Avatar
gsk8 gsk8 is offline
 
Join Date: Jun 2003
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok. I think I got it. The secret was to take out the quote. This seems to work well! Thanks!
Reply With Quote
  #105  
Old 09-27-2018, 04:16 AM
gsk8's Avatar
gsk8 gsk8 is offline
 
Join Date: Jun 2003
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope still having problems. I clicked on "NO" to Block in ALL forums. Then I selected/highlighted the ones I want to use this feature for. The only thing it did was show up **** instead of a message.
Reply With Quote
  #106  
Old 09-27-2018, 02:37 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I haven't looked at the code for this in a long time but if I recall correctly it did not support the use of the {brackets} like regular word censor did.
Reply With Quote
  #107  
Old 10-02-2018, 12:37 AM
gsk8's Avatar
gsk8 gsk8 is offline
 
Join Date: Jun 2003
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #108  
Old 10-02-2018, 10:11 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would say the mod is unfortunately not compatible with that kind of usage. Sorry.
Reply With Quote
  #109  
Old 11-21-2019, 04:14 AM
kether1 kether1 is offline
 
Join Date: Jun 2006
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Joe, is this mod available for vb5?

Thanks!
K
Reply With Quote
  #110  
Old 01-04-2020, 12:08 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #111  
Old 01-04-2020, 02:22 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 12:22 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.04949 seconds
  • Memory Usage 2,329KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete