View Single Post
  #17  
Old 29th November 2018, 16:43
Napon Napon is offline
Banned
 
Join Date: Feb 2016
P2P
Posts: 522
Default
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']) ? "&nbsp;<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";
}
Reply With Quote