ProJam Help

Dazed
Dazed
@dazed
10 years ago
1,022 posts
For the life of me I can't find out what template this is in.

For projam > audio index > what template has the edit, update, download buttons in it? I have a rogue sprite that I can't find!
updated by @dazed: 06/09/15 02:25:08AM
paul
@paul
10 years ago
4,335 posts
If that is a profile audio index page, as indicated in the url you emailed me, the template will be /modules/jrAudio/templates/item_list.tpl
hth


--
Paul Asher - JR Developer and System Import Specialist
Dazed
Dazed
@dazed
10 years ago
1,022 posts
Thanks Paul. This is weird. I thought that would be the one also but I do not see a download call in there at all yet it exists on the page. I thought maybe the template was modified in the acp but nothing. I have three templates in the skin overriding the audio templates but not the list template.

jrAudio_item_albums.tpl
jrAudio_item_detail.tpl
jrAudio_item_index.tpl

do you see where a download link is here?

{jrCore_module_url module="jrAudio" assign="murl"}
{if isset($_items)}

    {foreach from=$_items item="item"}

    <div class="item">

        <div class="container">
            <div class="row">
                <div class="col2">
                    <div class="block_image">
                        <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.audio_title_url}">{jrCore_module_function function="jrImage_display" module="jrAudio" type="audio_image" item_id=$item._item_id size="xlarge" crop="auto" class="iloutline img_scale" alt=$item.audio_title width=false height=false}</a>
                    </div>
                </div>
                <div class="col1">
                    <div class="p5">
                    {if $item.audio_active == 'on' && $item.audio_file_extension == 'mp3'}
                        {jrCore_media_player type="jrAudio_button" module="jrAudio" field="audio_file" item=$item}
                    {else}
                        &nbsp;
                    {/if}
                    </div>
                </div>
                <div class="col4">
                    <div class="p5" style="overflow-wrap:break-word">
                        <h3><a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.audio_title_url}">{$item.audio_title}</a></h3><br>
                        <span class="info">{jrCore_lang module="jrAudio" id="31" default="album"}:</span> <span class="info_c"><a href="{$jamroom_url}/{$item.profile_url}/{$murl}/albums/{$item.audio_album_url}">{$item.audio_album}</a></span><br>
                        <span class="info">{jrCore_lang module="jrAudio" id="12" default="genre"}:</span> <span class="info_c">{$item.audio_genre}</span><br>
                        {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}
                    </div>
                </div>
                <div class="col5 last">
                    <div class="block_config">

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

                    </div>
                </div>
            </div>

        </div>
    </div>
    {/foreach}
{/if}
paul
@paul
10 years ago
4,335 posts
All buttons are handled by the smarty call - {jrCore_item_list_buttons module="jrAudio" field="audio_file" item=$item}


--
Paul Asher - JR Developer and System Import Specialist
Dazed
Dazed
@dazed
10 years ago
1,022 posts
Yeah I saw that also but I noticed one template in the audio module with "button" in it and that seemed more like css. What template is that coming from?
michael
@michael
10 years ago
7,772 posts
In the developer tools from a couple of versions back is the ability to turn on what templates things come from.

Go to:
ACP -> TOOLS -> DEVELOPER TOOLS -> GLOBAL CONFIG -> template name in source

Turn that on, then look at the page source, you will see:
updated by @michael: 05/07/15 02:21:45AM
Dazed
Dazed
@dazed
10 years ago
1,022 posts
Thanks Michael. This issue is really from a custom module that Paul built. Recent audio changes broke it. Paul must be on vacation. I sent him an email a few days ago and no reply.
brian
@brian
10 years ago
10,148 posts
Dazed:
Thanks Michael. This issue is really from a custom module that Paul built. Recent audio changes broke it. Paul must be on vacation. I sent him an email a few days ago and no reply.

He's traveling to Holland - but I'm not sure what recent audio changes would have broken it.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
10 years ago
1,022 posts
yeah Paul messaged me and he will look at it next week.