Aug 20, 2014 17:37:37 GMT -5
This is version two of the 'Forum Stats Simple Remodel'.
ScreenshotCodeThis goes in the Home template around line 25.
{if $[show_stats]}
<div class="container stats">
<div class="title-bar"><h2>Board Stats</h2></div>
<div class="content">
<table>
<tbody>
<tr>
<td>
<table>
<tr>
<td class="icon">$[image.stats]</td>
<td class="info">
<table>
<tbody>
<tr><td>We have a total of $[total_threads] threads and $[total_posts] posts.<br>
{if $[last_updated_thread]} $[last_updated_thread.last_post.created_by] recently posted in $[last_updated_thread.recent_link] ($[last_updated_thread.last_post.created_on]).</td></tr>{/if}
<tr><td>$[recent_threads_link] - $[recent_posts_link] - $[rss_feed_link]{if $[mark_boards_read_link]} - $[mark_boards_read_link]{/if}</td></tr>
</tbody>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td class="icon">$[image.members]</td>
<td class="info">
<table>
<tbody>
<tr><td>$[total_staff_online] Staff, $[total_members_online] Member{if $[total_members_online] != 1}s{/if}, and {if $[view_guests_online_link]}<a href="#" class="$[view_guests_online_link.class]">{/if}$[total_guests_online] Vistor{if $[total_guests_online] != 1}s{/if}{if $[view_guests_online_link]}</a> are online{/if}.</td></tr>
<tr><td><a class="$[view_todays_active_members_link.class]" href="$[view_todays_active_members_link.href]">$[total_staff_online] Staff, $[total_members_online_24] Member{if $[total_members_online_24] != 1}s{/if}</a>, and $[total_guests_online_24] Visitor{if $[total_guests_online_24] != 1}s{/if} were online in the last 24 hours.</td></tr>
<tr><td>Currently we have $[total_members] members. Please welcome our newest member, $[newest_user], to the board!</td></tr>
<tr><td>
{foreach $[online_user_24]}
<a href="$[online_user_24.href]" style="float: left; margin-right: 5px; margin-top: 5px;" title="$[online_user_24.name]">$[online_user_24.avatar_small]</a>
{/foreach}
{if $[total_online_not_shown_24]}
, and <a class="$[view_todays_active_members_link.class]" href="$[view_todays_active_members_link.href]">$[total_online_not_shown_24] more...</a>
{/if}
{foreach $[online_user]}<a href="$[online_user.href]" style="float: left; margin-right: 5px; margin-top: 5px;" title="$[online_user.name]">$[online_user.avatar_small]</a>
{/foreach}
{if $[total_online_not_shown]}
, and <a class="$[view_active_members_link.class]" href="$[view_active_members_link.href]">$[total_online_not_shown] more...</a>
{/if}</td></tr></tbody></table></td></tr></table></td></tr><tr>
<td></td></tr>
<tr class="last">
<td></td></tr></tbody></table></div></div>
{/if}
Credit to Trinity of Adoxography for the users online/24 hours avatar code!
Please note: The avatars are not circular by default! The reason the avatars are circles in the screenshots is because the actual picture is a PNG circle.
Just ughhhh http://youtube.com/amandazimmervlog
Aug 25, 2014 23:37:32 GMT -5
Love this and I may very well use this. Great simple Stat center