Unable to create dowloadable form from form designer
Jamroom Developers
Not sure if this is meant to be in this forum ?
The code from step one is in jrAudio
It is part of the jrAudio module so it should be there.
open your item_details.tpl file under Audio Support then hit templates
Find the code up top and wrap it in the { if statement provided
Around line 7 you will see this
{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}
Replace it with this
{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}
Also in the item_detail.tpl find this around line 35
{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}
and Replace with this
{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}
Remember to make them active after Saving your editsby clicking cancel then ticking the active boxes and saving
Then you will need to open up your skin directory on your server
( Remember that any updates will override the below edits and need to be done again if you update MediaPro skin. )
Edit your song_chart_row.tpl file and the songs_row.tpl file.
Find this in both files ( or similar as I don't have MediaPro and don't know if it is different )
<div class="add_to_cart_section" title="Free Download"><span class="add_to_cart_price">Free</span><a href="{$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}" title="download">{jrCore_icon icon="download" size="24"}</a></div>
and wrap it in the if statement
If your code isn't identical to the above then wrap your code with
{if $item.audio_downloadable == 'on'}
....."YOUR CODE".....
{/if}
As for the Field Label not sticking thats a strange one and I haven't seen that . Maybe one of the Devs can help you there.
PS. Have you updated your modules and Core etc through Marketplace / System Updates as a lot of fixes just got released
If you have make sure you do a reload of at least the core and the jrAudio modules
updated by @madc: 12/21/13 08:38:32PM