Admin and mod names in color
Started on the old forum in January 2010 · view the original in the archive · old links redirect here
heres what i do on my site (you'll need to modify it to suit yours)
function
function get_user_class_color($class) {
switch($class) {
case 10: $color = "owner"; break;
case 5: $color = "moderator"; break;
default: $color = "member";
}
}
css
.owner { color: #ff0000; }
.moderator { color: #0000ff; }
.member { color: #000000; }
usage
echo "You are viewing <span class='".get_user_class_color($user['class'])."'>".$user['username']."</span>'s profile!";