Gökhan YILDIZ |
|
---|---|
change your function: function cot_build_user($id, $user, $extra_attrs = '') { global $db; if (!$id) { return empty($user) ? '' : $user; } else { $gdata = $db->query("SELECT gru_groupid FROM cot_groups_users WHERE gru_userid = $id LIMIT 1"); $row = $gdata->fetch(); return empty($user) ? '?' : $link='<a href="'.cot_url('users', 'm=details&id='.$id.'&u='.$user).'" class="group'.$row["gru_groupid"].'">'.$user.'</a>'; } } open your css file and add anywhere:
a.group5{ color:#FF0000; font-weight:bold; } a.group4{ color:#000; font-weight:bold; } a.group3{ color:#CC0; font-weight:bold; } a.group2{ color:#ddd; font-weight:bold; } a.group1{ color:#ccc; font-weight:bold; }
Gökhan YILDIZ
|