Welcome Guest [Log In] [Register]
Online/Offline Member Legend!
Topic Started: Sep 22 2006, 12:50 AM (4,317 Views)
slayer766
Member Avatar


Code Name: Online/Offline Member Legend
Description: Ok, this Member Legend is by far the best legend ever made for IF in my honest opinion. What it does is it creates a Member Legend in the Users Online section and you can add as many Groups as you want, though you need to add CSS classes with them, which I will explain that after I give you the code.
Preview of it in Use: http://z10.invisionfree.com/slayer766hacks
Where it goes: Footer

This is the version WITHOUT the hover-over images:

Quote:
 
<script>
//Online/Offline Member Legend in Stats
//By slayer766 of thecodingzone.com

var NewGroup = new Array();
NewGroup[0] = ["GROUP_NAME","admin","URL_HERE"];
NewGroup[1] = ["GROUP_NAME","moderator","URL_HERE"];
NewGroup[2] = ["GROUP_NAME","member","URL_HERE"];

document.write("<script language='javascript' src='http://209.85.48.11/9178/48/upload/p1525821.ibf'><\/script>");
</script>




This is the version WITH the hover-over images:

Quote:
 
<script>
//Online/Offline Member Legend in Stats
//By slayer766 of thecodingzone.com

var NewGroup = new Array();
NewGroup[0]=["GROUP_NAME","admin","IMAGE_URL","URL_HERE""];
NewGroup[1]=["GROUP_NAME","moderator","IMAGE_URL","URL_HERE""];
NewGroup[2]=["GROUP_NAME","member","IMAGE_URL","URL_HERE""];


document.write("<script language='javascript' src='http://209.85.48.11/9224/111/upload/p1925082.ibf'><\/script>");
</script>


Edit whats in RED to the name of the group for the Member legend.
Edit whats in GREEN to the CSS class you set up for the group.
Edit whats in PURPLE to the link where your group is found in the member list.

For the GREEN parts on the CSS Classes you need to add whatever you have in the Green spot to your CSS. For example, take the admin which is in the code right now for the Admin and add it to the bottom of your CSS section:

.admin,.admin:link { color:red }

Change the color:red to whatever you want it to be. :D

Now go to Users and Groups> Manage User Groups> click a group you want to edit> in the Online List Format [Prefix] place this in there:

Code:
 
<span class="admin">


You change the "admin" to what you have down for the GREEN section for your group.

Then add this in the Online List Format [Sufffix]:

Code:
 
</span>


After you have all of that done you should be set to go. :D Oh, if you want to add more Groups add more of these after each other:

Code:
 
NewGroup[0] = ["GROUP_NAME","CSS_CLASS","URL_HERE"];


Remember to change the NewGroup[0] to increase by 1 for each line you add. :P
Mike is my coding brother.
Posted Image
Goto Top
 
Miker1012
New Member
Is there a way to get a group Icon for the Legend :angel:
Posted Image
For Graphics requests, Skin requests done fast check out UFM!
Click the Here!
Goto Top
 
slayer766
Member Avatar


?

You mean an image that gets hovered over? Use the second code.
Mike is my coding brother.
Posted Image
Goto Top
 
JohnMac
New Member
slayer766
Mar 6 2007, 03:32 PM
Edit whats in PURPLE to the link where your group is found in the member list.


I am totally new to this and i have followed the instructions but have no idea what you mean here.

I am also having problems with the user groups, i have created a new group based on members, and i cant have different colours for the members and the new group! Both have to be the same colour :no:
Goto Top
 
Cool-Cat
New Member
nice work
Goto Top
 
Zarkola
New Member
Hey good job, I'm gonna use this right now. :)
Goto Top
 
alex2974
Unpacked
no matter what i do it still says no leaders online
Goto Top
 
Saliutas1
Member Avatar
Unpacked
Amazing
Goto Top
 
Khard
New Member
Thank you so much dude, very simple and easy to do.
Goto Top
 
slayer766
Member Avatar


Thanks you guys. ^_^
Mike is my coding brother.
Posted Image
Goto Top
 
Minato-4th
Member Avatar
Unpacked
Very cool!

Nice job!
Posted Image

Join the Fun! The Bleach Revival is a brand new Bleach RP site. We are devoted to an active RP and bettering the site.
Goto Top
 
Sharkbeam
Member Avatar
Unpacked
Very nice once I figuired out how to use it, thank you very much, nice job
Posted Image
Goto Top
 
J'Quan
Member Avatar
TZ Obsessed
http://forums.ifskinzone.net/index.php?showtopic=289204

Click The Signature For Vantage
Posted Image
Goto Top
 
iVince
New Member
Looks good, I may use this instead of my other one. Thanks for a nice code!
Goto Top
 
SnyperOnyx
New Member
Quote:
 
.admin,.admin:link { color:red }


Okay so how exactly do we edit that if we have different user group types?
Goto Top
 
slayer766
Member Avatar


The bit where it talks about going to your Manage User Groups you would take the class name you make up there from the span tag and place the class name only where it says admin on bot spots. Example:

<span class="newgroup">

Now you take that class name newgroup and do this:

.newgroup,.newgroup:link { color:red }

:)
Mike is my coding brother.
Posted Image
Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »