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
Prevent certain links in posts per subforum/usergroup Details »»
Prevent certain links in posts per subforum/usergroup
Version: 1.00, by Disasterpiece Disasterpiece is offline
Developer Last Online: Oct 2019 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.x.x Rating:
Released: 04-18-2011 Last Update: Never Installs: 15
Uses Plugins
Translations Is in Beta Stage  
No support by the author.

==== QUICKINFO

This mod checks each post for certain keywords if the user is not a mod/admin in a specific subforum. If a keyword is found, the post is matched against a variety of regular expressions and if at least one disallowed string is found, the post is rejected with an understandable errormessage.

==== WHY THIS MOD?

I coded this mod so I could prevent users from posting filehost-images.
Reasons are slow pageload if those filehosters are overloaded and
most filehoster delete images after some time, so if you have a supportforum, the thread is practically useless if the images are missing.

So to make my users stop using those ugly filehosters, I coded this little plugin so they would use the vb attachment system with fast page load and unlimited lifetime. (I paid for the space so use it!)

You can use this mod for other things as well, however this is presented as "anti-filehost-mod" so if you want to use it for anything else, feel free to do so, support may be limited.

==== INSTALLATION

Download attached xml product file and upload as new addon.
You'll find all necessary settings in Settings > No Filehosts plz!
-ger for german translated addon,
-en for english translated addon.

==== CONFIGURATION

There are already a number of filters preset from links I've captured, if you know regex it'll be easy for you to add new ones, If not ask here with the link and I'll help you out if you can't figure it out by yourself.

Keywords exist, because it's much faster to perform quick-checks for certain strings than to perform slow regex-checks. So the keywords speed-up the posting process without loosing any features.

Forumids should be self-explanatory, you'll find forum-ids in your admincp or in the url to the specific forum. For each forum-id specified in the setting, the filter-rules will apply and reject posts if they contain illegal strings.

Groupids should be self-explanatory as well, noticable is that admins and mods are already filtered out by the "can_moderate" condition, so the ids 5,6,7 are only examples. If you don't want to exclude any other usergroup than the mods/admins, leave it blank.

Error Message is the text that gets displayed when a post is rejected. Use sample text or use your own, html allowed.

==== ETC

If you find more filehosts that are frequently used, share your filters here!

If you like this mod, please click "Installed" and consider a small donation to keep me motivated spreading out helpful tools for free in the future.

Report any bugs/issues that might occur!

Download Now

File Type: xml product-nofilehost-en.xml (8.0 KB, 73 views)
File Type: xml product-nofilehost-ger.xml (8.1 KB, 18 views)

Screenshots

File Type: jpg nofilehost1.jpg (48.6 KB, 0 views)
File Type: jpg nofilehost2.jpg (45.0 KB, 0 views)
File Type: jpg nofilehost3.jpg (115.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-19-2011, 03:38 PM
ssslippy ssslippy is offline
 
Join Date: Jan 2006
Posts: 877
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to get this to check again when a user edits a post?
Reply With Quote
  #3  
Old 04-20-2011, 12:12 AM
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Location: GER
Posts: 765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It already does. Did you try it out yet?

If it doesn't work for you, let me know. Because it's supposed to do that too.
Reply With Quote
  #4  
Old 04-20-2011, 08:42 AM
Alecsmith Alecsmith is offline
 
Join Date: Sep 2009
Location: Still On Earth
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tagged for future

Thanks
Reply With Quote
  #5  
Old 04-22-2011, 06:05 AM
yahooooh yahooooh is offline
 
Join Date: Nov 2009
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks this will prevent new user to put links ,
i want only to prevent links betweein [URL] but not the links between [IMG]
could you help on this thanks
Reply With Quote
  #6  
Old 04-22-2011, 10:59 AM
naisho naisho is offline
 
Join Date: Feb 2008
Location: France
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very good, I recently noticed that almost all pictures hosted by one of my members on photobucket.com had been deleted... I had to delete a large number of his threads and posts.

Here is the regex I added for photobucket.com:

Code:
/(http?:\/\/)?(img\.)?photobucket\.com\/[a-zA-Z0-9-_\.\\\/]+/
Possible Improvement: I think that the error message that is displayed should be phrased, so that it is displayed in the member's language.
Reply With Quote
  #7  
Old 01-01-2013, 07:44 AM
vb_nils vb_nils is offline
 
Join Date: May 2012
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Exactly what I'm looking for but still in beta stage since more than 1 year.
Does any one installed it on vb4.2?
Or does someone knows if a similar mod exists?
Thank you
Reply With Quote
  #8  
Old 01-31-2014, 08:10 PM
karabaja3's Avatar
karabaja3 karabaja3 is offline
 
Join Date: Jan 2008
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod?
What would happen to existing URL's when I ban them?
Will this work on v3.8?
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 02:03 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.11797 seconds
  • Memory Usage 2,295KB
  • Queries Executed 22 (?)
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_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (5)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete