Audio Album Image

Ken Rich
Ken Rich
@ken-rich
9 years ago
926 posts
Some users don't want the big image to display over the player, though it is highly useful to upload one image that becomes the default to the right of the single song players.

Is there a way to build a button into the album create/modify forms that would allow the cover image to show and not show when selected?


--

Ken Rich
indiegospel.net

updated by @ken-rich: 02/15/16 12:56:10AM
paul
@paul
9 years ago
4,326 posts
Add a checkbox to the form with the Form Designer then edit the template to not show the image if checked.


--
Paul Asher - JR Developer and System Import Specialist
Ken Rich
Ken Rich
@ken-rich
9 years ago
926 posts
Thanks Paul - I'm afraid I'm going to need a bit more help than that though, as I managed to do something similar once (with a lot of help) and it was so long ago I forget how.

I can add a checkbox to the form, that's easy enough.

I'm guessing the template to be modified is jrAudio_player_dark.tpl - Is that correct?

Now I seem to to recall that running some kind of debug command was required, but I forget how and why.

Then I assume I'm going to have to come up with some kind of if/then statement to give the show no show function - is that correct.

Am I on the right path here, or confusing this procedure with something else?


--

Ken Rich
indiegospel.net

updated by @ken-rich: 11/12/15 04:30:44AM
brian
@brian
9 years ago
10,148 posts
That's correct - basically:

{if $audio_custom_field_name == 'on'}
   ... show your HTML for it being CHECKED
{else}
   ... it is not checked - don't show ...
{/if}



--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
9 years ago
926 posts
Cool - thanks Brian. That may be enough to go on if I can carve out some time to play with it.


--

Ken Rich
indiegospel.net
paul
@paul
9 years ago
4,326 posts
Don't forget the 'item' - {if $item.audio_your_custom_field_name == 'on'}


--
Paul Asher - JR Developer and System Import Specialist
Ken Rich
Ken Rich
@ken-rich
9 years ago
926 posts
Thanks Paul...


--

Ken Rich
indiegospel.net
brian
@brian
9 years ago
10,148 posts
paul:
Don't forget the 'item' - {if $item.audio_your_custom_field_name == 'on'}

Why am I forgetting this? TWO times. That's not like me - I need more coffee :)


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