I know I must modify this piece of code but I don't know what to add.
{if isset($_conf.xxComplete_profile_stats) && $_conf.xxComplete_profile_stats == 'on'}
{if isset($_conf.xxComplete_profile_stats) && $_conf.xxComplete_profile_stats == 'on'}
<div class="block">
<h3>{jrCore_lang skin=$_conf.jrCore_active_skin id="39" default="stats"}</h3>
<div class="block_content mt10">
<div style="padding-top:8px">
{capture name="template" assign="stats_tpl"}
{literal}
{foreach $_stats as $title => $_stat}
{jrCore_module_url module=$_stat.module assign="murl"}
<div class="stat_entry_box" onclick="window.location='{$jamroom_url}/{$profile_url}/{$murl}'">
{$title}: {$_stat.count|default:0}
</div>
{/foreach}
{/literal}
{/capture}
{jrProfile_stats profile_id=$_profile_id template=$stats_tpl}
<div class="clear"></div>
</div>
</div>
</div>
{/if}
I am thinking, adding another && to the first line that basically says "and the stats are greater than zero". However, I don't know how to write it. Something like "&& $_stat.count > 0" but that doesn't work.
--
Ken Rich
indiegospel.net
updated by @ken-rich: 10/27/21 07:53:40AM