snyx
11-27-2002, 09:41 PM
werd, I have been trying to get this to work for ages now, but I cant seem to on 228/229 its werid.
anyone help shed some light on this? I wanna set my users postbit username to a color based on their usergroup. (admins red, mods green, users blue)
I tried this code.. but it just didnt change anything.
no errors, just didnt work.
// ###################### Start coloredusers #######################
$post[specialusername] = $post[username];
$userid=$post[userid];
if ($userid == 6) { $post[specialusername] = "<span color=\"#cc0000\"><i><b>$post[username]</b></i></span>"; }
if ($userid == 11) { $post[specialusername] = "<span color=\"#000000\"><b>$post[username]</b></span>"; }
if ($userid == 10) { $post[specialusername] = "<span color=\"#0000ff\"><b>$post[username]</b></span>"; }
if ($userid == 7) { $post[specialusername] = "<span color=\"green\"><b>$post[username]</b></span>"; }
if ($userid == 2) { $post[specialusername] = "<span color=\"#0000ff\">$post[username]</span>"; }
if ($userid == 5) { $post[specialusername] = "<span color=\"green\"><b><i>$post[username]</i></b></span>"; }
// ###################### End coloredusers #######################
any help anyone can lend me would be huge!
thanks..
-myles
anyone help shed some light on this? I wanna set my users postbit username to a color based on their usergroup. (admins red, mods green, users blue)
I tried this code.. but it just didnt change anything.
no errors, just didnt work.
// ###################### Start coloredusers #######################
$post[specialusername] = $post[username];
$userid=$post[userid];
if ($userid == 6) { $post[specialusername] = "<span color=\"#cc0000\"><i><b>$post[username]</b></i></span>"; }
if ($userid == 11) { $post[specialusername] = "<span color=\"#000000\"><b>$post[username]</b></span>"; }
if ($userid == 10) { $post[specialusername] = "<span color=\"#0000ff\"><b>$post[username]</b></span>"; }
if ($userid == 7) { $post[specialusername] = "<span color=\"green\"><b>$post[username]</b></span>"; }
if ($userid == 2) { $post[specialusername] = "<span color=\"#0000ff\">$post[username]</span>"; }
if ($userid == 5) { $post[specialusername] = "<span color=\"green\"><b><i>$post[username]</i></b></span>"; }
// ###################### End coloredusers #######################
any help anyone can lend me would be huge!
thanks..
-myles