Hallo,
das ganze ist etwas "tricky".
In der Datei " includes/functions_content.php " wird die Funktion " get_username_string " definiert.
/**
* Get username details for placing into templates.
* This function caches all modes on first call, except for no_profile and anonymous user - determined by $user_id.
*
* @param string $mode Can be profile (for getting an url to the profile), username (for obtaining the username), colour (for obtaining the user colour), full (for obtaining a html string representing a coloured link to the users profile) or no_profile (the same as full but forcing no profile link)
* @param int $user_id The users id
* @param string $username The users name
* @param string $username_colour The users colour
* @param string $guest_username optional parameter to specify the guest username. It will be used in favor of the GUEST language variable then.
* @param string $custom_profile_url optional parameter to specify a profile url. The user id get appended to this url as &u={user_id}
*
* @return string A string consisting of what is wanted based on $mode.
* @author BartVB, Acyd Burn
*/
function get_username_string($mode, $user_id, $username, $username_colour = '', $guest_username = false, $custom_profile_url = false)
Zurück kommt also ein "String" mit dem bereits "formatierten" Username.
Code: Alles auswählen
$_profile_cache['tpl_profile_colour'] = '<a href="{PROFILE_URL}" style="color: {USERNAME_COLOUR};" class="username-coloured">{USERNAME}</a>';
Damit wird jeder User, dem eine Farbe zugewiesen ist, den CSS Wert "username-coloured" zugewiesen.
Siehe dazu: ( prosilver ) --> styles/prosilver/theme/links.css
Code: Alles auswählen
/* Coloured usernames */
.username-coloured {
font-weight: bold;
display: inline !important;
padding: 0 !important;
}
Änderst Du in diesem CSS Teil die Zeile:
so greift das auf jeden User mit zugewieser Farbe ( auch bei Administratoren und Moderatoren. )