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
2010-01-11 20:52:43
Hello

How so be to make warned.gif in useronline_block.php ?



Thanks
Unknown User
2010-01-13 20:44:42
Please help!  ;)
Unknown User
2010-06-02 05:13:09
work fine for me
2010-10-13 05:10:19
Thanks :D
2010-11-17 16:44:58
"Diverjh, post: 61719":
HelloHow so be to make warned.gif in useronline_block.php ?



Thanks




begin_block("" . ONLINE_USERS . "");

$res = mysql_query("SELECT id, username, class, donated, warned FROM users WHERE UNIX_TIMESTAMP(" . get_dt_num() . ") - UNIX_TIMESTAMP(last_access) < 900 ORDER BY username");

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

$expire = 600; // time in seconds

$guests = number_format(getguests());

$members = number_format(get_row_count("users", "WHERE UNIX_TIMESTAMP('" . get_date_time() . "') - UNIX_TIMESTAMP(users.last_access) < 900"));

echo "<B> " . $guests . "</b> Guests - <B> " . $members . "</b> Members <br>";

$a = @mysql_fetch_assoc(@mysql_query("SELECT id,username FROM users WHERE status='confirmed' ORDER BY id DESC LIMIT 1"));

if ($CURUSER)

$latestuser = "<a href=account-details.php?id=" . $a["id"] . ">" . $a["username"] . "</a>";

else

$latestuser = "<b>$a[username]</b>";

echo "New users: $latestuser<br>OnLine:<br>";

while ($arr = mysql_fetch_assoc($res))

{

if ($activepeople)

$activepeople .= ", ";

switch ($arr["class"])

{

case UC_ADMINISTRATOR:

 $arr["username"] = "<font color=#FF0000>" . $arr["username"] . "</font>";

 break;

case UC_MODERATOR:

 $arr["username"] = "<font color=#A83838>" . $arr["username"] . "</font>";

 break;

case UC_VIP:

 $arr["username"] = "<font color=#FEDE01>" . $arr["username"] . "</font>";

 break;

case UC_UPLOADER:

 $arr["username"] = "<font color=#C0C0C0>" . $arr["username"] . "</font>";

 break;

  case UC_JMODERATOR:

 $arr["username"] = "<font color=#000000>" . $arr["username"] . "</font>";

 break;

}



$donator = $arr["donated"] > 0;

if ($CURUSER) {

$activepeople .= "<a href=account-details.php?id=" . $arr["id"] . ">" . $arr["username"] . "</a></a>";

} else {

$activepeople .= "<a href=account-details.php?id=" . $arr["id"] . ">" . $arr["username"] . "</a></a>";

}

if ($donator) {

$activepeople .= "<img src=\"images/star.gif\" alt=\"Donator\">";

}

$warned = $arr["warned"] == "yes";

if ($warned) {

$activepeople .= "<img src=\"images/warned.gif\" alt=\"Warning\">";

}

$usersactive++;

}

//end visited today



echo "<div align='left'>" . $activepeople . "</div>";



end_block();


merci a para-doks

~~~~~~~~~~~

Thanks you  para-doks

[url="http://www.torrenttrader.org/index.php?showtopic=11058"]http://www.torrenttrader.org/index.php?showtopic=11058[/url]

@+
Unknown User
2011-11-16 19:16:33
good job  :)

but anyone can make this for torrents-details page.I want to say torrent uploader names in color  ;)

many many thanks for this hack :)
Unknown User
2012-11-02 17:47:51
Thanks  :)  :D
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