solved Unable to create dowloadable form from form designer

alt=
@luis890
11 years ago
57 posts
Could you please help me. I'm following this instructions, but I;m having two issues.
1) Since I can not find the two lines of code from step 1 in the below link .. where should I insert the code item_detail.tpl ... Im using the media pro skin
https://www.jamroom.net/the-jamroom-network/documentation/howto/1389/howto-allow-downloads-to-logged-in-users#

2) Every time I create the downloadable form I keep getting this message " audio_downloadable label *change this*" .. I modify again,change and save, but it goes back to same. .see image below.

Thank You
formerror.png
formerror.png  •  32KB


updated by @luis890: 02/01/14 12:44:12PM
MAD
MAD
@madc
11 years ago
600 posts
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}

<div style="font-size:20px;font-weight:bold;">Remember to make them active after Saving your edits<br />by clicking cancel then ticking the active boxes and saving</div>

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


--
~ 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/21/13 08:38:32PM
alt=
@luis890
11 years ago
57 posts
Thank for the info @Ba9801,but I can not find the item_details.tpl file. The only file available under jrAudio/templates is the item_detail.tpl file.
If that is the where is the block of code suggested. Below is all the code from that page. Please tell me what do I;m doing wrong, but this is driving me cucu.


Code:

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





{jrCore_item_detail_buttons module="jrAudio" field="audio_file" item=$item}


{$item.audio_title}

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










{* Make sure we're active *}
{if isset($item.audio_active) && $item.audio_active == 'off' && isset($item.quota_jrAudio_audio_conversions) && $item.quota_jrAudio_audio_conversions == 'on'}

{jrCore_lang module="jrAudio" id="40" default="This audio file is currently being processed and will appear here when complete."}

{elseif $item.audio_file_extension == 'mp3'}

{assign var="ap" value="`$_conf.jrCore_active_skin`_auto_play"}
{jrCore_media_player type="jrAudio_player_dark" module="jrAudio" field="audio_file" item=$item autoplay=$_conf.$ap}


{jrCore_lang module="jrAudio" id="31" default="album"}: {$item.audio_album}
{jrCore_lang module="jrAudio" id="12" default="genre"}: {$item.audio_genre}
{jrCore_lang module="jrAudio" id="51" default="streams"}: {$item.audio_file_stream_count|default:"0"|number_format}
{if !empty($item.audio_file_item_price)}
{jrCore_lang module="jrAudio" id="54" default="purchase"}: {$item.audio_file_original_extension}, {$item.audio_file_original_size|jrCore_format_size}, {$item.audio_file_length}
{/if}
{jrCore_module_function function="jrRating_form" type="star" module="jrAudio" index="1" item_id=$item._item_id current=$item.audio_rating_1_average_count|default:0 votes=$item.audio_rating_1_count|default:0}


{else}

{jrCore_icon icon="download"}

{jrCore_lang module="jrAudio" id="31" default="album"}: {$item.audio_album}
{jrCore_lang module="jrAudio" id="12" default="genre"}: {$item.audio_genre}
{jrCore_module_function function="jrRating_form" type="star" module="jrAudio" index="1" item_id=$item._item_id current=$item.audio_rating_1_average_count|default:0 votes=$item.audio_rating_1_count|default:0 }


{/if}



{jrCore_module_function function="jrImage_display" module="jrAudio" type="audio_image" item_id=$item._item_id size="large" class="iloutline img_shadow" alt=$item.audio_title width=false height=false}






{* bring in module features *}
{jrCore_item_detail_features module="jrAudio" item=$item}
updated by @luis890: 12/21/13 05:30:01PM
MAD
MAD
@madc
11 years ago
600 posts
Yes thats right. Sorry details was a typo . Should have been detail.tpl

Looking at your code seems the jrAudio template has changed.
May have to update the tute as what is being looked for is no longer in the file

You could try inserting this code after below and see if it works

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

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

Place under that

{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/21/13 08:53:40PM
michael
@michael
11 years ago
7,750 posts
The jrAudio and most other modules will now be using the new 'Item Action Buttons' system as described here:
https://www.jamroom.net/the-jamroom-network/forum/announcements/3245/jamroom-515-has-been-released

Started with JR5.1.5.

The tutorial will need to be updated.
michael
@michael
11 years ago
7,750 posts
updated the HowTo. All you need to do since JR5.1.5 is to add in that download button redirect.

No need for the Form Designer at all now. (unless you want a different setup.)
alt=
@luis890
11 years ago
57 posts
Thanks Michal and @ba9801 for your help.. It is fixed modifying the Music_row.tpl

Tags