AudioPro2 Skin Issue
Installation and Configuration
This is a bit tricky but if you can edit the template files and then upload them via SFTP, you should be able to follow these steps to change that area on your site.
1. Open your skins/AudioPro2/index_featured.tpl file.
2. Find this code:
<section class="featured dark">
<div class="row">
<div class="col12">
<div class="head">
{jrCore_icon icon="star" size="20" color="ECA81E"} <span>{jrCore_lang skin="jrAudioPro2" id=49 default="Featured Artists"}</span>
</div>
<div class="col12">
{if strlen("{$_conf.jrAudioPro2_list_2_ids}") > 0}
{jrCore_list module="jrProfile" search="_item_id in `$_conf.jrAudioPro2_list_2_ids`" limit="7" template="index_item_2.tpl"}
{else}
{jrCore_list module="jrProfile" order_by="profile_jrAudio_item_count numerical_desc" limit="7" template="index_item_2.tpl"}
{/if}
</div>
</div>
</div>
{if !jrUser_is_logged_in()}
<div class="row">
<div class="col12">
<div class="center register">
<br>
{jrCore_lang skin="jrAudioPro2" id=52 default="Join us today and start creating."} <button class="form_button" onclick="jrCore_window_location('{$jamroom_url}/{jrCore_module_url module="jrUser"}/signup')">{jrCore_lang skin="jrAudioPro2" id=85 default="Register"}</button>
</div>
</div>
</div>
{/if}
</section>
3. Change the jrCore_list functions
limit parameter from 7 to 8 - there are two(2) jrCore_list functions to modify.
Change this:
{if strlen("{$_conf.jrAudioPro2_list_2_ids}") > 0}
{jrCore_list module="jrProfile" search="_item_id in `$_conf.jrAudioPro2_list_2_ids`" limit="7" template="index_item_2.tpl"}
{else}
{jrCore_list module="jrProfile" order_by="profile_jrAudio_item_count numerical_desc" limit="7" template="index_item_2.tpl"}
{/if}
to this:
{if strlen("{$_conf.jrAudioPro2_list_2_ids}") > 0}
{jrCore_list module="jrProfile" search="_item_id in `$_conf.jrAudioPro2_list_2_ids`" limit="8" template="index_item_2.tpl"}
{else}
{jrCore_list module="jrProfile" order_by="profile_jrAudio_item_count numerical_desc" limit="8" template="index_item_2.tpl"}
{/if}
4. Open your skins/jrAudioPro2/index_item_2.tpl
5. Select the entire contents of that file and delete it.
6. Replace it with the following code.
{if isset($_items)}
{jrCore_module_url module="jrAudio" assign="murl"}
{foreach from=$_items item="item"}
{if $item@first || ($item@iteration % 4) == 1}
<div class="row">
{/if}
<div class="col3{if $item@last || ($item@iteration % 4) == 0} last{/if}">
<div style="padding: 5px;">
<div class="featured_item">
<div class="cover_image">
{if $item.profile_header_image_size > 0}
<a href="{$jamroom_url}/{$item.profile_url}" title="{jrCore_lang skin="jrAudioPro2" id="87" default="Click to view"}">
{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_header_image" item_id=$item._profile_id size="1280" class="img_scale" crop="2:1" alt=$item.profile_name _v=$item.profile_header_image_time}
</a>
{else}
<a href="{$jamroom_url}/{$item.profile_url}" title="{jrCore_lang skin="jrAudioPro2" id="87" default="Click to view"}">
{jrCore_image image="profile_header_image.jpg" width="1140" class="img_scale" height="auto" crop="3:1"}
</a>
{/if}
<div class="profile_info">
<div class="wrap">
<div class="table">
<div class="table-row">
<div class="table-cell profile-image">
<div class="profile_image">
{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$item._profile_id size="xxlarge" crop="auto" class="img_scale img_shadow" alt=$item.profile_name width=false height=false}
</div>
</div>
<div class="table-cell">
<div class="profile_name">
{$item.profile_name|truncate:55}<br>
<span><a href="{$jamroom_url}/{$item.profile_url}">@{$item.profile_url}</a> </span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="wrap">
{if $_conf.jrAudioPro2_require_price_2 == 'on'}
{$s2 = "audio_file_item_price > 0"}
{/if}
{if jrCore_module_is_active('jrCombinedAudio') && $_conf.jrAudioPro2_list_2_soundcloud == 'on'}
{jrCombinedAudio_get_active_modules assign="mods"}
{if strlen("{$mods}") > 0}
{jrSeamless_list modules=$mods profile_id=$item._profile_id order_by="*_display_order desc" limit="5" template="index_item_audio.tpl"}
{elseif jrUser_is_admin()}
{jrCore_lang skin="jrAudioPro2" id=82 default="No active audio modules found!"}
{/if}
{else}
{jrCore_list module="jrAudio" profile_id=$item._profile_id search=$s1 order_by="audio_display_order desc" limit="5" template="index_item_audio.tpl"}
{/if}
</div>
</div>
</div>
</div>
{if $item@last || ($item@iteration % 4) == 0}
</div>
{/if}
{/foreach}
{else}
<div class="no-items">
<h1>{jrCore_lang skin="jrAudioPro2" id="62" default="No items found"}</h1>
{jrCore_module_url module="jrCore" assign="core_url"}
<button class="form_button" style="display: block; margin: 2em auto;" onclick="jrCore_window_location('{$jamroom_url}/{$core_url}/skin_admin/global/skin={$_conf.jrCore_active_skin}/section=List+2')">{jrCore_lang skin="jrAudioPro2" id="64" default="Edit Configuration"}</button>
</div>
{/if}
Hope this helps!
updated by @douglas: 07/29/23 06:10:26AM