you can also use this in torrenttable_functions in the include
Do not need format_username at all
in my v2 of mysqli this what ive done
Code:
if ($variant == "index")
if ($row['anonymous'] == 'yes') {
$htmlout.= "<td align='center'>
".(isset($row["username"]) ? (($row["anonymous"] == "yes" && $CURUSER['class'] < UC_STAFF && $row['owner'] != $CURUSER['id']) ? " <i>".$lang['torrenttable_anon']."</i>" : "<b><font color='#" . get_user_class_color($row['class']) . "'> " . htmlspecialchars($row['username']) . "</b></a>") : "<i>(".$lang["torrenttable_unknown_uploader"].")</i>") . "
</td>\n";
}else{
$htmlout .= "<td align='center'>
" . (isset($row["username"]) ? ("<a href='userdetails.php?id=" . $row["owner"] . "'><b><font color='#" . get_user_class_color($row['class']) . "'> " . htmlspecialchars($row['username']) . "</b></a>") : "<i>(".$lang["torrenttable_unknown_uploader"].")</i>") . "
</td>\n";
}