vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=152701

Limit Attachment Downloads
by Abe1
19 Jul 2007 05:41

5 Attachment(s)
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

shadowevil 19 Jul 2007 06:03

first post ... nice mod ... *installed*

Roflstilzchen 19 Jul 2007 06:14

cool hack, thank you :)

[edit] doesn´t work with 3.6.5 :(

Hornstar 19 Jul 2007 06:39

This is something that heaps of people have been wanting for ever! very nice work.
Will install it on my site very soon.

I have some ideas for extra features, if your interested in expanding it, let me know.

thanks.

bashy 19 Jul 2007 06:50

Hi
Great idea, i will take a look at it tonight Abe1, thanks :)
Perhaps 1 post could reset the limit?
Also, would this work with Downloads II or, could you make this work with it please Abe1?

mhammed 19 Jul 2007 10:43

don't work
database error when downloading of a group subjected to this hack

Abe1 19 Jul 2007 12:04

Quote:

Originally Posted by mhammed (Post 1295490)
don't work
database error when downloading of a group subjected to this hack

Can you post the error message?
Quote:

Originally Posted by Roflstilzchen (Post 1295347)
cool hack, thank you :)

[edit] doesn´t work with 3.6.5 :(

What doesn't work?

Abe1 19 Jul 2007 13:22

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.

Upload BOTH files again.

mhammed 19 Jul 2007 13:53

install the 2 end version
member can download 1 st file
the second file give database error

Roflstilzchen 19 Jul 2007 15:37

Quote:

Originally Posted by Abe1 (Post 1295596)
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.

Upload BOTH files again.

uploaded new files, deinstalled old hack and installed new one, controlled settings but still doesn´t work.


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


Abe1 19 Jul 2007 18:17

Quote:

Originally Posted by Roflstilzchen (Post 1295686)
uploaded new files, deinstalled old hack and installed new one, controlled settings but still doesn´t work.


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

Can you uninstall then re-install?

Roflstilzchen 19 Jul 2007 19:36

Quote:

Originally Posted by Abe1 (Post 1295818)
Can you uninstall then re-install?

that´s what i meant with deinstalling and installing the new one.

Abe1 19 Jul 2007 20:50

Any way I can check you ACP?

DJ XtAzY 19 Jul 2007 21:08

Awesome! Now i dont need to use the points to download attachments for our members =]

Roflstilzchen 19 Jul 2007 21:36

Quote:

Originally Posted by Abe1 (Post 1295928)
Any way I can check you ACP?

you´ve got a pm :cool:


All times are GMT. The time now is 05:07.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.