solved Follow Me Skin audio player type

sekeri
sekeri
@ilker
7 years ago
334 posts
Hi,

How can I change the Audio Player type in Follow Me skin? The default one is really big when I embed it into pages?

Ilker.
audioplayer.JPG.jpg
audioplayer.JPG.jpg  •  51KB


updated by @ilker: 01/05/18 04:56:46AM
michael
@michael
7 years ago
7,746 posts
You can use this method:

Docs: "Altering a Module's Template"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1051/altering-a-modules-template

on the /modules/jrAudio/templates/item_embed.tpl file. Copy it to your cloned skin to
/skins/YOUR SKIN/jrAudio_item_embed.tpl

Then change the player type="" to a different player. Probably the type="jrAudio_gray_overlay_player" is what you want in that file:
<div style="display: inline-block; width:100%">
    {if isset($item) && is_array($item)}
         {jrCore_media_player module="jrAudio" type="jrAudio_gray_overlay_player" field="audio_file" item=$item}
    {elseif isset($_items) && is_array($_items)}
         {jrCore_media_player module="jrAudio" type="jrAudio_gray_overlay_player" field="audio_file" items=$_items}
    {/if}
</div>
sekeri
sekeri
@ilker
7 years ago
334 posts
Can not I just go to Audio Module and modify item_embed.tpl using the Modify button? I don't want to clone the whole skin.
paul
@paul
7 years ago
4,331 posts
Providing that your active skin doesn't already have a jrAudio_item_embed.tpl template, yes, do this in the /modules/jrAudio/templates/item_embed.tpl template using the Template Editor in the ACP Audio module page.
hth


--
Paul Asher - JR Developer and System Import Specialist
michael
@michael
7 years ago
7,746 posts
sure you can do whatever you want. The code I gave you was because you said the embed player was big, so I thought you only wanted to change the embed player and leave the other players as they were. If you want to change all players, you can do that too.

You can do anything you like, its your site :)
sekeri
sekeri
@ilker
7 years ago
334 posts
Thank you Michael, thank you Paul. It is all clear now.

Tags