Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
Color Usernames Across Board; :)
Topic Started: Jan 1 2008, 08:15 PM (6,724 Views)
Arrogant
Member Avatar
Vote Choco and Nicola!
[ *  *  * ]
try doing this:

colorUser("Your ID", "red", "Your Name");

sometimes, tags inside the link override the class or color of the link itself, causing it to stay a different color from what you wanted.
if you set new content inside the link, only the color of the link gets applied, since nothing exists to counter that.

-- v read choco's post for a CSS based solution if you're using classes v --
Edited by Arrogant, Mar 23 2008, 08:59 AM.
Offline Profile Quote Post Goto Top
 
choco
SPORE
[ *  *  * ]
Arrogant's solution will work too, but if you have set CSS for each of the member groups, here's what to do.

Supposing your CSS looks like this:

.moderator {
color: blue;
}

Change it to this:
.moderator {
color: blue!important;
}

The !important overrides other settings in the CSS hierarchy. :)
Offline Profile Quote Post Goto Top
 
Nemisis
~Sithly Member~
[ * ]
Okay, thanks!

I am not using groups, though. I am using single users and using <span class=".name">Name</span>
Offline Profile Quote Post Goto Top
 
Arrogant
Member Avatar
Vote Choco and Nicola!
[ *  *  * ]
that's what he meant.

.name {
color: blue !important;
}
Offline Profile Quote Post Goto Top
 
Jambi
Member Avatar
Omnipresent
[ * ]
So you place this in "Above the copyright"? There is no below section that I see.
Offline Profile Quote Post Goto Top
 
.insane
Member Avatar
You think you know....
[ *  * ]
is it possible to add images to the 3rd field? as like an alternative to the default name change? and can you make it color all user groups like this member legend does? http://support.zetaboards.com/topic/350/1/

thanks
Offline Profile Quote Post Goto Top
 
Amanda
Member Avatar
comfortably numb
[ *  * ]
I used this code and it works well, but mod status seems to override the name being coloured anywhere but in topic replies from forum view. So if I want to temporarily change the colour of someone who is a mod it doesn't really work the way I'd like as the person still is coloured the same as the rest of the mod group when online.
Unless of course there's a way around that.
Offline Profile Quote Post Goto Top
 
flyin' dragon
Member
[ * ]
that's all good, but i dont know where to put it
Offline Profile Quote Post Goto Top
 
TheMasterDude
Member
[ * ]
Choco, I keep trying to use the text glow code but it is not working for some reason....can you see what is wrong here?

Code:
 
<style type="text/css">
.admins {
filter: glow(Color=FF0000, Strength=4);
}
</style>

<script type="text/javascript">
//C.U.A.B
//By Choco
function colorUser(uN,u,uNa) {
$("a[@href*=/profile/"+uN+"/]").not("[img]").each(function() {
a=this;a.className=(u.match(/\./))?u.split(".")[1]:a.className;
a.style.color=(!(u.match(/\./)))?u:a.style.color;
a.innerHTML=(uNa)?uNa:a.innerHTML;
});
}
colorUser("206057",".admins");
colorUser("235153",".admins");

</script>
Edited by TheMasterDude, Sep 28 2008, 09:59 PM.
Offline Profile Quote Post Goto Top
 
Bieradler
Member
[ * ]
I'm really confused. I'm trying to change the color to my admin group. How can I do that? Is there an easy way that I can understand? I don't get all this code stuff real well. It's extremely frustrating. :(
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · User Created Codes · Next Topic »
Add Reply