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
More complex infobar
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2011-11-17 13:35:27


Into every theme, in header.php after the logout or username line copy this code:

		//----- active torrents & connectable -----//

$res = mysql_query("SELECT COUNT(*) FROM peers WHERE userid=" . $CURUSER["id"] . " AND seeder='yes'");

$row = mysql_fetch_row($res);

$activeseed = $row[0];

$res = mysql_query("SELECT COUNT(*) FROM peers WHERE userid=" . $CURUSER["id"] . " AND seeder='no'");

$row = mysql_fetch_row($res);

$activeleech = $row[0];

$res2 = mysql_query("SELECT connectable FROM peers WHERE userid=" . sqlesc($CURUSER["id"]) . " LIMIT 1");

if($row = mysql_fetch_row($res2)){

$connect = $row[0];

if($connect == "yes"){

$connectable = "<font color=lime>Connectable</font>";

}else{ $connectable = "<font color=red>Unconnectable</font>";}

}else{ $connectable = "No transfer";}

print("[Active Torrents: Up-<font color=lime><b>$activeseed</b></font> Down-<font color=red><b>$activeleech</b></font>]&nbsp;&nbsp;");

print("[$connectable]&nbsp;&nbsp;");

//--- end active torrents & connectable ---//
For example, on my tracker i included the code after this line:
		echo " [<a href=\"account-logout.php\" >".T_("LOGOUT")."</a>]&nbsp;&nbsp;";


Do not forget to replace mysql_query with SQL_Query_exec if you are use it.

...
Unknown User
2012-05-13 04:31:25
thanks
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