jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: wacl3 on 19.01.2020 06:53:25

Title: users have to login after pressing create download menu item
Post by: wacl3 on 19.01.2020 06:53:25
Hello,
I would like to show a menu item create new download, when user presses on it, it requires the user to log in if not already logged in.  When logged in, it will direct you to a reg user to create download in a set category and manager user that allows the user to create a download in any category.
thanks
Title: Re: users have to login after pressing create download menu item
Post by: ColinM on 19.01.2020 21:21:45
HiRegistered
Not quite sure I understand!!
First being able to redirect a non-logged in user to a login page is 'challenging' and not really possible in jD,#].
There is some relevant documentation inhttp://www.jdownloads.net/documentation-for-jd3-2/access-controls-user-group-permissions-v3-2
However in summary do the following in order to do the other parts you want you will need  two user groups.
One called say CatUploaderUG  set with Parent 'Registered'.  Set this UG to have a Ranking value of say 127.  Create a View called CatuploaderView and join to this view.

And create another user group called say UploadManagerUG with parent CatUploaderUG and a ranking of say 131 (must be higher than ranking for  CatUploaderUG). Create a view called UploadManagerView which has UploadManagerUG allowed.
Create two menu items to Create a Download.  One of them is set to have view CatuploaderView and the other to have UploadManagerView.  In the CatUploader one go to the Options tab and set "Default category" to Yes and specify the required category in the "Choose a category" from the pulldown.

Because of Joomla! inheritance the manager UG will see both menu items but the other UG will only see its menu item.
Now untick the 'May select a different Category' in usergroup settings for CatUploaderUG but ticked for the UploadManagerUG settings
Hope this helps
ColinM