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

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
  #12  
Old 01-27-2011, 09:54 AM
valdet's Avatar
valdet valdet is offline
 
Join Date: Feb 2007
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you also add an option to block this word on title only, or title/thread.

And what about vB 3.x versions.

Great hack. Thanks.
Reply With Quote
  #13  
Old 01-27-2011, 11:13 AM
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by valdet View Post
Can you also add an option to block this word on title only, or And
Ok, I will add an option with title blocking too.

Quote:
Originally Posted by valdet View Post
what about vB 3.x versions.
3.8 versions are supported too (you can install it without any changes), I just don't want to make two same threads in both forums...
Reply With Quote
  #14  
Old 01-27-2011, 02:00 PM
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Product was updated to version 1.2.

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.


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 plugin options again 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).
Reply With Quote
  #15  
Old 01-28-2011, 08:54 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is not working at all on my forum. Nothing happens. No error message, nothing.

Please advise. I am on vb 4.1.1

Thanks!
Reply With Quote
  #16  
Old 01-28-2011, 01:10 PM
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, you want to say that you added some word(s) into banned list, enabled plugin and after this, peoples still can make new threads/new posts with banned words ?

1. Make sure that you really enabled this plugin.
2. Check if plugin/hook system is enabled :


3. Maybe you have some others plugins, which are working with threads/posts too... (so there is some conflict)...

4. Did you added some usergroups or userid's in users exception list ? If yes, then check your usergroup and(or) userid - if you are in exception list, then plugin will ignore you - your account will not be checked, so you will be able to add even banned words...

P.S. As I wrote in second message - I am already tested plugin on vb 4.1.1 - so it must works...
Reply With Quote
  #17  
Old 01-28-2011, 02:06 PM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am 100% sure I set it up correctly. So then there must be a conflict.
Reply With Quote
  #18  
Old 01-28-2011, 02:26 PM
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Taurus1 View Post
I am 100% sure I set it up correctly. So then there must be a conflict.
1. Can you pls send to me in PM screenshot of options menu, or just text of banned words ? I just want to check them by myself...

2. Where you tried it ? I mean - on creating new message, new thread, new pm ? Did you tried others words/links ?
Reply With Quote
  #19  
Old 01-29-2011, 10:49 AM
BBF BBF is offline
 
Join Date: Dec 2006
Location: Israel, Netanya.
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

let's say that i banned the word "sex".
if some user want to replay / create new thread with the word "sex", it will delete his post automatically and show him error message?

another question, it is possible to define the mod to use the "original" vBulletin censor system?
Reply With Quote
  #20  
Old 01-29-2011, 08:36 PM
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BBF View Post
let's say that i banned the word "sex".
if some user want to replay / create new thread with the word "sex", it will delete his post automatically and show him error message?
It will not delete no any post... Plugin will check users text (after he will click on post button) and if there is no any denied words, then message will be created on the forum, otherwise user will see an error with asking to delete forbidden words/links from his message.

Quote:
Originally Posted by BBF View Post
another question, it is possible to define the mod to use the "original" vBulletin censor system?
No, it is other plugin, it works separately from original censorship system. But I can add in future version, something like - changing banned text to some word (or chars, like ***) in exists messages...
Reply With Quote
  #21  
Old 02-09-2011, 05:23 PM
MikeF MikeF is offline
 
Join Date: Jan 2006
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here here! This is a GREAT mod, but the BBCode thing is terrible. I have several problems with prior post blocking. Here's my scenario: We are trying to block:

imageshack.us
imageshack
image shack
91.216.122.223

Why? ImageShack has some 1/1000 problem where a phishing attack that says you have a virus on your computer pops up out of nowhere. So we want to prevent our members from accessing or posting about ImageShack. That IP is also the phishing site.

We can prevent NEW posts/threads/PMs about this, but
  • Guests can still see the fully translated BBCode
  • Outputting raw BBCode just makes people more interested anyway

I highly suggest you fix the first problem, and secondly, you suggest putting up a block message in replacement of the specific text/URL that has already been posted. This would help people understand what is going on, and that the forum itself is not experiencing a strange error.

Otherwise, nice one. If you continue to develop this mod, it could be considered as MOTM and many people will adopt it as a standard for their site.
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 05:24 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.06644 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
  • (5)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
  • (3)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
  • (5)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