Question on allowing streaming but limiting downloads to specific quotas or profile types

radiomusicgroup
radiomusicgroup
@charles-brady
9 years ago
107 posts
I'm using the flashback skin.

Is there a way in JR5 to set up a quota/profile type that would only allow streaming but not downloading?

I have to enable downloading for one group of members but it would sure be an awesome thing if there was a way to set up a quota or profile that when logged in could only stream a song and not be able to download it.

The option now seems to be an all or none option.... :(

I can already tell this is going to be a make or break option for me. I have DJ's who I want to have free access to listen and download for free but I also have artists who want to be able to see beyond the first page of the site....


updated by @charles-brady: 02/09/16 09:02:35PM
paul
@paul
9 years ago
4,326 posts
You would need to edit the audio templates where the download button shows for this. Something like -

{if $_user.profile_quota_id == x}
    // Download button code here
{/if}

where 'x' is the ID of the quota who is allowed downloads.
Let me know if you need more specific help with this.


--
Paul Asher - JR Developer and System Import Specialist
radiomusicgroup
radiomusicgroup
@charles-brady
9 years ago
107 posts
Looks simple but I know it's not.. so would I start just before the download block code or below it?
QuotaLimitCode.jpg
QuotaLimitCode.jpg  •  130KB

michael
@michael
9 years ago
7,714 posts
First thing I like to do when trying to figure out where to put something new in is to put:
WHERE AM I?
or
THIS IS HERE!!!
or
ELEPHANTS
into the place im interested in. Then check the location that I expect to see that, if it comes out where I expect it then I know I'm editing in the right location.

Only after I KNOW I'm editing the right location do I try to figure out the right code for what I'm trying to do.
paul
@paul
9 years ago
4,326 posts
Also make sure your site is in Developer Mode when doing template work so that changes show immediately-
ACP=>Developer=>Global


--
Paul Asher - JR Developer and System Import Specialist
radiomusicgroup
radiomusicgroup
@charles-brady
9 years ago
107 posts
Thanks @paul and @michael !

@michael I always ask my wife each morning [ 1 WHAT DAY IS IT ] but I don't think that is going to help me in this... :)
michael
@michael
9 years ago
7,714 posts
when she replies "Its my birthday" you know your in trouble if you had to ask. :)

So once you know where you are, then its just step by step until you get to where you need to go.

* I know where I am
* I know what I want to put here
* I have the correct code
* I have implemented it
* I have checked it
* do something else.