download privileges

izhmel
@izhmel
5 years ago
1,323 posts
How do you give download privileges to a given quata other than admin ?


--
The Scientist
dubmusic.com
Thanks for any assistance.

updated by @izhmel: 12/04/19 01:24:47AM
paul
@paul
5 years ago
4,326 posts
izhmel:
How do you give download privileges to a given quata other than admin ?

This isn't doable by default, but what you could do is enable downloads globally in the Audio module, then modify the audio list and detail templates to test for 'allowed' quota(s) and only show the download button if true.
hth


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
5 years ago
1,323 posts
could you give more detailed info i.e. what line to edit?


--
The Scientist
dubmusic.com
Thanks for any assistance.
paul
@paul
5 years ago
4,326 posts
Try this in the jrAudio item_detail.tpl template, about line 11

{$exclude_button = ""}
{if $_user.profile_quota_id != x}
    {$exclude_button = "jrAudio_item_download_button"}
{/if}
{jrCore_item_detail_buttons module="jrAudio" field="audio_file" item=$item exclude=$exclude_button}

where 'x' is the quota ID for allowed downloads.
hth


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
5 years ago
1,323 posts
paul:
Try this in the jrAudio item_detail.tpl template, about line 11

{$exclude_button = ""}
{if $_user.profile_quota_id != x}
    {$exclude_button = "jrAudio_item_download_button"}
{/if}
{jrCore_item_detail_buttons module="jrAudio" field="audio_file" item=$item exclude=$exclude_button}

where 'x' is the quota ID for allowed downloads.
hth

cant find those codes .
There no jrAudio item_detail.tpl , only tpl with jrAudio listed below

jrAudio_black_overlay_player.tpl
jrAudio_blue_monday.tpl
jrAudio_button.tpl
jrAudio_gray_overlay_player.tpl
jrAudio_player_dark.tpl
jrAudio_solo_player.tpl
jrEmbed_item_list.tpl

I wish this feature could come back where you could check what quota to give downloads access to by just checking a box


--
The Scientist
dubmusic.com
Thanks for any assistance.
paul
@paul
5 years ago
4,326 posts
Quote: There no jrAudio item_detail.tpl

Look for the item_detail.tpl template in the /modules/jrAudio/templates folder.

Also check that there is no template override file (jrAudio_item_detail.tpl) in your active skin. If there is, do the modification there.
hth


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
5 years ago
1,323 posts
paul:
Quote: There no jrAudio item_detail.tpl

Look for the item_detail.tpl template in the /modules/jrAudio/templates folder.

Also check that there is no template override file (jrAudio_item_detail.tpl) in your active skin. If there is, do the modification there.
hth

That is where I also looked


--
The Scientist
dubmusic.com
Thanks for any assistance.
izhmel
@izhmel
5 years ago
1,323 posts
How can I add the downloads option under profile tweaks ? " Allow Downloads"

and add under 'Daily Limits' downloads limits , set the download limit to a desired quota i.e. 10 downloads per day , 10 downloads weekly


--
The Scientist
dubmusic.com
Thanks for any assistance.

updated by @izhmel: 08/28/19 12:12:14PM
paul
@paul
5 years ago
4,326 posts
izhmel:
How can I add the downloads option under profile tweaks ? " Allow Downloads"

and add under 'Daily Limits' downloads limits , set the download limit to a desired quota i.e. 10 downloads per day , 10 downloads weekly

You're going to need a custom module to do this.
Maybe use this form to specify exactly what you need and then we can assess it and quote you - https://www.jamroom.net/form/project_overview

Thanks


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
5 years ago
1,323 posts
This was in earlier versions JR 3 , i.e. radio station , by selecting what quota you want to make the station from , select what quota you want to give download access to and how many per day and I don't understand why these features are taken away in JR6 ?

when you have been using JR from JR 3 you will understand about the missing features in JR 6 and want them back in JR6..

JR6 is a very good platform but it would be good to bring back some of those features i.e. snippets you could copy and paste a html code from any artist profile and the JR music player would be displayed on the on a website ..


--
The Scientist
dubmusic.com
Thanks for any assistance.
paul
@paul
5 years ago
4,326 posts
Actually, download limits by quota can already be done. Checkout the User Limits module here - https://www.jamroom.net/the-jamroom-network/networkmarket/155/user-daily-limits


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
5 years ago
1,323 posts
so what needs to be set is what quota gets download access if there is a price currently only admin can downloads if there is a price ..

I want to give download access to i.e. friends quota even if there is a price ..

I still cant find the code you suggested

{$exclude_button = ""}
{if $_user.profile_quota_id != x}
{$exclude_button = "jrAudio_item_download_button"}
{/if}
{jrCore_item_detail_buttons module="jrAudio" field="audio_file" item=$item exclude=$exclude_button}


--
The Scientist
dubmusic.com
Thanks for any assistance.
paul
@paul
5 years ago
4,326 posts
The code is suggested was to replace the existing

{jrCore_item_detail_buttons module="jrAudio" field="audio_file" item=$item}

code on line 11 of the jrAudio module's item_detail.tpl template.

However, as I suggested above, you will not need to do that now as the 'User Limits' module I mentioned above will provide the functionality you requested.
hth


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
5 years ago
1,323 posts
paul:
The code is suggested was to replace the existing

{jrCore_item_detail_buttons module="jrAudio" field="audio_file" item=$item}

code on line 11 of the jrAudio module's item_detail.tpl template.

However, as I suggested above, you will not need to do that now as the 'User Limits' module I mentioned above will provide the functionality you requested.
hth

but if there is a price the button is not available


--
The Scientist
dubmusic.com
Thanks for any assistance.
izhmel
@izhmel
5 years ago
1,323 posts
izhmel:
paul:
The code is suggested was to replace the existing

{jrCore_item_detail_buttons module="jrAudio" field="audio_file" item=$item}

code on line 11 of the jrAudio module's item_detail.tpl template.

However, as I suggested above, you will not need to do that now as the 'User Limits' module I mentioned above will provide the functionality you requested.
hth

but if there is a price the button is not available , I want the button to be available to a given quota I.e . friends quota can get downloads ..



--
The Scientist
dubmusic.com
Thanks for any assistance.
paul
@paul
5 years ago
4,326 posts
Allowing regular users to download items that are for sale, under any circumstances is something that cannot be done within Jamroom.
Sorry


--
Paul Asher - JR Developer and System Import Specialist
izhmel
@izhmel
5 years ago
1,323 posts
It was that way in JR 3- JR 4 so I would not agree it is not possible..
How do you set up privileges for different users such as admins , profile admins , and how do you restrict users from the admin panel based on quota ?

if the admins , profile admins can get the downloads button other users can get the download button , the only difference is the will not get the ACP privileges

Thanks


--
The Scientist
dubmusic.com
Thanks for any assistance.

updated by @izhmel: 09/01/19 09:31:27AM
brian
@brian
5 years ago
10,148 posts
izhmel:
It was that way in JR 3- JR 4 so I would not agree it is not possible.

That's not true - the only users that have ever been allowed to download items from the "vault" without paying were admin or master users.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags