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
Ban some words/links from using on the forum Details »»
Ban some words/links from using on the forum
Version: 1.2.1, by LordOfWAR_PC LordOfWAR_PC is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 01-22-2011 Last Update: 02-09-2011 Installs: 57
Uses Plugins
Re-useable Code Translations  
No support by the author.

Product was updated to version 1.2.1

Changelog v1.2.1 :
  • Fixed bug, when guests was able to read posts (with parsed bbcodes) even after option - "Disable BBCodes in all existing posts, which already include denied words/links" was enabled.

Changelog v1.2 :
  • Threads/Posts and Pm's titles will be checked for banned strings too.
  • Now it is possible to customize your own error message for every banned word/link/string.

Changelog v1.1 :
  • Now error message are provided with banned word/link which was used in users message. So users will know which word they must delete to continue.
  • All links are urldecoded before checking, so trick with posting urlencoded links will not work anymore.

____

In some time, every VB forum admin have an situation, when someone or some spam-bots, or groups of peoples starting writting every time same "bad" words or when they every time publishing a links on their web-sites. They think that referals from your site will help them to grow up in search systems and e.t.c.

Vbulletin have an normal autocensor, which can change some words to the "*****", but it allows to the users to write a post... Also after using autocensor, if sometimes we will want to disable it - all this links/words must be resaved in every post to see them again (because even after disabling autocensor - peoples will see same - "*******").

____

So... With using "BannedWords" plugin, you can ban/deny some words/links(or their parts) from using in new posts/pm's. Users will see an error after trying to add new reply/start new thread or so... (error with text that he used banned word. To be clear - I am used "word" as any string which can be an part of users message).

This plugin allows you to specify banned words, users and usergroups which will be ignored by plugin (let's say - situation, when we want to leave possibility to publish forbidden links for moderators and admins) and others options.

Plugin options (screenshot) - vBulletin Options->Banned Words Plugin Settings :


Error which users will see after creating messages with denied words (screenshot) :


If you want to customize error message for every banned word, you must make new vbphrase (for needed banned word) in Languages & Phrases->Phrase Manager->Add New Phrase :
  • Phrase Type=Error Messages
  • Product=BannedWords
  • Varname=AnyYourVarName
  • Text=AnyYourErrorMessage (your error message can contain this word - "!bword!",which will be replaced by banned word which cause the error.

After you will make new vbphrase, you must go into this plugin options and type your banned word and phrase name as shown in Example #2 :

somelink.com,my_error_vbphrase1

(Banned Word/Link and Phrase/Var name must be separated by comma).

___

If you will enable option with disabling bbcodes in all posts (with denied words), which was created recently, they (posts) will looks as shown in this screenshot (with disabled bbcodes) :


___

Also you can disable this product in any time, and all recently blocked words will be allowed and bbcodes in old posts with denied words will works automatically.

Product was tested on VB 3.8.6 and VB 4.0.1, but must works also on every VB 3 or 4 version...

____

How to install :

Just import xml file as usual VB product.

Uninstallation :

Just uninstall this product as any other VB product.

How to update :

Uninstall and then reinstall product (before that, it is recomended to save your old options into some place).

____

For multilanguage forums :

After installing of "Ban some words/links from using on the forum" product, you will be able to find and edit needed vbphrases :
  • bannedwords_error
  • setting_bannedwords_onoff_desc
  • setting_bannedwords_onoff_title
  • setting_bannedwords_list_desc
  • setting_bannedwords_list_title
  • setting_bannedwords_exception_usrgroups_desc
  • setting_bannedwords_exception_usrgroups_title
  • setting_bannedwords_exception_users_desc
  • setting_bannedwords_exception_users_title
  • setting_bannedwords_use_in_pm_desc
  • setting_bannedwords_use_in_pm_title
  • setting_bannedwords_disable_bb_in_exist_post_desc
  • setting_bannedwords_disable_bb_in_exist_post_title

Download Now

File Type: xml product-DeniedWords_en_1_2_1.xml (16.5 KB, 226 views)

Screenshots

File Type: jpg OldPostWithBannedWords_AfterPlugin.jpg (19.2 KB, 0 views)
File Type: jpg error.jpg (52.0 KB, 0 views)
File Type: jpg error2.jpg (45.8 KB, 0 views)
File Type: jpg Params_en.jpg (406.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
DNCL, nacaruncr, pwnedPRO

Comments
  #2  
Old 01-24-2011, 06:48 AM
Jackie1 Jackie1 is offline
 
Join Date: Sep 2007
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't work in vbb 4.1.1.
Pls help me
Reply With Quote
  #3  
Old 01-24-2011, 09:28 AM
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jackie1 View Post
Don't work in vbb 4.1.1.
Pls help me
Just tested it on Vb 4.1.1 forum and all works fine. Banned links was blocked.

//--Added

Or you are telling about Blog (not a forum ?). If yes, then sorry, it was developed for using on the forum only.

//--/Added



"Not work" means not working everywhere or only in some place ?

After installing the product, you must go to the "Vbulletin Options->Banned Words Plugin Settings", then enable and configure it (example was shown in the first screenshot there).

If plugin will be configured, then users will not be able to create new thread/new reply/save edited post/send PM/ShowPosts with denied words (depending on you plugin configuration). Others actions, like send public messages will not be checked.

Also you must understand, that if you added your user id or usergroup id into exceptions, then there will not be any restrictions for you (you will be able to make new posts with denied links/words, edit them, see them with enabled bbcodes and e.t.c., so if you want to test plugin - at the first step do not add any exceptions (or then test it from different user accounts with different usergroups). And if all will works fine, then you can think about usergroups or users exceptions).

___

If you do all what I wrote before and it's doesn't help, then check "Vbulletin Options->Plugin/Hook System". It must be enabled too :

Attached Images
File Type: jpg hook.jpg (37.9 KB, 0 views)
Reply With Quote
  #4  
Old 01-24-2011, 10:45 AM
rajubd rajubd is offline
 
Join Date: Jun 2009
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it will be very usefull for me will install it soon..
Reply With Quote
  #5  
Old 01-24-2011, 06:22 PM
rajubd rajubd is offline
 
Join Date: Jun 2009
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

work well in vb 4.1.1
moninated also...
Reply With Quote
  #6  
Old 01-24-2011, 06:24 PM
Blackbeard02 Blackbeard02 is offline
 
Join Date: Sep 2009
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, this may save me some headaches
Reply With Quote
  #7  
Old 01-24-2011, 09:18 PM
Jasem's Avatar
Jasem Jasem is offline
 
Join Date: Feb 2006
Location: www.menokia.com
Posts: 594
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you :up:
Reply With Quote
  #8  
Old 01-25-2011, 12:21 AM
g0dfather1984 g0dfather1984 is offline
 
Join Date: May 2008
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance of letting a user know what word they exactly said wrong?
Reply With Quote
  #9  
Old 01-25-2011, 08:23 AM
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by g0dfather1984 View Post
Any chance of letting a user know what word they exactly said wrong?
Yes, i will add this option in next version
Reply With Quote
  #10  
Old 01-25-2011, 10:46 PM
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Product was updated to 1.1 version.

Changelog :
  • Now error message are provided with banned word/link which was used in users message. So users will know which word they must delete to continue.


  • All links are urldecoded before checking, so trick with posting urlencoded links will not work anymore.
Reply With Quote
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 07:38 PM.


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.07837 seconds
  • Memory Usage 2,348KB
  • 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
  • (2)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (6)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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