jDownloadsownloads.com


Author Topic: Simple permission download  (Read 130 times)

0 Members and 2 Guests are viewing this topic.

Offline Andy-013

  • Newbie
  • *
  • Posts: 2
Simple permission download
« on: 20.02.2021 11:20:32 »
Hi,

I have integrated jdownloads in joomla article

1. Can I skip "Download Details" ? I would like the person to download directly instead of getting download details page which use the layout : "Example Details Layout", "Standard Details Layout - Full Info" etc..

2. I would like only registered users to be able to download. Should I set this in "Downloads" > "My Download item" > "permissions" ?
 
3. Is it possible to restrict the number of downloads per user ? Let's say out of 10 downloadable image, he can download only 3 per day.

Offline ColinM

  • Moderator
  • *
  • Posts: 3.927
Re: Simple permission download
« Reply #1 on: 21.02.2021 13:16:38 »
Hi
Most of what you want is in the documentation - but there is a lot of documentation!! so I will give you a guide
First of all  please look athttps://www.jdownloads.net/documentation-for-v3-9/modules-plugins-v3-9/using-the-content-plugin-in-articles-and-modules
First I suggest you use one of the 'short' layouts. You can set up which layout is used in Options - Content Plugin tab in the Default Layout option

Quote
"Can I skip "Download Details" ? I would like the person to download directly instead of getting download details page which use the layout : "Example Details Layout", "Standard Details Layout - Full Info" etc.."
To use a direct Download Go to Options - Front End Tab and see the Download sequence section. for more info see
https://www.jdownloads.net/documentation-for-v3-9/options-configuration-v3-9/a-tutorial-on-the-frontend-optionshttps://www.jdownloads.net/documentation-for-v3-9/faq-v3-9/download-actions-direct-via-summary-page-or-via-download-details

Quote
I would like only registered users to be able to download. Should I set this in "Downloads" > "My Download item" > "permissions" ?
The simplest way of resoving this is to go to jD Options and select the Permissions tab.  Select the Public User Group and change the permission setting of Download to Inherited - NEVER set to Denied.  Then go to the Registered UG to Allowed.  (little green ticks will be shown against the UGs you have changed)  Now do a Save  ( the green ticks dissappear)  These permissions will then propogate through all yor jD categories and Downloads.Users who are not logged in will still be able to see the Downloads but will not be able to Download.
For more info see
https://www.jdownloads.net/documentation-for-v3-9/access-user-group-permissions-v3-9/an-initial-view-of-permissionshttps://www.jdownloads.net/documentation-for-v3-9/access-user-group-permissions-v3-9/user-groups-settings-overview-2

Quote
Is it possible to restrict the number of downloads per user ? Let's say out of 10 downloadable image, he can download only 3 per day.

Here you will need to access User Group Settings in the Backend.  As your users are in the Registered UG the in User Groups Settings select the Registered UG.Now select the Limits Tab.  You will see limits for Daily, Weekly and Monthly.  Obviously you set the value 3 in the Daily Download Limit option.  I suggest you do not use any of the other options below the Monthly limit option.
Also there is a note "When you setup user group limits, it is very important that you activate jDownloads logging in Options - Global Settings, otherwise this function will not work properly. Also remember that the duration for keeping log data sets should be set in the jDownloads system plugin to avoid excessive database growth."  The Default setting for the system plugin is 30 days so that is OK, and the default setting for 'Activate Log Function' is Yes. But please check.
Best wishes
Colin

Offline Andy-013

  • Newbie
  • *
  • Posts: 2
Re: Simple permission download
« Reply #2 on: 01.03.2021 14:45:54 »
Hi,

many thanks for your detailed explanation.

1. jd options > frontend > Download Sequence
Activate direct-downloading : Yes
View Download detail page : no
Use Downloads title as download link : Yes

I have layout (jDownloads: Edit Layout: Downloads) for download as :
Code: [Select]
<div class="jd_files_oneline " style=""><b>{file_title}</b>&#160;</div>{url_download}
{jd_file file==1} (in the content) will load the name of the download and a download button just after.
{jd_file file==1} link will open in the same window a download page with a Table and the download button whereas the link for download button will open the same content but in a new window.

Am I doing something wrong ?

2. Perfect - Working exactly as I wanted

3. Perfect - Working exactly as I wanted too