my code snippet is different in function.php
return unesc("<font color='" . $gcolor . "'>" . $name . "" . $star . "" . $warn . "</font>");
}
and change as below, but it doesn't work
return unesc("<font color='" . $gcolor . "'>" . $name . "" . $star . "" . $warn . "".$premium."</font>");
}
here is the complete code modify in the function.php file;
#======================================================================#
# Start class_user function
#======================================================================#
if ($classy["class"] == "2") {
$premium = "<img src='https://cdn1.iconfinder.com/data/icons/awards-trophies/512/medal_award_trophy_premium_win_first_place_11-256.png' width='32' height='32' title='This user is PREMIUM user'>";
}
else {
$premium = "";
}
function class_user($name)
{
global $site_config;
$a = "SELECT u.class, u.donated, u.warned, g.Color, g.level, u.uploaded, u.downloaded FROM `users` `u` INNER JOIN `groups` `g` ON g.group_id=u.class WHERE username ='" . $name . "'";
//echo "Query a".$a."<br />";
$res = SQL_Query_exec($a);
$classy = @mysqli_fetch_array($res);
$gcolor = $classy['Color'];
if ($classy['donated'] > 0) {
$star = "<img src='" . $site_config['SITEURL'] . "/images/donor.png' alt='fait_un_don' border='0' width='32' height='32'>";
} else {
$star = "";
}
if ($classy['warned'] == "yes") {
$warn = "
<img src='" . $site_config['SITEURL'] . "/images/warned.gif' alt='Averti' border='0'>";
} else {
$warn = "";
}
return unesc("<font color='" . $gcolor . "'>" . $name . "" . $star . "" . $warn . "".$premium."</font>");
}
#======================================================================#
# End Start class_user function
#======================================================================#