Moving Statics and Who's online to a separate page?
4 posters
Page 1 of 1
Moving Statics and Who's online to a separate page?
Forum version: PhpBB3
Hello! I was wondering if it's possible to create a new HTML page and move all the Statics and Who's Online section to that, instead of keeping it under the forum. Feels a bit messy!
Hello! I was wondering if it's possible to create a new HTML page and move all the Statics and Who's Online section to that, instead of keeping it under the forum. Feels a bit messy!
Re: Moving Statics and Who's online to a separate page?
Well, I'd like to keep the information, just not on the same page. :-)
Re: Moving Statics and Who's online to a separate page?
Hiya ^^
Here is the method that I have come up with:
Go to your Admin Panel > Templates > General > index_body (this part is for the forum founder only)
Find this code block:
Now replace it with my modified version:
Once you have modified the template you can create a new html page using the source below.
Hope that helps you! ^^
Here is the method that I have come up with:
Go to your Admin Panel > Templates > General > index_body (this part is for the forum founder only)
Find this code block:
- Code:
<!-- BEGIN disable_viewonline -->
<!-- BEGIN switch_viewonline_link -->
<div class="h3"><a href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></div>
<!-- END switch_viewonline_link -->
<!-- BEGIN switch_viewonline_nolink -->
<div class="h3">{L_WHO_IS_ONLINE}</div>
<!-- END switch_viewonline_nolink -->
<img src="{L_ONLINE_IMG}" id="i_whosonline" alt="{L_WHO_IS_ONLINE}" class="img-whois" />
<p>{TOTAL_USERS_ONLINE}<br />
{RECORD_USERS}
<br />
{LOGGED_IN_USER_LIST}
{L_ONLINE_USERS}
{L_CONNECTED_MEMBERS}<br />
{L_WHOSBIRTHDAY_TODAY}{L_WHOSBIRTHDAY_WEEK}
<br />
<em>{LEGEND} : {GROUP_LEGEND}</em>
</p>
<div class="clear"></div>
<!-- BEGIN switch_statistics_link -->
<div class="h3"><a href="{U_STATISTICS}" rel="nofollow">{L_STATISTICS}</a></div>
<!-- END switch_statistics_link -->
<!-- BEGIN switch_statistics_nolink -->
<div class="h3">{L_STATISTICS}</div>
<!-- END switch_statistics_nolink -->
<p class="page-bottom">
{TOTAL_POSTS}
</p>
<p class="page-bottom">
{TOTAL_USERS}
</p>
<p class="page-bottom">
{NEWEST_USER}
</p>
<!-- BEGIN switch_chatbox_activate -->
<div class="h3"><a href="{S_JOIN_CHAT}" target="ChatBox">{CHATBOX_NAME}</a></div>
<div class="page-bottom">
{TOTAL_CHATTERS_ONLINE} :
{CHATTERS_LIST}<br />
</div>
<!-- BEGIN switch_chatbox_popup -->
<div id="chatbox_popup"></div>
<script type="text/javascript">
insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
</script>
<!-- END switch_chatbox_popup -->
<!-- END switch_chatbox_activate -->
<!-- END disable_viewonline -->
Now replace it with my modified version:
- Code:
<!-- BEGIN disable_viewonline -->
<div id="forum_viewonline" style="display:none;">
<!-- BEGIN switch_viewonline_link -->
<div class="h3"><a href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></div>
<!-- END switch_viewonline_link -->
<!-- BEGIN switch_viewonline_nolink -->
<div class="h3">{L_WHO_IS_ONLINE}</div>
<!-- END switch_viewonline_nolink -->
<img src="{L_ONLINE_IMG}" id="i_whosonline" alt="{L_WHO_IS_ONLINE}" class="img-whois" />
<p>{TOTAL_USERS_ONLINE}<br />
{RECORD_USERS}
<br />
{LOGGED_IN_USER_LIST}
{L_ONLINE_USERS}
{L_CONNECTED_MEMBERS}<br />
{L_WHOSBIRTHDAY_TODAY}{L_WHOSBIRTHDAY_WEEK}
<br />
<em>{LEGEND} : {GROUP_LEGEND}</em>
</p>
<div class="clear"></div>
<!-- BEGIN switch_statistics_link -->
<div class="h3"><a href="{U_STATISTICS}" rel="nofollow">{L_STATISTICS}</a></div>
<!-- END switch_statistics_link -->
<!-- BEGIN switch_statistics_nolink -->
<div class="h3">{L_STATISTICS}</div>
<!-- END switch_statistics_nolink -->
<p class="page-bottom">
{TOTAL_POSTS}
</p>
<p class="page-bottom">
{TOTAL_USERS}
</p>
<p class="page-bottom">
{NEWEST_USER}
</p>
<!-- BEGIN switch_chatbox_activate -->
<div class="h3"><a href="{S_JOIN_CHAT}" target="ChatBox">{CHATBOX_NAME}</a></div>
<div class="page-bottom">
{TOTAL_CHATTERS_ONLINE} :
{CHATTERS_LIST}<br />
</div>
<!-- BEGIN switch_chatbox_popup -->
<div id="chatbox_popup"></div>
<script type="text/javascript">
insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
</script>
<!-- END switch_chatbox_popup -->
<!-- END switch_chatbox_activate -->
</div>
<!-- END disable_viewonline -->
Once you have modified the template you can create a new html page using the source below.
- Code:
<div id="viewonline_block">Loading who is online...</div>
<script>$.get('/forum', function(data) {
var online_block = $('#viewonline_block');
online_block.html('');
$('#forum_viewonline', data).appendTo(online_block).slideDown();
});</script>
Hope that helps you! ^^
Re: Moving Statics and Who's online to a separate page?
@An
So, so sorry for the late reply. I've just been so busy.
Thank you so, so, so much for your help! It worked so well, I really appreciate it!!! <33
This is solved!
So, so sorry for the late reply. I've just been so busy.
Thank you so, so, so much for your help! It worked so well, I really appreciate it!!! <33
This is solved!
Re: Moving Statics and Who's online to a separate page?
Problem solved & topic archived.
|


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

» [ask] Why theres no more Whos Online In my INdex page?
» Says 0 users online when i look at whos online.
» Whos Online?
» Whos online bug
» whos online
» Says 0 users online when i look at whos online.
» Whos Online?
» Whos online bug
» whos online
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum