inherit
76165
0
Jul 1, 2018 21:15:48 GMT -8
Beckea
Relax with a good book!
933
April 2006
purplescraps
|
Post by Beckea on Apr 23, 2018 8:20:56 GMT -8
Forum URL: (private)
Forum Information & Statistics move (...in the last 24 hours) up beside (Users online)? Working on a theme and thought it would be nice to move the "...in the last 24 hours" up and beside the "users online "-- how I would go about doing that?
|
|
Nori
Junior Member
Posts: 483
inherit
182806
0
Nov 16, 2024 21:35:22 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Apr 23, 2018 8:49:48 GMT -8
In the Admin Panel, Structure -> Layout Templates -> Home, scroll down (or ctrl+f find) to 'Users Online'. You can see that it's just setup in tables. All you have to do is remove the colspan=2 from each of the Users Online td's, remove the </tr><tr> between the two Users Online sections, and then move the tr class="last" to the tr now containing all the Users online tables. And below is the code if you just want something to copy-paste. Find the first line in your existing layout template, then replace everything from there to the bottom with the code: {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]{if $[rss_feed_link]} - $[rss_feed_link]{/if}{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 class="last"> <td> <table> <tr> <td class="icon">$[image.online]</td> <td class="info last"> <table> <tbody> <tr><th>Users Online</th></tr> <tr><td>$[total_staff_online] Staff, $[total_members_online] Member{if $[total_members_online] != 1}s{/if}, {if $[view_guests_online_link]}<a href="#" class="$[view_guests_online_link.class]">{/if}$[total_guests_online] Guest{if $[total_guests_online] != 1}s{/if}{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} </td></tr> </tbody> </table> </td> </tr> </table> </td> <td> <table> <tr> <td class="icon">$[image.online_24]</td> <td class="info last"> <table> <tbody> <tr><th>Users Online in the Last 24 Hours</th></tr> <tr><td>$[total_staff_online_24] Staff, <a class="$[view_todays_active_members_link.class]" href="$[view_todays_active_members_link.href]">$[total_members_online_24] Member{if $[total_members_online_24] != 1}s{/if}</a>, $[total_guests_online_24] Guest{if $[total_guests_online_24] != 1}s{/if}.</td></tr> <tr><td> {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
76165
0
Jul 1, 2018 21:15:48 GMT -8
Beckea
Relax with a good book!
933
April 2006
purplescraps
|
Post by Beckea on Apr 23, 2018 10:59:22 GMT -8
|
|