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
[HACK] users names in color
Controls ·  Search New posts · Mark unread

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

Unknown User
2007-12-17 00:52:30
Thank You (super work)
Unknown User
2008-01-03 06:18:01
"XxBeliaLxX, post: 36447":
not work for me in v2.2 , nothing show in my user online block !! you got a idee??not just the colors but no user ........ is empty

agree since the time zone update aka v2.2 this mod does not seem to be working thanks for the great work and hope for an update :(
Unknown User
2008-01-03 07:05:06
Yes  i beleive this mod is very nice addition to the site and would like to see it updated to ver.2.02
Unknown User
2008-01-03 14:43:45
<?

//USERS ONLINE

begin_block("Users Online");

$file = "".$site_config["cache_dir"]."/cache_usersonlineblock.txt";

$expire = 600; // time in seconds

if (file_exists($file) &&

filemtime($file) > (time() - $expire)) {

$usersonlinerecords = unserialize(file_get_contents($file));

}else{

$usersonlinequery = mysql_query("SELECT id, username, class FROM users WHERE privacy !='strong' AND UNIX_TIMESTAMP('" . get_date_time() . "') - UNIX_TIMESTAMP(users.last_access) < 900") or die(mysql_error());



while ($usersonlinerecord = mysql_fetch_array($usersonlinequery) ) {

$usersonlinerecords[] = $usersonlinerecord;

}

$OUTPUT = serialize($usersonlinerecords);

$fp = fopen($file,"w");

fputs($fp, $OUTPUT);

fclose($fp);

} // end else

if ($usersonlinerecords == ""){

echo "No Users Online";

}else{

foreach ($usersonlinerecords as $user) {

switch($user["class"]){

case 1:

$color = "black";// user

break;

case 2:

$color = "yellow";// power user

break;

case 3:

$color = "red";// VIP

break;

case 4:

$color = "green";// uploader

break;

case 5:

$color = "brown";//moderator

break;

case 6:

$color = "orange";//super moderator

break;

case 7:

$color = "blue";// you and most trusted :)

break;

}

print("<a href=\"account-details.php?id=".$user["id"]."\"><font style=\" color: ".$color."\">".$user["username"]."</font></a>, ");

}

}



end_block();

?>


^ that should work with the timezone update
Unknown User
2008-02-05 12:31:10
Big Thanks :)
Unknown User
2008-02-17 14:57:00
how can i get this working in the shoutbox?
Unknown User
2008-02-17 15:36:12
"sliver, post: 39122":
how can i get this working in the shoutbox?


[url="http://www.torrenttrader.org/index.php?showtopic=6975"]http://www.torrenttrader.org/index.php?showtopic=6975[/url]
Unknown User
2008-05-16 04:14:17
How to add stars at donators username, like in visitorstoday.php

Thanks
Unknown User
2008-05-16 11:52:13
"Sur, post: 42353":
How to add stars at donators username, like in visitorstoday.php
Thanks


Use search next time:

[url="http://www.torrenttrader.org/index.php?showtopic=7249"]http://www.torrenttrader.org/index.php?showtopic=7249[/url]
Unknown User
2008-05-17 22:22:02
"SpaZiuR, post: 42367":
Use search next time:
[url="http://www.torrenttrader.org/index.php?showtopic=7249"]http://www.torrenttrader.org/index.php?showtopic=7249[/url]

O! Sorry

Thank you very mach
Unknown User
2008-05-19 07:17:12
nice mod.. love this one
Unknown User
2008-07-15 08:44:38
Hi,

I installed the hack, its show me the username color for one time ( after 10 min ) and then ( after new login )it's white again and didnt change anymore to the correct color.

I have TT v. 2.04

Greets,

Peter
Unknown User
2008-07-16 09:55:26
Hi Again,

Strange thing  :huh:   when one user login then i see the right color, when 2 users and more are online al names are white again

Please somebody knows how to solve this  :mellow:

Greets,

Peter
Unknown User
2008-07-24 01:17:21
Same at mine

shows for some minutes and then goes anyone can help ??

Fixxed just imported usersonline_block and edited it :blink:
Unknown User
2008-11-21 22:45:12
I have a Problem:

If I out-log myself goes my name no longer away out of that to useronlineblock and the .txt ????

Please help me... THX

Gr33tz
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