Feature Request: Two New Stats Needed on Profile Page
Ning To Jamroom
With Michael's help I modified the Stats block inside profile_sidebar.tpl to add the "all" to the end of the jrGallery module call inside the foreach to modify the URL to show all images, not duplicate the functionality of the Galleries menu item.
{foreach $_stats as $title => $_stat}
{jrCore_module_url module=$_stat.module assign="murl"}
<div class="stat_entry_box"{if $_stat.module == "jrGallery"}
onclick="window.location='{$jamroom_url}/{$profile_url}/{$murl}/all'"><span class="stat_entry_title">{$title}:</span> <span class="stat_entry_count">{$_stat.count|default:0}</span></a>
{else}
onclick="window.location='{$jamroom_url}/{$profile_url}/{$murl}'"><span class="stat_entry_title">{$title}:</span> <span class="stat_entry_count">{$_stat.count|default:0}</span></a>
{/if}
</div>
{/foreach}
Inside the if statement inside the div "stat_entry_box" I can test e.g., {if $_stat.module == "jrForum"}, and get the number of posts/comments there and format them using the same structure as the on.click handler?
I can use the same for jrGroupDiscuss?