We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Move Online Users List
Topic Started: May 18 2012, 12:14 PM (645 Views)
Skyon Archer
Member Avatar
Member
[ *  *  *  * ]
Code Name: Move Online Users List

What the code does: Moves the Online Users List to the top of the forum, removes it from the Board Statistics area

How to use the code: copy/paste and it does it all itself

How to install the code:

Board Template > Above the Board:
Copy/Paste:
Code:
 
<table class="forums" if="online-list"><tr><td><div id="online"></div></td></tr></table>


Board Template > Below the Board:
Copy/Paste:
Code:
 
<script type="text/javascript">
//<![CDATA[
// Move Online Users List
// by Skyon Archer
if(location.href.indexOf('/index/')==-1){
document.write('<style type="text/css">#online-list{display:none;}</style>');
}
if (location.href.indexOf('/index/') !== -1) {
var onlinenum = $('#stats table.forums th').html();
$('#online').prepend('<style type="text/css">#stats_members, #stats table.forums th, #stats_legend, #stats table.forums td.c_mark{display:none;}</style>'+onlinenum+'<br />');
$('td#stats_members a').each(function () {
var html = $(this).html();
var href = $(this).attr('href');
var member = $('#online').append(' <a href="' + href + '" title="' + html + '" class="mem">' + html + '</a> ');
});
var n = $('#online a.mem').length;
if(n > 1){
$('#online a.mem').append(",");
}
}
//]]>
</script>


Extra notes: See Screenshot....

Posted Image

EDIT: Made it where this only shows on the index page.
Edited by Skyon Archer, May 18 2012, 01:37 PM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply