solved Audio Downloads not working right

MAD
MAD
@madc
10 years ago
600 posts
Hi guys,
Not sure if this is only effecting us but Album downloads are broken for artists that have more than 1 album, all download links go to the newest album uploaded not the one clicked on.
Example here
https://www.punkbandpromotions.com/two-two-79/audio/albums
Click on any of the bottom albums download button and it shows the newest album instead.


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

updated by @madc: 02/28/16 04:48:57AM
michael
@michael
10 years ago
7,715 posts
The link is the same for all the download buttons.

Whats the template code thats causing the button to appear?
MAD
MAD
@madc
10 years ago
600 posts
                                            <div class="block_config">
                                                {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}{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}  


In ACP - Audio Support - Templates = item_albums.tpl

NOVA CLONED SKIN


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

updated by @madc: 08/21/14 10:26:25PM
michael
@michael
10 years ago
7,715 posts
the code you have doesnt match up with the url showing.

your code reads:
...<a href="{$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}">{jrCore_icon icon="download"}</a>

But the url shows
https://www.punkbandpromotions.com/audio/download_album/4/never-mind-the-covers-from-groningen-heres-two-two-79

It should be irrelivant which skin is being used because the template comes from the audio module.

Hit 'compare' and see if it matches up with the current .tpl file.
MAD
MAD
@madc
10 years ago
600 posts
Yeah it seems this code has changed since 5.2?
{if $item.audio_downloadable == 'on'}
                    {jrAudio_download_album_button items=$_items}
{/if}

What would I change it to to get each album?
It is only this that needs changing I would think
                    {jrAudio_download_album_button items=$_items}



--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
brian
@brian
10 years ago
10,148 posts
Did you manually add the download button in on the album list page? It's not going to work there (and it's not there on the default item_albums.tpl template) - it only works from the album detail page - i.e.

https://www.punkbandpromotions.com/two-two-79/audio/albums/never-mind-the-covers-from-groningen-heres-two-two-79

so you will need to remove that from your list section of the item_albums.tpl file.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
MAD
MAD
@madc
10 years ago
600 posts
Yeah we did brian but it worked before update to 5.2 for some reason


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
brian
@brian
10 years ago
10,148 posts
MAD©:
Yeah we did brian but it worked before update to 5.2 for some reason

Yeah I'm not sure how that worked - if it did it was a fluke, since on that list page the $items array does not have access to the individual songs, and thus does know the files within the album to add to the ZIP...


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

Tags