Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   mod users for 24 hours for TS v5.1 (http://www.bvlist.com/showthread.php?t=894)

zenja7777 25th August 2008 21:29

Plugin users for 24 hours for TS v5.1
 
http://s51.radikal.ru/i132/0808/af/e429cfb86f07.jpg
Make please who be fashions users for 24 hours for TS v5.1:sos:

This code please alter who the code can for TS v 5.1 Users for 24 hours below

Code:

if (!defined('BLOCK_FILE')) {
 Header("Location: ../index.php");
 exit;
}

//visited today

$res = mysql_query("SELECT id,gender, username, donor, class, warned FROM users WHERE UNIX_TIMESTAMP(" . get_dt_num() . ") - UNIX_TIMESTAMP(last_access) < UNIX_TIMESTAMP(" . get_dt_num() . ") - UNIX_TIMESTAMP(" .date("Ymd000000"). ") ORDER BY username") or sqlerr(__FILE__, __LINE__);
while ($arr = mysql_fetch_assoc($res))
{

    if ($todayactive)
        $todayactive .= ", ";

    if ($CURUSER) {
        $todayactive .= "".get_user_class_color($arr["class"], $arr["username"])."";
    } else {
        $todayactive .= "".get_user_class_color($arr["class"], $arr["username"])."";
    }
    $donator = $arr["donor"] == "yes";
    if ($donator) {
        $todayactive .= "\"\"";

    }
    $warned = $arr["warned"] == "yes";
    if ($warned) {
        $todayactive .= "\"\"";
    }
    $female = $arr["gender"] == "2";
    if ($female){
$todayactive .= "\"\"";
}
    $male = $arr["gender"] == "1";
    if ($male){
$todayactive .= "\"\"";
}

    $usersactivetoday++;
}

$content .= "

"
."".$usersactivetoday."    :
"
."
".$todayactive."

";
//end visited today
?>



All times are GMT +2. The time now is 07:11.

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