This is my final code
PHP Code:
global $vbulletin;
if ($vbulletin->userinfo['field12'] == "GIRL")
{
$user['musername'] = '<span style="color:pink;">' . $user['username'] . '</span>';
}
else
{
$user['musername'] = '<span style="color:blue;">' . $user['username'] . '</span>';
}
Edit- actually I'm not sure that matters... I don't think it does in this hook.
You are right, nothing changed after add (gloabl $vbulletin

. All users are blue color.
I see you have some other language installed... what language is your forum in?
Arabic, but I am using English lang. for this field. (Group / BOY or GIRL) so no Arabic words.
Oh wait- I see this is a required field... but has it always been a required field? If not a lot of users may not have set it yet- is that possible? Did you test it for a user you know is absolutely set to BOY or GIRL?
Yes this is always required field. Nobody can register without choose this field (BOY / GIRL) and I can see this field when I visit any user profile.
I have +1000 online users (BOY + GIRLS) but all users are in blue color.
I wish we can fix this, my users will like this change
Thanks again