Advertisement:

Navigation

SMF Mod Site

Mod Name:
Download Quota
Created By:
rd
Type:
Permissions
First Created:
June 15, 2009, 07:43:17 PM
Last Modified:
June 11, 2016, 11:37:54 PM
Latest Version:
1.3
Compatible With:
1.1.11, 2.0 RC2, 2.0 RC3
Total Downloads:
2847

Download this mod

download_quota.zip (8kB) [1931]
Manual Install Instructions for SMF


Below are some preview images of what the mod looks like when being used

Description:

Download Quota


Previously Written by: Arantor   
Current version: 1.3
Updates: Mod support topic
Suitable for: SMF 1.1.11, 2.0 RC2, 2.0 RC3Supported languages:

Link to Mod | Mod support topic |




Summary

This mod allows you to set download quotas per day for your users, instead of uncapped download ability (the default SMF behaviour)

Mod Defaults

Administrators = No quota
Global Moderators = No quota
Moderators = 10 MB

Other Groups = 0 MB

In other words, most user groups will have to have to values modified.


Any download that would put a user over their quota is not allowed - this adds a note to the forum error log.

Quotas are in KB rather than bytes as of version 1.2 of the mod.


Installation

Package Manager
should work in most cases.  Manual edits may be needed for themes that modify the Admin Panel / Manage Membergroups area; all other edits are generic (language files) or core source files.

Useful links
Manual Installation Of Mods
How Do I Modify Files?

Support

Questions should be address to the mod support topic. Anything that is a bug or feature request can posted on the mod support topic.

Updating

Please uninstall this mod before updating.

Changelog

1.3 - March 15, 2010 Updated for RC3

1.2 - December 29, 2009
Updated for 1.1.11 and 2.0 RC2
Also added support for displaying quota on user profiles
Quotas now measured in KB not bytes, meaning the maximum file that can be tracked is theoretically 4TB

1.1 - July 30, 2009
Updated for 1.1.10

1.0 - June 26, 2009
Initial release

Files modified by Download Quota

Sources/Display.php (where the download is handled)
Themes/themedir/languages/Modifications.english.php (for the text in the Admin panel)
Themes/themedir/languages/Errors.english.php (for the 'You have exceeded your quota' error)
Themes/themedir/ManageMembergroups.template.php (for the control panel)
Sources/ManageMembergroups.php (for managing the DB changes)
Sources/Profile.php (1.1.x, when viewing the profile, for getting quota)
Sources/Profile-View.php (2.0, when viewing the profile, for getting quota)
Themes/themedir/Profile.template.php (for showing the quota)