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.
  #76  
Old 10 Apr 2008, 05:53
M.Kay M.Kay is offline
 
Join Date: Jan 2008
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
did you fix this problem ?
Reply With Quote
  #77  
Old 10 Apr 2008, 13:11
linnov linnov is offline
 
Join Date: Jan 2003
nope i just un installed it
Reply With Quote
  #78  
Old 01 May 2008, 10:35
minky1 minky1 is offline
 
Join Date: Feb 2006
I love this hack, but how can I edit the text that a user see's when they hit the limit ?
Reply With Quote
  #79  
Old 04 May 2008, 16:30
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Real name: Abe
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.
__________________
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
  #80  
Old 16 Jun 2008, 23:19
Cyborg86 Cyborg86 is offline
 
Join Date: Aug 2007
Anyone tried if this mod works with 3.7 ?

Thanks,
Reply With Quote
  #81  
Old 16 Jul 2008, 10:03
minky1 minky1 is offline
 
Join Date: Feb 2006
Originally Posted by Abe1 View Post
Edit the phrase.
Sorry for being thick, but where ?
I can edit it before installing it and it works, but can it be edited/changed after installing ?
Reply With Quote
  #82  
Old 04 Aug 2008, 09:10
yahoooh yahoooh is offline
 
Join Date: Oct 2002
does it work with 3.7.2?
Reply With Quote
  #83  
Old 11 Aug 2008, 17:38
minky1 minky1 is offline
 
Join Date: Feb 2006
Originally Posted by minky1 View Post
Sorry for being thick, but where ?
I can edit it before installing it and it works, but can it be edited/changed after installing ?
Any answer to this ?

Thanks.
Reply With Quote
  #84  
Old 22 Aug 2008, 10:17
minky1 minky1 is offline
 
Join Date: Feb 2006
I found the answer myself.
Reply With Quote
  #85  
Old 24 Aug 2008, 12:54
Seiyaboy Seiyaboy is offline
 
Join Date: May 2006
Originally Posted by minky1 View Post
Sorry for being thick, but where ?
I can edit it before installing it and it works, but can it be edited/changed after installing ?
Yes you can. But you'll need to customize it though the phrase manager. It's so much easier to just edit the xml and reinstall it.
Reply With Quote
  #86  
Old 09 Sep 2008, 15:47
minky1 minky1 is offline
 
Join Date: Feb 2006
This was working very well until I installed the 'Guests can view thumbnails/Watermark hack (http://www.vbulletin.org/forum/showthread.php?t=141883).

Now it doesn't work, it just lets anyone download any amount instead of bringin up the message, If I disable the 'Guests can view thumbnails/Watermark' hack then it works again.

Thats a pain, I really need both to work
Reply With Quote
  #87  
Old 14 Sep 2008, 11:56
sina1808 sina1808 is offline
 
Join Date: Sep 2005
work whit 3.7
Reply With Quote
  #88  
Old 23 Sep 2008, 12:00
haytham's Avatar
haytham haytham is offline
 
Join Date: Jan 2003
Real name: Haytham
Anyone has it working on 3.7.2?
Reply With Quote
  #89  
Old 03 Nov 2008, 19:18
mark370 mark370 is offline
 
Join Date: Feb 2008
Has anyone had this working on 3.7.3 pl1 all we are getting is the error message below.


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

Reply With Quote
  #90  
Old 15 Nov 2008, 05:03
JamesAB JamesAB is offline
 
Join Date: Jan 2004
I love the idea of this mod and I hope we can use it on 3.8.

I'm testing this out on vB 3.8.0 beta2.

It half works for me. Or maybe it's working twice as well.

My problem is that every time an attachment is clicked on, it is getting counted twice.

I checked the entries in phpMyAdmin and I see that each time an attachment is clicked, two rows are being added to my attachment_limit table.

For example, I set the attachment limit to be 5.

The first time an attachment is clicked, it adds two rows to the attachment_limit table.
The second time an attachment is clicked, it adds another two rows to the attachment_limit table.
The third time an attachment is clicked, it adds a row (the fifth row) and then puts up the message:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Abe1 or anyone else notice this behavior while testing in 3.8 ? Or can suggest how to correct the double entries for each attachment download?

Thanks,
James
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 11:51.

Layout Options | Width: Wide Color: