Hi, I want that all classes lower than VIP to see
Anonymous in browse on the upped by column, but I can't make it to work.
In details.php shows anonymous.
This is my code from details.php
Code:
$row["owner"] = "<a href=".$GLOBALS['DEFAULTBASEURL']."/userdetails.php?id=" . $row["owner"] . ">";
$uprow = (isset($row["username"]) ? ("" . $row["owner"] . "<b>" . htmlspecialchars($row["username"]) . "</b></a>") : "<i>Anonymous</i>");
if ($owned)
$uprow .= " $spacer<$editlink><b>[Edit this torrent]</b></a>";
if (get_user_class() >= UC_VIP){
tr("Upped by", $uprow, 1);
}
else
if ($owned){
tr("Upped by", $uprow, 1);
}
else
tr("Upped by", "<i>[Anonymous]</i>", 1);
and this is the code from bittorrent.php :
Code:
if ($variant == "index")
print("<td align=center>" . (isset($row["username"]) ? ("<a href=userdetails.php?id=" . $row["owner"] . "><b>" . htmlspecialchars($row["username"]) . "</b></a>") : "<i>(unknown)</i>") . "</td>\n");
else
print("<td align=center > <i>Anonymous</i>");
But I can't make the code from details to work in bittorrent too.
Sorry for my bad english!