Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Limit Attachment Downloads Details »
Limit Attachment Downloads
Mod Version: 1.3, by Abe1 (Coder) Abe1 is offline
Developer Last Online: Jun 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.8 Rating: (12 votes - 4.83 average) Installs: 112
Released: 19 Jul 2007 Last Update: 29 Jul 2007 Downloads: 780
Not Supported DB Changes Uses Plugins Additional Files  

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

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	1.JPG
Views:	1112
Size:	14.0 KB
ID:	67199   Click image for larger version

Name:	2.JPG
Views:	777
Size:	25.5 KB
ID:	67211   Click image for larger version

Name:	3.jpg
Views:	877
Size:	51.2 KB
ID:	67212   Click image for larger version

Name:	4.JPG
Views:	896
Size:	26.1 KB
ID:	67213  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #61  
Old 12 Nov 2007, 13:45
rin's Avatar
rin rin is offline
 
Join Date: Aug 2004
I probably did something wrong here. Anyway, I would like to ask you.
I uploaded and imported your hack. I went to vBulletin Options "Limit Attachment Downloads" and turned that on. I changed "Download Limit Time Frame" to 30 Minutes (I think this means the user needs to wait 30 minutes until he can download again, right?)
So I went to Attachment Manager and changed the values for ZIP files, cause I only want to test it with ZIP's for now. I changed "Limit Downloads with this Attachment Type" to Yes.
Then I went to the Usergroup Manager and edited the Administrator Attachment privileges.
But no matter how often I change the value to YES, when I reload the privileges page, it changed back to No.... :-/
__________________
selling kawaiiNation.com
Reply With Quote
  #62  
Old 12 Nov 2007, 13:49
rin's Avatar
rin rin is offline
 
Join Date: Aug 2004
Ok, I reinstalled it and its actually changed to Yes now. But anyway, I can still download as many times I want.
"Download Attachment Limit" is set to 2. So in my understanding, this should let me get 2 downloads in 30 minutes.
__________________
selling kawaiiNation.com
Reply With Quote
  #63  
Old 12 Nov 2007, 15:47
rin's Avatar
rin rin is offline
 
Join Date: Aug 2004
It seems to be working now.
Not sure though. Is it possible to download the same file X time even with the limitation in place? Or is this because it's cached in the browser?
__________________
selling kawaiiNation.com
Reply With Quote
  #64  
Old 20 Nov 2007, 12:25
Zi55 Zi55 is offline
 
Join Date: Dec 2006
Any updates on hack?
Reply With Quote
  #65  
Old 24 Nov 2007, 07:01
ocktra's Avatar
ocktra ocktra is offline
 
Join Date: Oct 2007
Originally Posted by rin View Post
It seems to be working now.
Not sure though. Is it possible to download the same file X time even with the limitation in place? Or is this because it's cached in the browser?
How did you fix the problem you had before? It seems to be allowing me to download endlessly.
Reply With Quote
  #66  
Old 29 Nov 2007, 01:59
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
Originally Posted by Zi55 View Post
Any updates on hack?
To do what?
__________________
MY HACKS -

Active Link Security 3.0.X | Add Title to Rank Images 3.5.X | Admin Log In As User 3.5.X 3.6.X | Advanced BBCode Permissions 3.5.X 3.6.X | Can't See Attachments Before Thanking a Post 3.5.X | Can't Thank and Groan the Same Post 3.5.X | Delete Post when Giving Infraction 3.6.X | Edit New Thread Button 3.5.X | External Data Provider Usergroup Permissions Setting 3.5.X | Forms Hack 3.5.X, 3.6.X | Log Logins Hack 3.5.X 3.6.X | Moderator Statistics 3.5.X | Post Award Hack 3.0.X 3.5.X | [AJAX] Post Thank You Hack 3.0.X 3.5.X 3.6.X | [AJAX] Post Groan Hack 3.5.X 3.6.X | Post Thank You Hack Stats for vBadvanced CMPS 2.x 3.5.X | Search Title only in search drop-down 3.5.X, 3.6.X | 'vBMenu' DHTML User Option 3.5.X 3.6.X | vBShout on all pages! 3.5.X
Reply With Quote
  #67  
Old 30 Nov 2007, 13:21
ReQueM's Avatar
ReQueM ReQueM is offline
 
Join Date: Dec 2006
thanks for this great hack
__________________
ReQueM back!!!
Reply With Quote
  #68  
Old 03 Dec 2007, 05:19
leroub's Avatar
leroub leroub is offline
 
Join Date: Jul 2005
Real name: No way... ;-)
fantastic hack.... thx abe1.... *installed*
__________________
Sorry for my poor english... :ermm:
Reply With Quote
  #69  
Old 03 Dec 2007, 20:18
Zi55 Zi55 is offline
 
Join Date: Dec 2006
Abe1
We wanna you to add new feature for this hack like , speed limit , member change protect , and anything new , because it's really cool hack .
Thanks
Reply With Quote
  #70  
Old 03 Dec 2007, 20:37
class101 class101 is offline
 
Join Date: Sep 2007
Real name: A.D
uninstalled me because it does not limit project tools attachements and blog attachement, no need of an addon doing half of its job...
Reply With Quote
  #71  
Old 04 Dec 2007, 11:51
rin's Avatar
rin rin is offline
 
Join Date: Aug 2004
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.
__________________
selling kawaiiNation.com
Reply With Quote
  #72  
Old 08 Dec 2007, 02:23
linnov linnov is offline
 
Join Date: Jan 2003
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
  #73  
Old 12 Dec 2007, 18:41
katan katan is offline
 
Join Date: Jul 2007
thanks you!!!
Reply With Quote
  #74  
Old 13 Dec 2007, 05:34
Zi55 Zi55 is offline
 
Join Date: Dec 2006
Abe1
We hope to see in your hack MaxConnections feature to attachments
Reply With Quote
  #75  
Old 15 Mar 2008, 17:10
saotome saotome is offline
 
Join Date: Jul 2007
Real name: Henki Halim
very good click installed and nominated for this months thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 16:18.

Layout Options | Width: Wide Color: