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: 111
Released: 19 Jul 2007 Last Update: 29 Jul 2007 Downloads: 773
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:	1103
Size:	14.0 KB
ID:	67199   Click image for larger version

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

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

Name:	4.JPG
Views:	886
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.
  #16  
Old 20 Jul 2007, 02:32
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
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.
__________________
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
  #17  
Old 20 Jul 2007, 02:58
Roflstilzchen Roflstilzchen is offline
 
Join Date: Nov 2006
thank you, works great now
Reply With Quote
  #18  
Old 20 Jul 2007, 12:04
Virtuosofriend Virtuosofriend is offline
 
Join Date: Nov 2004
Great work mate. Is it possible, i still havent installed so i dont know, to limit it per forum?
__________________
: [ Admin: AgeRage.net ]
: [ Admin: MPCforum.com ]
Reply With Quote
  #19  
Old 20 Jul 2007, 12:17
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
Originally Posted by Virtuosofriend View Post
Great work mate. Is it possible, i still havent installed so i dont know, to limit it per forum?
No. It is only done on a usergroup level.
__________________
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
  #20  
Old 26 Jul 2007, 17:21
PlymWS PlymWS is offline
 
Join Date: Mar 2006
If a user reaches their limit, will they still be able to see the thumbnails of attachment images or will they not be displayed ?

This mod would suit my site fantastically but I would still need users to be able to see thumbnails when they have reached their limit.
Reply With Quote
  #21  
Old 27 Jul 2007, 16:14
chapsrulez chapsrulez is offline
 
Join Date: Mar 2004
Installed and working.
Great work.
thanks.

Originally Posted by Virtuosofriend View Post
Great work mate. Is it possible, i still havent installed so i dont know, to limit it per forum?
I think it can be done, in my site i have a download subforum, and per usergoups i deny the downloads. on all other subforums downloads are enable.

Originally Posted by PlymWS View Post
If a user reaches their limit, will they still be able to see the thumbnails of attachment images or will they not be displayed ?

This mod would suit my site fantastically but I would still need users to be able to see thumbnails when they have reached their limit.
In my site works
I didn't enabled the plugin for "jpg, gif, png and psd files" and enabled it for .dwg, .3ds, .rar, .zip, etc.
When a user uploads a new attachment in (dwg, 3ds, rar, etc) i create a thumb so user sees what they are downloading.
Reply With Quote
  #22  
Old 27 Jul 2007, 16:55
PlymWS PlymWS is offline
 
Join Date: Mar 2006
Originally Posted by PlymWS View Post
If a user reaches their limit, will they still be able to see the thumbnails of attachment images or will they not be displayed ?

This mod would suit my site fantastically but I would still need users to be able to see thumbnails when they have reached their limit.
This was easier than I thought. For everyone else who wants this feature :

ACP -> Products & Plugins -> Plugin Manager -> Edit attachment_display thus :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save.
Reply With Quote
  #23  
Old 29 Jul 2007, 05:06
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
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.

Just re-upload the product XML file.
__________________
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
  #24  
Old 29 Jul 2007, 13:12
PlymWS PlymWS is offline
 
Join Date: Mar 2006
The product download is for 1.2 yet the latest version is 1.3 ???
Reply With Quote
  #25  
Old 29 Jul 2007, 14:36
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
Originally Posted by PlymWS View Post
The product download is for 1.2 yet the latest version is 1.3 ???
Sorry, forgot to change the file. Check now.
__________________
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
  #26  
Old 01 Aug 2007, 03:51
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
Some of my suggestions for a future update:
1. Any chance to add captcha to the attachments as an option?
2. If users go over allowed attachments, add a count down timer, that they will have to wait before they can download.

These 2 options would be mod of the month for sure!
Reply With Quote
  #27  
Old 01 Aug 2007, 04:13
gforce75 gforce75 is offline
 
Join Date: Sep 2003
Very good concept
Reply With Quote
  #28  
Old 01 Aug 2007, 11:58
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
Originally Posted by hornstar1337 View Post
1. Any chance to add captcha to the attachments as an option?
Not sure what you mean. How would this help this hack.
Originally Posted by hornstar1337 View Post
2. If users go over allowed attachments, add a count down timer, that they will have to wait before they can download.
This is a feature already! If you try to download an attachment after you used your time already, then it tells you how much time you have left. (look at the first image in the main post)
__________________
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
  #29  
Old 04 Aug 2007, 18:41
lasto lasto is offline
 
Join Date: Jan 2002
this is quite good but how about if a user uploads an attachment in a specific forum then their attachment limit goes up by 1

This would encourage people to just not download attachments but also to upload stuff which is relevant to the site in question.
Reply With Quote
  #30  
Old 05 Aug 2007, 02:15
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
Originally Posted by lasto View Post
this is quite good but how about if a user uploads an attachment in a specific forum then their attachment limit goes up by 1

This would encourage people to just not download attachments but also to upload stuff which is relevant to the site in question.
If a user uploads an attachment, then they get an extra download?
__________________
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
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 20:56.

Layout Options | Width: Wide Color: