Allow Artists to just stream music.

chorton581
@chorton581
11 years ago
139 posts
I figured i would try here. I see some articles about this already but can not seem to get it figured out. It was working before i turned on foxycart. (I think)
I followed the docs and posts located here.
http://www.jamroom.net/the-jamroom-network/forum/using-jamroom/2658/mod-audio-support-song-download-checkbox and here
https://www.jamroom.net/the-jamroom-network/documentation/howto/1389/howto-allow-downloads-to-logged-in-users

The issue is that the home page(music.tpl) still allows people to download song, it is marked "Free" even though they have the downloadable checkbox unchecked.

Any help here would be great.

updated by @chorton581: 01/26/14 06:12:32AM
brian
@brian
11 years ago
10,148 posts
So the download button still shows even if the option is unchecked? What does your ActiveSkin/jrAudio_item_list.tpl file look like in the button area?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
chorton581
@chorton581
11 years ago
139 posts
that is the jrAuido item_detail
brian
@brian
11 years ago
10,148 posts
Make sure if you post code here on the forum, that you surround the code with code blocks - i.e.

[ code ]
... your code here ...
[ /code ]

With no spaces between the brackets and the word "code".

The problem here is that this file has not been modified in any way - it's still using the default jrCore_item_list_buttons, which has no idea about your custom button setup.

Question:

- is this file called "jrAudio_item_detail.tpl" and located in your active skin directory?
- or did you post the contents of the jrAudio/templates/item_detail.tpl file?

How was this working previously?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
chorton581
@chorton581
11 years ago
139 posts
sorry about the code part. I forgot.
this is the jrAudio/templates/item_detail.tpl file
I do not have
jrAudio_item_detail.tpl" in the ProJam skin
brian
@brian
11 years ago
10,148 posts
Okay that is part of the problem - if you are modifying that file, then the next time you update the Audio module, the changes will be lost.

Check out this small FAQ on upgrading:

https://www.jamroom.net/the-jamroom-network/documentation/problems/1527/i-just-upgraded-and-lost-my-changes

As I think you can just recover what was previously working for you - if you previously modified the jrAudio/templates/item_list.tpl file, then just copy it from the backup directory into your active skin directory as:

Active_Skin/jrAudio_item_list.tpl

Hope this helps!


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

updated by @brian: 12/24/13 08:27:34AM
chorton581
@chorton581
11 years ago
139 posts
sort of the same reason the favicon goes away.
brian
@brian
11 years ago
10,148 posts
chorton581:
sort of the same reason the favicon goes away.

I'm not following you - if your favicon.ico is in your JR root directory, it will never be overwritten.

For Core 5.1.7 it has been moved from the img directory, to the root directory:

https://www.jamroom.net/the-jamroom-network/tracker/244/faviconico-make-sure-it-can-be-replaced

I'm not sure how that is related to this issue though...


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
chorton581
@chorton581
11 years ago
139 posts
favicon has nothing to do with it.
I started with jr 5.1.3 then moved to 5.1.6 so the custom favicon was in old 5.1.3 image folder.
sorry for confustion.
I am going to try to fix the audio issue
chorton581
@chorton581
11 years ago
139 posts
that did not fix it. It is still the same issue. I will attach a doc to this.
It may have been prior to the foxy cart install when it appeared to work.
Nutshell the best i can put it.
User un-checks downloadable box which is marked on by default
It shows up still as downloadable on music.tpl in projam.
I am 100% sure i am not editing the correct thing because i am unsure what to edit based on the documentation. That is what i am trying to get clarification.
I will also clone my skin and make the changes in the FAQ
https://www.jamroom.net/the-jamroom-network/documentation/problems/1527/i-just-upgraded-and-lost-my-changes
pdf


updated by @chorton581: 12/24/13 10:16:19AM
chorton581
@chorton581
11 years ago
139 posts
ok so i followed these directions
https://www.jamroom.net/the-jamroom-network/documentation/problems/1527/i-just-upgraded-and-lost-my-changes

now have new skin and all is working. I also now have a
jrAudio_audio_updates.tpl and
jrAudio_item_detail.tpl in
my new active skin directory
chorton581
@chorton581
11 years ago
139 posts
ORIGINAL ActiveSkin/jrAudio_item_detail.tpl

{jrCore_module_url module="jrAudio" assign="murl"}


    
        

            {if $_conf.jrAudio_block_download == 'off' && (empty($item.audio_file_item_price) || $item.audio_file_item_price == '0')}
                {jrCore_icon icon="download"}
            {/if}

            {jrCore_module_function function="jrFoxyCart_add_to_cart" module="jrAudio" field="audio_file" item=$item}
            {jrCore_module_function function="jrFoxyCartBundle_button" module="jrAudio" field="audio_file" item=$item}
            {jrCore_module_function function="jrPlaylist_button" playlist_for="jrAudio" item_id=$item._item_id}

            {jrCore_item_create_button module="jrAudio" profile_id=$item._profile_id action=$action}
            {jrCore_item_update_button module="jrAudio" profile_id=$item._profile_id item_id=$item._item_id}
            {jrCore_item_delete_button module="jrAudio" profile_id=$item._profile_id item_id=$item._item_id}

        
        {$item.audio_title}
        
            {$item.profile_name} » {jrCore_lang module="jrAudio" id="41" default="Audio"} » {$item.audio_title}
        
    

    

        

            
                

                    


updated by @chorton581: 12/24/13 02:57:37PM
chorton581
@chorton581
11 years ago
139 posts
ORIGINAL ActiveSkin/jrAudio_audio_updates.tpl
{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()}
                      {jrCore_icon icon="download"}
                {else}
                {jrCore_icon icon="download"}
                {/if}
             {/if}
            {/if}



    
        
            {jrCore_media_player type="jrAudio_button" module="jrAudio" field="audio_file" item=$item}
        
        
            {if isset($item.audio_file_original_name)}
            {jrCore_lang module="jrAudio" id="14" default="audio file"}:  {$item.audio_file_original_name}
            {else}
            {jrCore_lang module="jrAudio" id="14" default="audio file"}:  {$item.audio_file_name}
            {/if}
            {jrCore_lang module="jrAudio" id="26" default="audio length"}:  {$item.audio_file_length}
            {jrCore_lang module="jrAudio" id="27" default="audio bitrate"}:  {$item.audio_file_bitrate}kbps
        
    


updated by @chorton581: 12/24/13 02:58:37PM
chorton581
@chorton581
11 years ago
139 posts
i then reset the original module templates and edited the
ActiveSkin/jrAudio_item_detail.tpl to this

{jrCore_module_url module="jrAudio" assign="murl"}
<div class="block">

    <div class="title">
        <div class="block_config">

            {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}

            
                   

updated by @chorton581: 12/24/13 03:32:01PM
chorton581
@chorton581
11 years ago
139 posts
That is all i have done and wait to hear back. Enjoy your holidays.
SteveX
SteveX
@ultrajam
11 years ago
2,584 posts
Long read.

Enjoy your holdiay too.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
michael
@michael
11 years ago
7,717 posts
The jrFoxycart module does allow songs without a price to be downloaded.

You want songs without a price to not be downloadable?
chorton581
@chorton581
11 years ago
139 posts
You want songs without a price to not be downloadable? Yes

There are 3 options that should be available
1. Artist can put price on song and foxycart sells it. Not a problem
2. Artist can mark the song downloadable and its can be downloaded. Not an issue because no price it is downloadable.
3. This is the issue: Artist does not want to sell song or allow it to be downloaded. He just wants it to be streamed.
chorton581
@chorton581
11 years ago
139 posts
the fix mentioned here
https://www.jamroom.net/the-jamroom-network/documentation/howto/1389/howto-allow-downloads-to-logged-in-users

does get you part of the way. I have to edit the music_row.tpl as well. I guess a simple fix if to remove the download link off the music and chart rows and have them redirect to the actual song page.
michael
@michael
11 years ago
7,717 posts
you could use the 'Form Designer' tool to add another checkbox option:

"the Form Designer tool"
Using the Form Designer tool

then wrap the download button in that. Something like audio_streamingonly so if the artist checks the checkbox the download button does not show.

{if $item.audio_streamingonly !== 'on'}
// show the download button
{/if}
MAD
MAD
@madc
11 years ago
600 posts
Read here although the code has changed but you just need to wrap the download button in the IF statement
https://www.jamroom.net/the-jamroom-network/forum/design-and-skin-customization/3467/foxycart-and-downloadable-audio#r3564


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

Tags