Hey i want to add the option that my users nickname can be in color staff vip and ofcoz the users depending on their status
i have this code but when i add it in core.php i get an error in admincp when try changing user info
i have this code but when i add it in core.php i get an error in admincp when try changing user info
PHP Code:
//////////////////////GET USER NICK FROM USERID
function getnick_uid($uid)
{
$unick = mysql_fetch_array(mysql_query("SELECT name,plusses,perm,specialid FROM ibwf_users WHERE id='".$uid."'"));
if($unick[2]=='3')
{
return "<font color=\"red\">$unick[0]</font>";
}
else if($unick[2]=='2')
{
return "<font color=\"blue\">$unick[0]</font>";
}
else if($unick[2]=='1')
{
return "<font color=\"green\">$unick[0]</font>";
}
else if($unick[3]>0)
{
return "<font color=\"orange\">$unick[0]</font>";
}
return $unick[0];
}
function getnick_uid_noc($uid)
{
$unick = mysql_fetch_array(mysql_query("SELECT name,plusses, perm FROM ibwf_users WHERE id='".$uid."'"));
return $unick[0];
}
Comment