Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
active torrents and connectable
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Completed

2021-11-20 21:53:28
Heres something to play with if you want. Add this to your login-block.php. play around with it until you find a nice place for it to display. You can put the PRINT part of the code anywhere you want. It doesnt have to be with the rest of this code, or just add it to a PRINT that you already have
								$res = mysqli_query($GLOBALS["DBconnector"],"SELECT COUNT(*) FROM peers WHERE userid=" . $CURUSER["id"] . " AND seeder='yes'");
$row = mysqli_fetch_row($res);
$activeseed = $row[0];
$res = mysqli_query($GLOBALS["DBconnector"],"SELECT COUNT(*) FROM peers WHERE userid=" . $CURUSER["id"] . " AND seeder='no'");
$row = mysqli_fetch_row($res);
$activeleech = $row[0];
$res2 = mysqli_query($GLOBALS["DBconnector"],"SELECT connectable FROM peers WHERE userid=" . sqlesc($CURUSER["id"]) . " LIMIT 1");
if($row = mysqli_fetch_row($res2)){
$connectable = get_row_count("peers", "WHERE connectable='yes' AND userid=$CURUSER[id]");
$unconnectable = get_row_count("peers", "WHERE connectable='no' AND userid=$CURUSER[id]");
}
if ($unconnectable)
print "<br>".T_('CONNECTABLE')."<b><font color='#FF0000' class='blink'>".T_('CONNECTABLENO')."</font></b>";
elseif ($connectable)
print "<br>".T_('CONNECTABLE')."<b><font color='#00FF00'>".T_('CONNECTABLEYES')."</font></b>";
elseif (empty($row))
print "<br>".T_('CONNECTABLE')."<b><font color='#FF9900'>".T_('CONNECTABLENA')."</font></b>";

print("&nbsp; &bull; &nbsp;".T_("ACTIVE_TRANSFERS").": <a href=\"account-details.php?id=".$CURUSER["id"]."#seeding\"><img src='images/download.png' border='0' title='".T_("ACTIVE_TRANSFERS")."'> <font color=lime><b>$activeseed</b></font></a>");
print("&nbsp;<img src='images/upload.png' border='0' title='".T_("CURRENTLY_LEECHING")."'> <font color=red><b>$activeleech</b></font>");

Images go in images folder
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2026-11-19 15:26:15
where img ??
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728