"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();"walker1977, post: 67344":this mod is about 2 years old and was modded for v2.03 and i have not tested it on v2.06. let me know which problem you are having and i should be able to solve it. i do not have an active torrent trader site but i do have a few test sites for mod making so it would not be to hard to get it working.





categories.image AS cat_pic,print("<tr><td align='left'><b>" .T_("CATEGORY"). ":</b></td><td>" . $row["cat_parent"] . " > " . $row["cat_name"] . "</td></tr>n");print("<tr><td align=left><b>" .T_("CATEGORY"). ":</b></td><td><a href="torrents.php?cat=" . $row["category"] . ""><img border="0"src="" . $site_config['SITEURL'] . "/images/categories/" . $row["cat_pic"] . "" alt="" . $row["cat_name"] . "" /></td></tr>n");
"tealk, post: 65373":Hi all !! i try it on torrentrader v2.06 , me (administrator ) can't see now the shoutbox but member yes ... Any idea ?? thx.
oops resolved in changing the theme of the site ... Thx to me so :D .