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

Reply
 
Thread Tools
Limit Attachment Downloads Details »»
Limit Attachment Downloads
Version: 1.3, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.8 Rating:
Released: 07-18-2007 Last Update: 07-28-2007 Installs: 115
DB Changes Uses Plugins
Additional Files  
No support by the author.

Limit Attachment Downloads 1.3


The writing of this hack was 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.0 (7/19/07):
  • First Release of this Hack

Version 1.1 (7/19/07):
  • [FIXED] MAJOR BUG, the main table needed was not being installed, causing database errors.
  • [CHANGED] I moved over the attachment limit to the usergroup settings to give an option of different download amounts per usergroup.

Version 1.2 (7/19/07):
  • [FIXED] I REALLY now fixed the MAJOR BUG, the main table needed was not being installed, causing database errors.

Version 1.3 (7/29/07):
  • [ADDED] I added a lot more options to 'Download Limit Time Frame' option.
  • [CHANGED] Thumbnails are not counted as download attachments.

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

Supporters / CoAuthors

Show Your Support

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

Comments
  #72  
Old 12-04-2007, 09:51 AM
rin rin is offline
 
Join Date: Aug 2004
Location: Mainland of China
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ocktra View Post
How did you fix the problem you had before? It seems to be allowing me to download endlessly.
I was logged in as administrator. It seems like admins can download as much as they want.
Try creating a regular user and see if you can still download as you please.
Reply With Quote
  #73  
Old 12-08-2007, 12:23 AM
linnov linnov is offline
 
Join Date: Jan 2003
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK I tried a bunch of things and I still get this problem

i turn the hack off

empty the attachment_limit table

turn it on

when a user tries to download they get this message

You have reached your download limit. You will be able to download again on 01-01-1970 at 07:00 PM.

any ideas

using 3.6.8 pl2
PHP Version 5.2.5-pl0-gentoo
apache 2
Reply With Quote
  #74  
Old 12-12-2007, 04:41 PM
katan katan is offline
 
Join Date: Jul 2007
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks you!!!
Reply With Quote
  #75  
Old 12-13-2007, 03:34 AM
Zi55 Zi55 is offline
 
Join Date: Dec 2006
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Abe1
We hope to see in your hack MaxConnections feature to attachments
Reply With Quote
  #76  
Old 03-15-2008, 03:10 PM
saotome saotome is offline
 
Join Date: Jul 2007
Location: Indonesia
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very good click installed and nominated for this months thanks
Reply With Quote
  #77  
Old 04-10-2008, 03:53 AM
M.Kay M.Kay is offline
 
Join Date: Jan 2008
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by linnov View Post
OK I tried a bunch of things and I still get this problem

i turn the hack off

empty the attachment_limit table

turn it on

when a user tries to download they get this message

You have reached your download limit. You will be able to download again on 01-01-1970 at 07:00 PM.

any ideas

using 3.6.8 pl2
PHP Version 5.2.5-pl0-gentoo
apache 2

same here :erm:
did you fix this problem ?
Reply With Quote
  #78  
Old 04-10-2008, 11:11 AM
linnov linnov is offline
 
Join Date: Jan 2003
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nope i just un installed it
Reply With Quote
  #79  
Old 05-01-2008, 08:35 AM
minky1 minky1 is offline
 
Join Date: Feb 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love this hack, but how can I edit the text that a user see's when they hit the limit ?
Reply With Quote
  #80  
Old 05-04-2008, 02:30 PM
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 minky1 View Post
I love this hack, but how can I edit the text that a user see's when they hit the limit ?
Edit the phrase.
Reply With Quote
  #81  
Old 06-16-2008, 09:19 PM
Cyborg86 Cyborg86 is offline
 
Join Date: Aug 2007
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone tried if this mod works with 3.7 ?

Thanks,
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 05:56 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.12661 seconds
  • Memory Usage 2,307KB
  • 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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete