Instead of something like:
PHP Code:
if ($user['usergroupid'] == 6 and $highlightadmin) {
$userinfo["$key"]['username'] = "<font color=red><b><i>$user[username]</i></b></font>";
} else if (($user['usergroupid'] == 7)and $highlightadmin) {
$userinfo["$key"]['username'] = "<font color=green><b>$user[username]</b></font>";
Use:
PHP Code:
if ($user['usergroupid'] == 6 and $highlightadmin) {
$userinfo["$key"]['username'] = "<font color={admincolor}><b><i>$user[username]</i></b></font>";
} else if (($user['usergroupid'] == 7)and $highlightadmin) {
$userinfo["$key"]['username'] = "<font color={modcolor}><b>$user[username]</b></font>";
Then create replacements {admincolor} and {modcolor}. If you have a white or black theme for example, coloring the admin color red is fine but what if you add another theme that is red? In that case you'll set the {admincolor} to something else for that theme.