Welcome Guest [Log In] [Register]
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.
Topic Started: Nov 26 2008, 02:23 PM (803 Views)
Choco
Member
[ *  * ]
Name: Hover Over Member Legend
Description: See the member legend in the board statistics? If you hover over a group name there, then it'll hide all users outside of that group in the users online list until you take your mouse off.
Browsers: IE/FF
Installation:
Put it anywhere. The board template or theme layout pages are a good place though.
Code:
Code:
 
<script type="text/javascript">if($("#stats_members a").size()>1){$.getScript("http://aquate.us/u/dimensi.js",function(){first="";$("#stats_members").attr("height",$('#stats_members').outerHeight());$("#stats_legend a").mouseover(function(){first=(first=="")?$("#stats_members").html():first;col=$(this).find("span:eq(0)").css("color");build="";$("#stats_members a").each(function(){if($(this).find("span:eq(0)").css("color")==col){build+="<a class='member' href='"+$(this).attr("href")+"'>"+$(this).html()+"</a>, "}});$("#stats_members").html(build.substring(0,build.lastIndexOf(",")-1)+build.substring(first.lastIndexOf(",")+1,build.length))}).mouseout(function(){$("#stats_members").html(first)})})}
</script>


Enjoy!
Choco
Edited by Choco, Nov 27 2008, 09:46 AM.
Offline Profile Quote Post Goto Top
 
obxbiker
Member Avatar
USMCR
[ *  *  *  * ]
This is really COOL !!
It works on most of our user groups but some are showing in more then one group.
We did do a check to be sure they were not also in a ''Alternate Group'' ..
any ideas what else to check ?
Offline Profile Quote Post Goto Top
 
Xagnam
Member Avatar
Member
[ * ]
It seems to "replicate" a member's username, if they're the only one on, when hovered upon.

http://i21.photobucket.com/albums/b272/key_blade/Image4-2.png
Offline Profile Quote Post Goto Top
 
Choco
Member
[ *  * ]
Obxbiker: The script works on the color of their names, not underlines/italics/anything like that. So if you've got two groups that have the same color but only one of them is bold, it will still show both of them. Sorry, it's the only way I can do it without requiring admins to give a list of all member groups and how they're formatted to the code so it can process it.

Xagnam: Duly noted. I'll fix that immediately, it should be pretty easy.
Offline Profile Quote Post Goto Top
 
Xagnam
Member Avatar
Member
[ * ]
Great, the update seems to alleviate the previous problem, thanks!
Offline Profile Quote Post Goto Top
 
Choco
Member
[ *  * ]
Awesome. I'm glad it worked. :)
Offline Profile Quote Post Goto Top
 
obxbiker
Member Avatar
USMCR
[ *  *  *  * ]
Choco we have red, green and blue names showing up in different groups


The only thing we see in common is the three have 'dotted borders'' around them, but the dots are the same color as the name ?
Edited by obxbiker, Dec 7 2008, 09:12 PM.
Offline Profile Quote Post Goto Top
 
Choco
Member
[ *  * ]
Obxbiker: I'm sorry for the delay. I'm not sure what's wrong with the board. All I can say is that this will generally only work on boards with no underlines or border styles on usernames. Sorry :(
Offline Profile Quote Post Goto Top
 
obxbiker
Member Avatar
USMCR
[ *  *  *  * ]
OK thats mate !
Offline Profile Quote Post Goto Top
 
KaZoR
Member
[ * ]
Not Work For Me...
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Code & Modification Database · Next Topic »
Add Reply