solved Block Audio Download for Guests

paatie
@paatie
8 years ago
36 posts
Hi Guys

I need some help. I want to configure my site download button to only allow logged in users. If not logged in it must redirect to the login page. I have tried the steps on the following link but they are not working https://www.jamroom.net/the-jamroom-network/documentation/howto/1389/howto-allow-downloads-to-logged-in-users

I'm on version 6.0.5

Regards
updated by @paatie: 05/04/17 09:46:48PM
douglas
@douglas
8 years ago
2,797 posts
Hello,

After completing the steps here:
https://www.jamroom.net/the-jamroom-network/documentation/howto/1389/howto-allow-downloads-to-logged-in-users

Did you reset your cache?

ACP > System Tools > Reset Cache

OR

ACP > Core > System Core > Tools > Reset Cache

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
paatie
@paatie
8 years ago
36 posts
douglas:
Hello,

After completing the steps here:
https://www.jamroom.net/the-jamroom-network/documentation/howto/1389/howto-allow-downloads-to-logged-in-users

Did you reset your cache?

ACP > System Tools > Reset Cache

OR

ACP > Core > System Core > Tools > Reset Cache

Hope this helps!

Hi

Thanks for the reply, yes I have reset the caches but still it doesn't work. Any other suggestions?
michael
@michael
8 years ago
7,772 posts
If it doesn't work, then you need to figure out the cause of the issue. My guess is editing the wrong template.

So when you are following the steps in the link, to make sure you are looking and editing in the correct place put some place holder text.

Add THIS IS MY PLACEHOLDER, WHERE DOES THIS COME OUT????????? or some other easy text to see.

save the template, refresh the caches and go to the URL where you're expecting to see changes. If you see the "THIS IS MY PLACEHOLDER, WHERE DOES THIS COME OUT????????" message you know your edits are working and from there you just need to make sure the code is.
douglas
@douglas
8 years ago
2,797 posts
This is how should probably do it.

Go to any audio detail page and click the item action button, it looks like an eq icon, then click the modify button for the download button and set the "Group" selection field to logged in users and Save Changes.

You'll probably want to reset your cache as well.

You can do the same for the profiles audio list page.

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
michael
@michael
8 years ago
7,772 posts
What douglas is talking about here ^ is item action buttons, the docs are here.

Docs: "Item Action Buttons"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/1508/item-action-buttons
paatie
@paatie
8 years ago
36 posts
Thanks guys it worked, sorry for taking long to report back. It was my caches that were not reseting for some reason
michael
@michael
8 years ago
7,772 posts
Good news. Thanks for the update @paatie :)

Tags