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
Hover Over Member Legend; Hides names not in that group.; Idea by Choco
Topic Started: Feb 3 2010, 11:47 PM (1,876 Views)
Reid
Member Avatar
È una trappola!

Idea by Choco, old code by Choco. Re-made by me.

When you hover over a group in the member legend, it will hide all of the usernames not in that group.

Place this in Admin CP -> Board Template -> Above the Copyright:
Code:
 
<script type='text/javascript'>
(function () {
var old_html = '';
$("#stats_legend a").hover(function () {
var styles = $(this).html().replace($(this).text(), ""),
new_html = [];
old_html = $('#stats_members').html();
$('#stats_members > a').each(function () {
if ($(this).html().replace($(this).text(), "") === styles) {
new_html[new_html.length] = $(this).html();
}
});
$('#stats_members').html(new_html.join(", "));
}, function () {
$('#stats_members').html(old_html);
});
})();
</script>
Edited by Reid, Jun 23 2010, 11:00 PM.
Offline Profile Quote Post Goto Top
 
SlyCooperFan
Member Avatar
Member
[ * ]
This isn't working on my board, since http://aquate.us/ is now offline.
Offline Profile Quote Post Goto Top
 
Pando
Member Avatar
Member
[ *  *  *  *  *  * ]
Yes, this is an awesome code. But it didn't work for me either.
Offline Profile Quote Post Goto Top
 
Reid
Member Avatar
È una trappola!

Updated.
Offline Profile Quote Post Goto Top
 
Pando
Member Avatar
Member
[ *  *  *  *  *  * ]
Thanks! It works now.
Offline Profile Quote Post Goto Top
 
SlyCooperFan
Member Avatar
Member
[ * ]
This doesn't seem to be working for me. Hovering over one of the member groups hides everyone, even the members of that group. I use the Change Legend to Images code, could that be the problem?
Offline Profile Quote Post Goto Top
 
Reid
Member Avatar
È una trappola!

Yes, that's the likely culprit.
Offline Profile Quote Post Goto Top
 
RedBldSandman
Member Avatar
Asante sana Squash banana
[ *  *  *  * ]
Code:
 
var styles = $(this).html().replace($(this).text(), "")
Brilliant idea!
Offline Profile Quote Post Goto Top
 
Vienely
Member Avatar
★__SUNSHINE
[ * ]
it works great

thanks =D
Offline Profile Quote Post Goto Top
 
kissthebabysky
Member
[ * ]
Works perfectly! Thanks for this! :>
Offline Profile Quote Post Goto Top
 
ghoshriju33
Member Avatar
I ❤ jQuery
[ *  *  * ]
awesome
i used it in my board
but now it is not working
pls reply soon
Edited by ghoshriju33, May 28 2012, 05:27 AM.
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