Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

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
  #112  
Old 01-04-2020, 03:38 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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.
Reply With Quote
  #114  
Old 01-05-2020, 09:02 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Благодарность от:
BirdOPrey5
Reply


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 10:22 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04247 seconds
  • Memory Usage 2,266KB
  • Queries Executed 21 (?)
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)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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (4)post_thanks_box
  • (2)post_thanks_box_bit
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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