www.jdownloads.com

0 Members and 1 Guest are viewing this topic.

Multi usergroup and limitation
« on: 23.04.2022 13:45:16 »
Hi,

Please help me for this scenario
I have two categories(SD files and HD files)

UG=Daily Limit
Guest=0
Register=1 SD file and 0 HD
SD Group=10 SD files and 0 HD
HD Group=10 SD files and 1 HD file


Which User-Group is Used?
Controlled Access to Categories and Downloads
*
Re: Multi usergroup and limitation
« Reply #1 on: 24.04.2022 12:34:44 »
Hi

User Group Limits
you wrote
Quote
I have two categories(SD files and HD files)

UG=Daily Limit
Guest=0
Register=1 SD file and 0 HD
SD Group=10 SD files and 0 HD
HD Group=10 SD files and 1 HD file

First we must set up the various user groups and ensure that these are funtioning BEFORE we concern ourselves about setting Download limits

I have assumed tht the SD and HD categories are top level categories.  If they are not the scheme will probaly be unworkable or even more complex!

You may have other top level jD Categories that allow regular access from public or other UGs. 
If you do have other top level categories then select each one in turn and ensur that their Public Permission is set to Allow and not Inherit
as later in ths process we will be removing the Global Download permission.


The SD User Group (SD-ug) and the Registerd Group need permission and view acces to the SD Category
The HD UG User Group (HD-ug) need access to both SD cat and HD cat.

Create the SD-ug with registered as its parent and in jD User Group settins make its rank say 121
Create the HD-ug with SD-ug as its parent and in jD User Group settins make its rank say 123
This means that if someone is in both UGs the the HD-ug settings take preference.

Create Access Level HD-view with HD-ug and Superuser as it members.

Create test members of the Regestered Ug, say called Reg-user.  Repeat creating test members SD-user and HD-user for the SD-ug and HD-ug respectively.

Initially jD will have set the Public global permission to Allow Downloads.  We first need to remove that permission and set it to Inherit (NEVER use Deny).
To access what are referred to as global or system permissions  go to the Joomla! System tab and select Global Configuration. 
In the lefthand panel you will find jDownloads listed. Click on jDownloads. Next select the Permissions tab.
Ensure you are looking at the Public settings.  If the Download permission is set to Allowed change to Inherited and SAVE (do not use Save & Close yet). 
When the permissions return view appears and you can see that Download permission is set as inherited the use Save & Close.
Because earlier we had set other top level categories to allow Download this will not affect current users, except temporarily the Registered, SD and HD users.

The Registered Ug, the SD-ug  and HD-ug have to access the SD Category so set the SD Category view Access Level to Register
 and set the permission for the Register UG to Allow for Download.
This will be inherited by the SD-ug and HD-ug.

Set the HD category access level to HD-view and set Download permission for the HD-ug to Allow.

Now check that members of the Regiser UG can download from SD Category (and any of its sub cats)
Repeat for the SD users and then for the HD users.  I would advise keeping notes of your tests as it can be confusing initially!!
Then of course check that HD users can download from the HD category set.

When you have clarified that all is well then we can begin the setting of the Limits
Please advise when things are set up as above and tested!

Colin
Colin M
*
Re: Multi usergroup and limitation
« Reply #2 on: 26.04.2022 10:47:28 »
Hi
If you have set up the various Access levels and usergroups as suggested then applying the limits is described in article
https://www.jdownloads.net/documentation-for-v3-9/general-items-v3-9/setting-user-limits

Note that the option  'Activate log function for Downloads?' in tab 'Global Settings' in jDownloads Options must be set to Yes

Colin
Colin M
Re: Multi usergroup and limitation
« Reply #3 on: 11.05.2022 13:47:31 »
Hi Colin,

Thanks a lot for comprehensive answer  :-*

But for limitation for categories not user group

I have two categories(SD files and HD files)

UG=Daily Limit
Guest=0
Register=1 SD file and 0 HD
SD Group=10 SD files and 0 HD
HD Group=10 SD files and 1 HD file
*
Re: Multi usergroup and limitation
« Reply #4 on: 13.05.2022 15:46:39 »
Hi
The Downloads limitation is controlled by User Group and not by Category. So sorry but not possible to have limits set on a Category basis
 
Clearly setting relevant permmission or access level on the HD category sorts that for the other two user groups.


Colin
Colin M