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:
Locked Topic
[ ! ] Different color for members of group
Topic Started: May 19 2013, 10:38 PM (222 Views)
wodrum
Member Avatar
Member
[ * ]
Hey. I've tried looking at previous codes but haven't found a code that can do what I want. My apologies if it exists and I just haven't found it.

Request: Is there a code to give a member of group a different color than the group color. For example if I have a group called Soldier, in red, would there be a way to give a group member their own color, purple for example, while still staying in the same group.

Thanks for the help.
Edited by wodrum, May 19 2013, 10:39 PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
You can accomplish this with CSS:

To color the username across the board:
Code:
 
a[href*="/profile/32664/"] {
color: purple !important;
}
To color the username where they are currently colored:
Code:
 
a[href*="/profile/32664/"] span[style*="red"] {
color: purple !important;
}
The Profile ID (32664), the users current color (red) and the users new color (purple) all need to be changed accordingly.

You can use CSS with the style tag in the Javascripts wrapper of the Board Template to make the CSS affect all themes:
Code:
 
<style type="text/css">
a[href*="/profile/32664/"] span[style*="red"] {
color: purple !important;
}
</style>
Offline Profile Goto Top
 
wodrum
Member Avatar
Member
[ * ]
Perfect. Thank you once again.
Offline Profile Goto Top
 
Eccentric Feline
Member Avatar
梦想
[ *  *  *  *  *  *  *  * ]
This request has gone a lengthy period of time without any new activity, therefore it is being marked as expired. This means that the request was typically too time-consuming or irritating for coders (who provide this service voluntarily in their free time) to complete.

Thank you.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic