Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #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)
  #2  
Old 17th March 2010, 03:10
Daz's Avatar
Daz Daz is offline
Senior Member
 
Join Date: Dec 2009
United Kingdom
Posts: 124
Default
PHP Code:
        if ($variant == "index" && (get_user_class() > UC_VIP))
        {
            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");
            }
        elseif (
$variant == "index" && (get_user_class() < UC_VIP))
        {
            print(
"<td align=center><i>Anonymous</i></td>");
            } 
Does that work? Have not tested it so backup...
Reply With Quote
The Following User Says Thank You to Daz For This Useful Post:
lovebeer (17th March 2010)
  #3  
Old 17th March 2010, 15:13
lovebeer's Avatar
lovebeer lovebeer is offline
Senior Member
 
Join Date: May 2009
Romania
Posts: 91
Default
Thanks this works!
__________________

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

Tags
anonymous , browsephp

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anonymous Uploader dyzzy Mods & Themes 1 7th November 2012 15:45
Anonymous Comments Rendevous Mods & Themes 0 4th May 2010 12:17
Anonymous Uploader Rendevous Mods & Themes 0 4th May 2010 12:11
Anonymous mod netdsl Yuna Scatari Edition (YSE) 0 21st September 2008 13:24
anonymous login page poila Yuna Scatari Edition (YSE) 3 6th September 2008 15:04



All times are GMT +2. The time now is 13:49. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.