Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Trader (http://www.bvlist.com/forumdisplay.php?f=29)
-   -   Help with a mod (http://www.bvlist.com/showthread.php?t=8748)

romano1 10th January 2013 00:01

Help with a mod
 
Code:

// users online
begin_frame("$members Users Online");
echo "
Member | Power User | VIP | Uploader | Moderator | Super Moderator | Boss
";
$resew = SQL_Query_exec("SELECT id, username, class, donated, warned FROM users WHERE enabled = 'yes' AND status = 'confirmed' AND privacy !='strong' AND UNIX_TIMESTAMP('".get_date_time()."') - UNIX_TIMESTAMP(last_access) <= 100");
while ($arr = mysql_fetch_assoc($resew))
{
if ($usersonline)
        $usersonline .= ", ";
switch ($arr["class"])
{
        case 7:
        $arr["username"] = "" . $arr["username"] . "";
        break;
        case 6:
        $arr["username"] = "" . $arr["username"] . "";
        break;
        case 5:
        $arr["username"] = "" . $arr["username"] . "";
        break;
        case 4:
        $arr["username"] = "" . $arr["username"] . "";
        break;
        case 3:
        $arr["username"] = "" . $arr["username"] . "";
        break;
        case 2:
        $arr["username"] = "" . $arr["username"] . "";
        break;
        case 1:
        $arr["username"] = "" . $arr["username"] . "";
        break;                       
                }

        $donator = $arr["donated"] > 0;
if ($CURUSER) {
        $usersonline .= "" . $arr["username"] . "";
} else {
        $usersonline .= "" . $arr["username"] . "";
}
if ($donator) {
        $usersonline .= "";
}
$warned = $arr["warned"] == "yes";
if ($warned) {
        $usersonline .= "";
}
$usersonlineday++;
                }
        echo "
" . $usersonline . "
";
echo "
";
end_frame();

begin_frame("$members2 Users Online Last 24 Hours");
echo "
Member | Power User | VIP | Uploader | Moderator | Super Moderator | Admin
";
$resew = SQL_Query_exec("SELECT id, username, class, donated, warned FROM users WHERE UNIX_TIMESTAMP('".get_date_time()."') - UNIX_TIMESTAMP(users.last_access) <= 86400 ORDER BY username");
while ($arr = mysql_fetch_assoc($resew))
{
if ($todayactive)
        $todayactive .= ", ";
switch ($arr["class"])
{
        case 7:
        $arr["username"] = "" . $arr["username"] . "";
        break;
        case 6:
        $arr["username"] = "" . $arr["username"] . "";
        break;
        case 5:
        $arr["username"] = "" . $arr["username"] . "";
        break;
        case 4:
        $arr["username"] = "" . $arr["username"] . "";
        break;
        case 3:
        $arr["username"] = "" . $arr["username"] . "";
        break;
        case 2:
        $arr["username"] = "" . $arr["username"] . "";
        break;
        case 1:
        $arr["username"] = "" . $arr["username"] . "";
        break;                       
                }
       
        $donator = $arr["donated"] > 0;
if ($CURUSER) {
        $todayactive .= "" . $arr["username"] . "";
} else {
        $todayactive .= "" . $arr["username"] . "";
}
if ($donator) {
        $todayactive .= "";
}
$warned = $arr["warned"] == "yes";
if ($warned) {
        $todayactive .= "";
}
$usersactivetoday++;
                }
        echo "
" . $todayactive . "
";
echo "
";
end_frame();
// end users online

I can make it work the 24 who is online but who is online now i cant, you coder friends can help out a bvlist fan?
Edit:never mind its working.

wMan 10th January 2013 01:41

Go to torrenttrader where i posted the fix for this mate:drink:

https://www.torrenttrader.org/topic/17022-new-online/ here

wMan 10th January 2013 01:46

SQL_Query_exec 208:lol:

joeroberts 10th January 2013 01:46

Quote:

Edit:never mind its working.
:lol::lol::lol: did you guys not read the hole post??

daffy 10th January 2013 01:47

aww hes silly :clown:

wMan 10th January 2013 01:58

:lol::lol::lol::lol::lol::lol::clown::clown::clown ::clown::clown::clown::clown::clown::clown::clown: :clown::clown::clown::clown::clown::clown::clown:: clown::clown::clown::clown::lol::lol::lol::lol::lo l::lol::lol::lol::lol::lol::lol::lol:


All times are GMT +2. The time now is 19:40.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.