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 Members Viewing This Forum
Topic Started: May 18 2012, 02:19 PM (650 Views)
Skyon Archer
Member Avatar
Member
[ *  *  *  * ]
Code Name: Move Members Viewing This Forum

What the code does: Moves the Members Viewing This Forum List to the top of the forum, removes it from it's original location

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

How to install the code:

Board Wrapper > Below The Board
Copy/Paste:

Code:
 
<script type="text/javascript">
//<![CDATA[
// Move Members ViewingThis Forum to top of page
// by Skyon Archer
locSKY=window.location.href;
if(locSKY.match(/forum/) || locSKY.match(/topic/)||locSKY.match(/post/)){
$("#nav").append('<div id="do" class="meta_box"></div>');
var aSKY = $("td.c_view").clone().html();
$("#do").html('<style type="text/css">td.c_view{display:none;}</style>' + aSKY + '');
}
//]]>
</script>


Preview:

BEFORE
Posted Image

AFTER
Posted Image
Edited by Skyon Archer, May 18 2012, 10:58 PM.
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Just a suggestion: Use an anonymous function so your variables won't affect other codes that possibly use the same variable.
Online Profile Quote Post Goto Top
 
Skyon Archer
Member Avatar
Member
[ *  *  *  * ]
I was actually considering that earlier when I did exactly that . . . I ended using the same variable on my test board and couldn't figure out why stuff wasn't working as intended :D

Code has been revised.
Edited by Skyon Archer, May 18 2012, 10:58 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