inherit
139661
0
Jun 15, 2019 6:20:48 GMT -8
Robbie P. Blake
110
April 2009
driftin
|
Post by Robbie P. Blake on Jul 4, 2013 10:01:48 GMT -8
Hi there. I want to streamline my info centers for both the home and board sections. This may be a bit complicated and specific so I apologise for that. 1. For the Forum Info Center I want to remove the Members and Users Online in the Last 24 Hourssection, but keep the birthdays, and move the Users Online part to the right side where Members used to be. Basically I want it to go from this... to this (Photoshopped, not an actual screenshot)... 2. For the Board Info Center I want to remove the bit that says On This Board and replace it with Users Viewing, on the right side. From this... to this (again,Photoshopped, not an actual screenshot)... I think this is possible, through the template layouts, but I'm rubbish at that kind of thing and I've tried looking through the support boards here but I can't find these examples. Thank you in advance.
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Jul 5, 2013 6:32:41 GMT -8
If nobody else has done this by the time I get back from work (should be before midnight, GMT, I hope) then I'll give it a go for you then. =]
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Jul 5, 2013 19:47:28 GMT -8
Double post I know, but wanted to let you know I'd not forgotten you Robbie P. BlakeEnded up working a little later than intended (got home at about 4:15am), and I have to get up for work in about five hours. Again, if nobody's caught you by the time I'm done I'll get to this (will be working into the early hours on Sunday morning, but have a late start for my Sunday shift, so I should be able to pop in and sort you out), but until then I intend to get as much sleep as I can. =P Sorry to keep you waiting.
|
|
inherit
139661
0
Jun 15, 2019 6:20:48 GMT -8
Robbie P. Blake
110
April 2009
driftin
|
Post by Robbie P. Blake on Jul 6, 2013 4:47:49 GMT -8
Thank you
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Jul 8, 2013 16:21:42 GMT -8
Okay, I'm a little late, sorry. Work's been rather hectic lately. Still, got here in the end. =]
Now for your main Info Centre on the homepage, look to your Home Template. On a default template, the coding for the IC starts on line 25, and goes all the way to the bottom of the template. Replace what you see there with the following;
{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_user] ($[last_updated_thread.last_post.date])</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.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> </tr> <tr class="last"> <td colspan="2" class="last"> <table> <tr> <td colspan="4" style="text-align: center;"> $[birthdays_today_link] </td> </tr> </table> </td> </tr> </tbody> </table> </div> </div> {/if}
Now for the info sections in your boards. This time we want to be in the Board Template. On a default template, the section you're looking for starts on line 63, and again goes right to the bottom. Replace it with this (the line in red is optional, as it doesn't feature in your image);
{if $[board.id]}{if $[show_stats]} <div class="container stats"> <div class="title-bar"><h2>Board Information & Statistics</h2></div> <div class="content"> <table> <tbody> {if $[board.description]} <tr> <td colspan="2"> <table> <tr> <td class="icon">$[image.description]</td> <td class="info last"> <div class="board-name">$[board.name]</div> <div class="board-description">$[board.description]</div> </td> </tr> </table> </td> </tr> {/if} <tr class="last"> <td> <table> <tr> <td class="icon">$[image.stats]</td> <td class="info"> <table> <tbody> <tr><th colspan="2">Threads and Posts</th></tr> <tr><td>Total Threads:</td><td>{if $[total_threads] == -1}N/A{else}$[total_threads]{/if}</td></tr> <tr><td>Total Posts:</td><td>{if $[total_posts] == -1}N/A{else}$[total_posts]{/if}</td></tr> {if $[board.moderators_link]}<tr><td colspan="2">This board has $[board.moderators_link]</td></tr>{/if} </tbody> </table> </td> </tr> </table> </td> <td> <table> <tr> <td class="icon">$[image.online]</td> <td class="info last"> <table> <tbody> <tr><th>Users Viewing</th></tr> <tr><td>$[total_board_staff] Staff, $[total_board_members] Member{if $[total_board_members] != 1}s{/if}, {if $[view_guests_online_link]}<a href="#" class="$[view_guests_online_link.class]">{/if}$[total_board_guests] Guest{if $[total_board_guests] != 1}s{/if}{if $[view_guests_online_link]}</a>{/if}.</td></tr> <tr><td><tr><td> {foreach $[board_user]} $[board_user]{if $[board_user.invisible]} <span class="small">(invisible)</span>{/if}$[board_user.comma] {/foreach} {if $[total_online_not_shown] > 0} , and <a href="$[view_active_members_link.href]" class="$[view_active_members_link.class]">$[total_online_not_shown] more...</a> {/if} </td></tr> </tbody> </table> </td> </tr> </table> </td> </tr> </tbody> </table> </div> </div> {/if}{/if}
|
|
inherit
139661
0
Jun 15, 2019 6:20:48 GMT -8
Robbie P. Blake
110
April 2009
driftin
|
Post by Robbie P. Blake on Jul 9, 2013 12:39:49 GMT -8
Thank you, I'll give it a shot now
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Jul 9, 2013 19:51:23 GMT -8
Let me know how you get on. =]
|
|