PDA

View Full Version : Limit Attachment Downloads



admin
03-05-2010, 12:48 PM
Limit Attachment Downloads



Click here to Nominate this Mod for Mod the Month (http://www.vbulletin.org/forum/vborg_miscactions.php?do=nominate&threadid=241727&type=1)

The writing of this hack was originally 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.40 (05/02/10):

First release of this hack for vb 4.0.

Pictures:

The error message.
Found in the main vb settings
Found in the attachment types setting
Found in the usergroup settings

Screenshots
http://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/05/03/12/21111272865674.JPGhttp://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/05/03/12/27441272865680.JPGhttp://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/05/03/12/57941272865687.JPGhttp://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/05/03/12/83991272865693.JPG