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
Limit Attachment Downloads Details »»
Limit Attachment Downloads
Version: 1.40, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.0.x Rating:
Released: 05-01-2010 Last Update: Never Installs: 73
DB Changes Uses Plugins
Additional Files  
No support by the author.

Limit Attachment Downloads



The writing of this hack was originally sponsored by: sama3y.net

About this hack:
This hack allows you to limit the number of attachments users can download during a given time period.

This hack is pretty flexible right now. You can choose how many attachments a user can download in a give time. That given time can be set to an hour, a day, a week, a month, 3 months, 6 months, or a year. You also set which attachment types get counted for this hack. Also, you set which usergroups get affected by this hack and how many downloads each usergoup can make.

If a user tries downloading past their limit, they will get an error message. This error message includes when they will be able to start downloading again.

Also, there is a cron job to remove from the table that this hack creates, all the rows that are past the limit date so your table doesn't grow forever and saves you space.
  • Files edited: 0
  • Templates edited: 0
  • Files to upload: 2 (1 via ACP, 1 via FTP)
  • Time to install: 1 minute

Updates:
Version 1.40 (05/02/10):
  • First release of this hack for vb 4.0.

Please post your comments or suggestions for this hack. I read ALL posts.

MAKE SURE YOU CLICK INSTALL!
You will get an email when a new version is released.

Pictures:
  • The error message.
  • Found in the main vb settings
  • Found in the attachment types setting
  • Found in the usergroup settings

Download Now

File Type: zip limit_attachment_downloads_1_40.zip (4.1 KB, 531 views)

Screenshots

File Type: jpg 1.JPG (14.0 KB, 0 views)
File Type: jpg 2.JPG (25.5 KB, 0 views)
File Type: jpg 3.JPG (82.4 KB, 0 views)
File Type: jpg 4.JPG (26.1 KB, 0 views)

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 05-02-2010, 10:48 PM
AliceHoward AliceHoward is offline
 
Join Date: Mar 2010
Location: Oxford, England
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way of getting this to work when attachments are inserted 'inline'?
Reply With Quote
  #3  
Old 05-02-2010, 11:44 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well this is sent not to work with thumbs since a user downloads them with out his will. What do you mean by inline?
Reply With Quote
  #4  
Old 05-03-2010, 01:45 AM
Toxic2 Toxic2 is offline
 
Join Date: Jul 2009
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Abel, 5 stars, Nominated and Donation Made !! This was needed to stop those who rape sites to post on their own site with my posts.

I can't thank you enough
Reply With Quote
  #5  
Old 05-03-2010, 02:34 AM
SharedSpirit SharedSpirit is offline
 
Join Date: Dec 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Downloaded - Installed - Nominated - given 5 stars

A much needed Mod, I can't thank you enough I was in need of this particular mod for a long time, had the same kind of problems as the guy above

Thanks a lot again
Reply With Quote
  #6  
Old 05-03-2010, 02:47 AM
Toxic2 Toxic2 is offline
 
Join Date: Jul 2009
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Abel, does this Stop members from opening a txt attachment with notepad? after their Limit has been reached?
Reply With Quote
  #7  
Old 05-03-2010, 02:54 AM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Toxic2 View Post
Abel, does this Stop members from opening a txt attachment with notepad? after their Limit has been reached?
As long as you set to count TXT files. You have to go into the attachment extension setting and make it count that extension.
Reply With Quote
  #8  
Old 05-03-2010, 03:28 AM
Toxic2 Toxic2 is offline
 
Join Date: Jul 2009
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WhooHoo it works, Great !! it will not allow to open with note pad either. Million Thanks Abel !
Reply With Quote
  #9  
Old 05-03-2010, 07:38 AM
AliceHoward AliceHoward is offline
 
Join Date: Mar 2010
Location: Oxford, England
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Abe1 View Post
Well this is sent not to work with thumbs since a user downloads them with out his will. What do you mean by inline?
In the message editor environment there are the font bbcode buttons etcetera, to the right of the smilie selector there is a paperclip, by clicking that we can place attachments in-line of text rather than having attachments show at the base of a post.

Normal attachments:

text text text text

attachment

In-line attachment:

text text attachment text text
Reply With Quote
  #10  
Old 05-03-2010, 10:27 AM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, those get counted also.
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:48 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.04493 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
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
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (5)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete