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
User Posts

Go to Profile

"TorrentialStorm, post: 38033":
or...blocks/login_block.php, find:

 print ("<center><img width=80 height=80 src=$avatar></center><br>" . DOWNLOADED . ": $userdownloaded<br>" . UPLOADED . ": $useruploaded<BR>" . ACCOUNT_PRIVACY_LV . ": $privacylevel<BR>". RATIO .": $userratio");
add below:


$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><b>Connectable: <font color='#FF0000'>NO</font></b>";

elseif ($connectable)

print "<br><b>Connectable: <font color='#00FF00'>YES</font></b>";

else

print "<br><b>Connectable: <font color='#FF9900'>N/A</font></b>";




It is working. Thanks :)
"Ezerbeth, post: 37828":
Don't know why this wasn't added, they probably just forgot  :P
Requested [url="http://www.torrenttrader.org/index.php?showtopic=7721"]here[/url], taken from 1.08 code, adapted to 2.03.

in functions.php, find:

$dispname = "<b>" . $smallname . "</b>";
Below, add:
// Start NEW! mod

$last_access = sql_timestamp_to_unix_timestamp($CURUSER["last_access"]);

$time_now = gmtime();

if ($last_access > $time_now || !is_numeric($last_access)) {

 $last_access=$time_now;

}

if (sql_timestamp_to_unix_timestamp($row["added"]) >= $last_access){

$dispname = "<b>" . $smallname . "</b> <b><font color=red>(NEW!)</font></b>";

}else{

$dispname = "<b>" . $smallname . "</b>";

}

// end NEW! mod



Tested & working @ TT2.03

This should probably be added to SVN too  :)


Workfine on 2.03 TT Thanks m8
Thanks it is working :(
Thanks M8 it is working fine :(
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728