solved MOD: Audio Support - Song Download Checkbox

MAD
MAD
@madc
11 years ago
600 posts
Is there anyway an artist can upload a song or an album and let them select if it is downloadable or not by way of a checkbox?
I have the mp3 downloads unblocked and I have set the tpl file to display the download section. But it still doesn't give them the opportunity to decide wether they allow it or not which is really what we need.

Am I missing something?


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 01/21/14 05:01:36AM
michael
@michael
11 years ago
7,717 posts
Its not a core style feature, but its real easy to add.

Check out this video:
"Using the Form Designer tool"
Using the Form Designer tool

Then add a checkbox to the audio forms.
Then add a surround to the download locations.
{if $item.audio_downloadable == 'on'}
//show the download url.
{/if}
MAD
MAD
@madc
11 years ago
600 posts
Thanks Michael . You sir are a legend!
I will try this shortly.


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
brian
@brian
11 years ago
10,148 posts
This actually something in the latest audio module which will be out today - basically if you uncheck the "Block MP3 Downloads" and the song is NOT for sale, then a download button will show up in the audio detail page.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
MAD
MAD
@madc
11 years ago
600 posts
We dont sell any music. We want to give the option to the artist to allow downloads if they want to.


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
brian
@brian
11 years ago
10,148 posts
Jamroom Core 5.1.3 is out, so update to that in your Marketplace -> System Updates, then update to the latest Audio Support module - you can then unblock MP3 downloads and the download button will show up.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@luis890
11 years ago
57 posts
ba9801:
We dont sell any music. We want to give the option to the artist to allow downloads if they want to.

Jamroom Core 5.1.3 is out, so update to that in your Marketplace -> System Updates, then update to the latest Audio Support module - you can then unblock MP3 downloads and the download button will show up.

Hope this helps!

I just updated the core and the module to the latest version, but I did not see any option in the artist profile to allow download or not.

Also when the "Block MP3 Downloads" is unchecked in the audio support module, the download image does appears, but when clicked in the download image, it allows to download the mp3 file to any type of visitor. I just went to the below ling and downloaded the song with out having to log in.
http://exposehits.com/kayskeem/audio/1/01-intro

I will prefer to allow downloads only when the user is logged in. If not logged in, there should be a message stating to log in to download, or a least direct to login or create an account page.

Could you please fix that. I'm very sure everybody will prefer that.
michael
@michael
11 years ago
7,717 posts
You can add that to your site very easily by wrapping the download link in
{if jrUser_is_logged_in()}
//the download link
{/if}
MAD
MAD
@madc
11 years ago
600 posts
Hi Michael,
So the above edit will only show the download link if the user is logged in , correct?

I think what luis890 is asking ( as am I ) if the download link can be displayed to any user wether they are logged in or not.

But if they aren't logged in and click the download link, it would give them a message like
" You need an account to download songs. Click here to register"

Me myself , I feel that the download link should be there to entice the users to register ??
If they don't want to than they get no download, Simple.

Is there anyway of working that?


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 11/27/13 04:53:34AM
MAD
MAD
@madc
11 years ago
600 posts
brian:
This actually something in the latest audio module which will be out today - basically if you uncheck the "Block MP3 Downloads" and the song is NOT for sale, then a download button will show up in the audio detail page.

Hope this helps!

We don't sell songs Brian.
We just want the ability for the artists to allow downloading of their material or not. ( Any smart person can work around that we know )

I think that if an Artist posts their music they should still have the call.
Not wether it is in the shop or not.
As they may wish the user to listen to their music and either wish the user to download or purchase, Shouldn't that be up to the Artist?

I think a few more fields need to be set to distinguish this.

I have implemented Michaels edits above and they work fine as the uploader ( artist ) can tick the box wether they want it downloaded or not.
I haven't yet tried the new version but from your description you are saying UNLESS IT'S IN THE SHOP then a download button will show up on the artists song?

This may not be what Artists want?
They may just want to stream but from my understanding from your post you are saying:

If mp3 downloads are unblocked
And the song is not in the shop
Then the download button will be visible and useable?

I feel this is not what Artists want as they want to have a FEW more choices
Like
Only allow stream ( ie im not selling my songs ) etc

I think that it should be set as Michael said as it gives the artists full control.
If they wish to put it in the shop then they would not allow downloads from the profile.....correct?
And then a link from the song would say like " BUY NOW: 99 Cents"

They would have a BUY IT NOW button or something that would send them to the shop????

Sorry if i'm missing something but it only make sense for an artist driven site. If you are a label or something it may be different.

Thoughts?


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 11/27/13 05:08:48AM
brian
@brian
11 years ago
10,148 posts
ba9801:
Thoughts?

That's fine - if you want to add a checkbox into the audio form that says something like "allow download" (or whatever), just add in the checkbox with the Form Designer, then check for it in the jrAudio/templates/item_detail.tpl file by adding an extra "if" condition around the download button - i.e.

{if $audio_allow_download == 'on'}

   ...  the current download button code ...

{/if}

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@luis890
11 years ago
57 posts
I personally think that this should be implemented in the module the same as JR4. The reason I brought Jr4 at the beginning for my sites, was because this functionality and options available for artists(Stream only, Download and stream). But now that we have to customize and create forms, yes is doable but why pay for a module where we have to do standard consummations. I totally agreed on enhanced customization, but "download, stream only and allow logged in to download" should be standard. Don't you think?
Please don't get offended this is my point of view. I already have jr5 license for my other sites, but I'm debating whether to update or not since I see a lot of limitation on jr5 specially for music.
brian
@brian
11 years ago
10,148 posts
luis890:
I personally think that this should be implemented in the module the same as JR4. The reason I brought Jr4 at the beginning for my sites, was because this functionality and options available for artists(Stream only, Download and stream). But now that we have to customize and create forms, yes is doable but why pay for a module where we have to do standard consummations. I totally agreed on enhanced customization, but "download, stream only and allow logged in to download" should be standard. Don't you think?
Please don't get offended this is my point of view. I already have jr5 license for my other sites, but I'm debating whether to update or not since I see a lot of limitation on jr5 specially for music.

We want to make customizing your forms as easy as possible - this ensures the script works for the widest number of use cases possible. In order to do that we need to require as few as fields as possible, and if we code those into the "core" then it decreases the flexibility of the script.

For example - I would personally have no use for this setting, but to you it is important. As it stands now we both can utilize this - if we change it to suit only YOUR use case, then now it's not going to work for me.

So the correct want to handle this is the way it is being done - however I want to be sure it's easy, so if you feel that adding a custom form field to handle this for your specific case is too hard please let me know what sections of the form designer are not working for you, or if you have suggestions on how you think it should be done (keeping in mind that it's not going to be coded this way "out of the box").

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
I think what it boils down to is that the Out Of The Box solution provides an overall easy understanding and people are not seeing bloatware. I can pick and choose what I want and discard the rest.

When new users came on board in JR4, they were presented with 20+ fields to create a song while only 2 were mandatory, the song name and the file. Personally I like this way better.
brian
@brian
11 years ago
10,148 posts
Dazed:
When new users came on board in JR4, they were presented with 20+ fields to create a song while only 2 were mandatory

We really focused on this for JR5 - the one thing we heard over and over again was JR4 was too confusing for users. That means we had to simplify things as much as we can.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
michael
@michael
11 years ago
7,717 posts
ba9801:
Hi Michael,
So the above edit will only show the download link if the user is logged in , correct?

I think what luis890 is asking ( as am I ) if the download link can be displayed to any user wether they are logged in or not.

But if they aren't logged in and click the download link, it would give them a message like
" You need an account to download songs. Click here to register"

Me myself , I feel that the download link should be there to entice the users to register ??
If they don't want to than they get no download, Simple.

Is there anyway of working that?

throw an {else} in.

{if jrUser_is_logged_in()}
//the download link
{else}
//show the button image but with a link to the login page
{/if}
alt=
@kayskeem
11 years ago
200 posts
luis890:
ba9801:
We dont sell any music. We want to give the option to the artist to allow downloads if they want to.

Jamroom Core 5.1.3 is out, so update to that in your Marketplace -> System Updates, then update to the latest Audio Support module - you can then unblock MP3 downloads and the download button will show up.

Hope this helps!

I just updated the core and the module to the latest version, but I did not see any option in the artist profile to allow download or not.

Also when the "Block MP3 Downloads" is unchecked in the audio support module, the download image does appears, but when clicked in the download image, it allows to download the mp3 file to any type of visitor. I just went to the below ling and downloaded the song with out having to log in.
http://exposehits.com/kayskeem/audio/1/01-intro

I will prefer to allow downloads only when the user is logged in. If not logged in, there should be a message stating to log in to download, or a least direct to login or create an account page.

Could you please fix that. I'm very sure everybody will prefer that.

thats a good idea to only download when you are a member and also allow artist to enable download or no download on their songs. I had an artist who didnt want their song downloaded so I had to turn off all downloads for the whole website.
alt=
@kayskeem
11 years ago
200 posts
can someone provide me the full code for that and where to put it ? These posts are all over the place with the codes. I want it where artists can allow download or no download on their songs and if they allow download users have to be members to download it.
updated by @kayskeem: 11/28/13 09:53:01PM
alt=
@kayskeem
11 years ago
200 posts
Michael thanks !!!
michael
@michael
11 years ago
7,717 posts
:)
alt=
@kayskeem
11 years ago
200 posts
Problem I did the code but when I upload after it uploads the song the page goes blank (white page). Also Could you please include how to update already uploaded tracks for the download option ? Please thanks.
michael
@michael
11 years ago
7,717 posts
First whenever anything goes strange, run the integrity check. If that doesnt fix it, try this.

* go into the update for that song
* click on the Form Designer button.
* make sure it has that added form element marked as active too.
alt=
@kayskeem
11 years ago
200 posts
got it what happened was when i added the code in the item_index i left out an wow your directions were so easy to do but i had to be careful. I love how jamroom is so flexible too.
MAD
MAD
@madc
11 years ago
600 posts
Sorry I posted some stuff here https://www.jamroom.net/the-jamroom-network/documentation/howto/1389/howto-allow-downloads-to-logged-in-users
If anyone can give me some ideas?


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
brian
@brian
11 years ago
10,148 posts
You are missing the anchor tags around your icon - this:

{jrCore_icon icon="download"}

Just creates an icon - nothing is going to happen if you click on it. You need to have an anchor tag around the icon:

{jrCore_module_url module="jrAudio" assign="murl"}
<a href="{$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}">{jrCore_icon icon="download"}</a>

You also have an error in your posted template in the comments - you have a paren instead of a squiggly bracket:

(jrCore_icon icon="download"}

should be:

{jrCore_icon icon="download"}

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
MAD
MAD
@madc
11 years ago
600 posts
Yep . It is AOK now
Amended Code

                            {if $item.audio_downloadable == 'on'}
            {if $_conf.jrAudio_block_download == 'off' && (empty($item.audio_file_item_price) || $item.audio_file_item_price == '0')}
                {if jrUser_is_logged_in()}
                      <a href="{$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}">{jrCore_icon icon="download"}</a>
                {else}
                <a href="{$jamroom_url}/user/login" title="Log in to Download">{jrCore_icon icon="download"}</a>
                {/if}
             {/if}
            {/if}
                    



--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 12/07/13 09:59:19AM
Eddy
Eddy
@eddy
11 years ago
479 posts
Nice feature, wondered about this myself.

Tags