Setting User Limits
For example we could set a limits of say 8 downloads/day, 20 downloads per week and 50 downloads/month or just 5 downloads/day and 48 downloads/month with no weekly limit. In addition we could set a daily limit of 120Mbyte/day, 500Mbyte/week and 1750Mbyte/month or perhaps just 2000Mbytes/month.
There is also a seventh limit which controls the number of Downloads/day that a user may create from the front end if they have the relevant permissions. This is only shown on the front end if the user has permission to create a new Download. These seven 'principle limits' may be set in any combination.
There are a further two 'special limits' that relate to the way downloading happens, these are described separately below.
It is important to note that whilst the Limit values are set on a User Group basis, the limits are applied on an individual user basis. One User Group may have completely different limits to those set in a different User Group. Where a user belongs to multiple User Groups then the limits in the user group that has the highest jDownloads ranking will be used. For more details on ranking please see the article Which User Group is used.(opens in a new window/tab)
But note limits are, by design, not used for the Public or Guest User Groups. This is because the seven principle limits apply on a personal basis and members of the Public or Guest User Groups are annonymous. To avoid mistakes if you look at 'Limits' for either the Public or Guest User Groups then the only avaliable limits are the 'special limits' "Download Duration Restriction" and "Transfer Speed Restriction" as described later.
When using limits there are four aspects to take into account as listed below.
Show current Limit Status
One method is to activate the View Limits option in User Groups Settings - Group Settings tab (not the Limits tab!!) as shown opposite.
The Limits Message section describes the message that will be shown to the user on the Summary View.
jDownloads detects that there is information to be shown and will then automatically show the Summary View irrespective of other settings. An example of the Summary page with the limits message is shown later.
An alternative method is to use the 'jDownloads View Limits' module.
For more details of this see the article 'View Limits Module' (opens in a new window/tab)
Setting the actual Limits
When showing the main User Groups Settings click on the name of the particular User Group for which you wish to set or modify the limits.
Two of the daily limits are ilustrated opposite.
There are similar Limits for Week and Month.
As noted earlier there are seven principle limits.
If the value field is left as 0 then the limit does not apply. If one or more limits occur the the user is shown them when they attempt to download.
Example of the Limits
There had been no previous downloads by the user that day but there had been some downloads a couple of weeks earlier.
So the daily and weekly number of remaining downloads were the same as the limt values. But the number remaining for the monthly amount shows that there has been a previous download in the month.
Note that as yet the downloading had not occured!
The limit on Number of Uploads is only present if the user has Create permission.
The message '---remaining---' indicates that actually there is no limit set for uploads.
This caused the message in the Summary view as shown opposite, and there is now no Download button.
The actual message reads as follows:
"You have reached your daily limit for the allowed number of Downloads.
You can resume downloading tomorrow. A new day starts when the Server time has passed the time 00:00:01."
If you have set a daily limit of say 5 downloads, then perhaps appropriate week and month limits might be say:
weekly (7 * 5 * 0.75) = 28 to the nearest integer;
monthly (30 * 5 * 0.5) = 75.
Download Duration Restriction.
The limit was introduced in earlier versions of jDownloads when Internet speeds and reliability were much lower than normal today. It is particularly relevant if Downloads are 'priced' so that the same Download does not cause multiple charges within a given time period.
This limit sets the duration (in minutes) in which a new download of the same file and from the same user is not counted as a 'new' Download. This value is important when Download manager software is being used, and also for resuming interrupted Downloads.
Note: If the user changes to a different web page in their browser, either by a new Tab or a new Window, then that terminates the period prematurely!
It is suggested that if you anticipate internet 'challenges' then you should include a note on the Download page advising users not to change to a new page.
Change the value of 60 minutes only if you are sure of the consequences!
Transfer Speed Restriction
Basically this limit artificially slows down the transfer rate. It is again intended for situations where poor interrnet performance may be an issue.
With this limit users in the user group have a download speed limit in kbits/second. For example if you set the value to 1024, then the downloading transfer speed is limited to a maximum of 1MB/sec. If you set it to 0 no limit is applied.
Note: This limit does not apply if the user is downloading files from an external site.
Finding the System Plugin
. This shows up all of the jDownloads plugins.
You can then click on 'System -jDownloads' to open the plugin as illustrated above.
Adjusting the jDownloads System plugin
The jDownloads System Plugin allows an upper limit that is specified in days to record the number of download logging records. The value you set will depend on the the highest limit duration.
In practice a limit of 93 days, being 3 times the length of the longest month, allows for all circumstances.
Note that when checking for monthly limits, jDownloads uses the current date and then checks back for the same day upto one month earlier.
It is essential to set a limit for the period that log records are kept in the database as otherwise the database will grow indefinitely, which will eventually lead to problems. Older data is deleted automatically once a day.
The available durations are 1, 7, 31, 93, 366 and 500 days. The default is 93 days.
ColinM, January 2019 modified March 2021 and July 2023