I created a module which has an upload field which works fine on the site and they all play in the player.
But if we try and download the podcasts from this page
https://www.punkbandpromotions.com/loud-fast-shitty/loud-fast-shitty-radio
the url's are wrong
eg https://www.punkbandpromotions.com/loud-fast-shitty-radio/download/audio_file/64
If I click on that it goes to a white page and says
Error: Invalid media id - no media item found
my code for that page
{ jrCore_module_url module= "prLoudFastShitty" assign= "murl" }
{ if isset( $_items ) }
{ foreach from=$_items item=" item " }
< div class=" item " >
< div class=" block_config " >
< div class=" add_to_cart_section " title=" Free Download " >
< span class=" add_to_cart_price " >Free< /span >
{ 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 }
< /div >
{jrCore_item_list_buttons module =" prLoudFastShitty " item= $item }
< /div >
< h2 > < a href=" { $ jamroom_url } / { $ item.profile_ur l} / { $ murl } / { $ item._item_id } / { $ item.loudfastshitty_title_url } " >{ $ item.loudfastshitty_title } < /a >< /h2 >
< br >
< /div >
{ /foreach }
{ /if }
its this bit that seems to be the problem
< a href=" {$ jamroom_url} / {$ murl } / download / audio_file /{ $ item._item_id } " > { jrCore_icon icon= " download " }< /a >
They exist and are playing. How do I get them to be able to be downloadable ?
ps: Code edited to be viewable here
--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
updated by @madc: 05/01/14 06:14:30PM