Quick question on this one. I had an artist who signed up and uploaded several tracks due to this. Once I fixed the error in the quota, it used to be that only the Max Number of Items from the quota would display on the profile page except to the admin. Right now logged out I see greater than the default number of allowed songs for the quota. So if the quota says 5, if the user had 30 songs uploaded, only 5 would display however I see 30 logged out.
My concern here is also people who signup for subscriptions and then revert back to a basic account. We should only display what is allowed in the quota.
I am using the below to overwrite the module audio. I did not see anything here that stood out as an issue. Am I missing something?
jrAudio_item_index.tpl
{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" style="position:relative">
<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 style="position:absolute;bottom:8px;right:5px">
{if $item.audio_active == 'on' && $item.audio_file_extension == 'mp3'}
{jrCore_media_player type="jrAudio_button" module="jrAudio" field="audio_file" item=$item}
{else}
{/if}
</div>
</div>
</div>
<div class="col7">
<div class="p5" style="overflow-wrap:break-word">
<h2><a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.audio_title_url}">{$item.audio_title}</a></h2><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="col3 last">
<div class="block_config">
{if $item.audio_dj_download == 'on' && (jrUser_is_admin() || (jrUser_is_logged_in() && $_user.profile_quota_id == $_conf.paDJDownload_dj_quota))}
<div class="add_to_cart_section" title="DJ Download"><span class="add_to_cart_price">Mix DJ</span><a href="{$_conf['jrCore_base_url']}/audio/djdownload/audio_file/{$item._item_id}">{jrCore_icon icon="download" }</a></div>
{/if}
<a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.audio_title_url}" title="Review Song">{jrCore_icon icon="pen"}</a>
{if isset($item.audio_file_item_price) && $item.audio_file_item_price > 0}
{jrCore_module_function function="jrFoxyCart_add_to_cart" module="jrAudio" field="audio_file" item=$item}
{elseif $_conf.jrAudio_block_download != 'on' && $item.audio_downloadable == 'on'|| $item.audio_file_item_price == '0'}
<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}">{jrCore_icon icon="download"}</a></div>
{/if}
{jrCore_item_update_button module="jrAudio" profile_id=$item._profile_id item_id=$item._item_id}
{jrCore_module_function function="jrPlaylist_button" playlist_for="jrAudio" item_id=$item._item_id}
{jrCore_item_delete_button module="jrAudio" profile_id=$item._profile_id item_id=$item._item_id}
</div>
</div>
</div>
</div>
</div>
{/foreach}
{/if}
updated by @dazed: 01/18/17 05:43:38AM