I have problem with this code at chat page:
if(ismod($uid)) {
$addClass = " Blued";
}
else {
if(isowner(getuid_sid($sid)))
{
$addClass = " Greened";
}
else {
if(isheadadmin(getuid_sid($sid))) {
$addClass = " Yellowed";
}
else {
if(isadmin(getuid_sid($sid))) {
$addClass = " Redded";
}
else {
$addClass = " Default";
}
}
}
}
echo "[$ds]<a href=\"chat.php?action=say2&sid=$sid&who=$chat[0]&rid=$rid&rpw=$rpw\">$optlink</a> - ";
in css I have add:
.Blued{ color: #0000A0; background-color: #E0FFFF; } .Redded{ color: #C11B17; background-color: #F9966B; } .Yellowed{ color: #AF7817; background-color: #FFF380; } .Greened{ color: #254117; background-color: #6AFB92; } .Default{color: deepskyblue;}
but not work this code...
any1 can give me help 4 fix??? tnks..
if like my post click: