inherit
121455
0
Oct 20, 2024 19:46:35 GMT -8
Shawn
547
March 2008
stagefright
|
Post by Shawn on Jul 18, 2014 16:56:14 GMT -8
Question...i was just wondering if there was a way to Combine the Users Online with users in the last 24 hours into one section vs split into 2? and maybe change it into just Active users or something else?
thanks in advance for your help.
My apologies if this already discussed somewhere else.
Thanks for your time
RB
|
|
inherit
72282
0
Feb 22, 2019 7:29:04 GMT -8
Smangii
what's this?
4,772
February 2006
smangii
|
Post by Smangii on Jul 18, 2014 17:19:56 GMT -8
Absolutely, it's an easy layout template.
Here's the default PB info center with your template added:
This would replace everything in your Themes > Layout Templates > Home
$[news]
{foreach $[category]}
$[category.anchor]
<div class="container boards">
<div class="title-bar bbcode"><h2><div class="title_wrapper">$[category.display_name]</div></h2></div>
<div class="content cap-bottom">
$[category.board_list]
</div>
</div>
{/foreach}
{if $[legend]}
<div class="container legend">
<div class="title-bar"><h2>Legend</h2></div>
<div class="content">
<table>
<tr>
{foreach $[legend]}
<td>$[legend.icon] <span>$[legend.name]</span></td>
{/foreach}
</tr>
</table>
</div>
</div>
{/if}
{if $[show_stats]}
<div class="container stats">
<div class="title-bar"><h2>Forum Information & Statistics</h2></div>
<div class="content">
<table>
<tbody>
<tr>
<td>
<table>
<tr>
<td class="icon">$[image.stats]</td>
<td class="info">
<table>
<tbody>
<tr><th>Threads and Posts</th></tr>
<tr><td>Total Threads: $[total_threads] Total Posts: $[total_posts]</td></tr>
{if $[last_updated_thread]}<tr><td>Last Updated: $[last_updated_thread.recent_link] by $[last_updated_thread.last_post.created_by] ($[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>
<td>
<table>
<tr>
<td class="icon">$[image.members]</td>
<td class="info">
<table>
<tbody>
<tr><th>Members</th></tr>
<tr><td>Total Members: $[total_members]</td></tr>
<tr><td>Newest Member: $[newest_user]</td></tr>
<tr><td>Most Users Online: $[most_users_online] <span class="small">($[most_users_online_date])</span></td></tr>
<tr><td>$[birthdays_today_link]</td></tr>
</tbody>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<table>
<tr>
<td class="icon">$[image.online]</td>
<td class="info last">
<table>
<tbody>
<tr><th>Active Users</th></tr>
<tr><td>
<script>var realtotalstaff = $[total_staff_online] + $[total_staff_online_24];document.write(realtotalstaff);</script> Staff,
<script>var realtotalmembers = $[total_members_online] + $[total_members_online_24];document.write(realtotalmembers);</script> Members,
{if $[view_guests_online_link]}<a href="#" class="$[view_guests_online_link.class]">{/if}<script>var realtotalguests = $[total_guests_online] + $[total_guests_online_24];document.write(realtotalguests);</script> Guests{if $[view_guests_online_link]}</a>{/if}.
</td></tr>
<tr><td>
{foreach $[online_user]}
$[online_user]{if $[online_user.invisible]} <span class="small">(invisible)</span>{/if}$[online_user.comma]
{/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}
{foreach $[online_user_24]}
$[online_user_24]{if $[online_user_24.invisible]} <span class="small">(invisible)</span>{/if}$[online_user_24.comma]
{/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}
</td></tr>
</tbody>
</table>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</div>
{/if}
|
|
inherit
121455
0
Oct 20, 2024 19:46:35 GMT -8
Shawn
547
March 2008
stagefright
|
Post by Shawn on Jul 19, 2014 9:55:18 GMT -8
Thanks one quick question... i've moved my info center to the top of the page. So once i install this adjusted template how do i get my info center back to the top of the page. thanks again for the help RB
|
|
inherit
121455
0
Oct 20, 2024 19:46:35 GMT -8
Shawn
547
March 2008
stagefright
|
Post by Shawn on Jul 20, 2014 3:16:28 GMT -8
Ok i figured it out... it worked great...thanks so much for the help.
RB
|
|
inherit
72282
0
Feb 22, 2019 7:29:04 GMT -8
Smangii
what's this?
4,772
February 2006
smangii
|
Post by Smangii on Jul 20, 2014 15:11:51 GMT -8
Glad you figured it out!
|
|