View Single Post
  #1  
Old 16th March 2010, 20:58
lovebeer's Avatar
lovebeer lovebeer is offline
Senior Member
 
Join Date: May 2009
Romania
Posts: 91
Default Anonymous in browse.php
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!
__________________

Reply With Quote
The Following User Says Thank You to lovebeer For This Useful Post:
Daz (17th March 2010)