View Single Post
  #1  
Old 25th August 2008, 21:29
zenja7777 zenja7777 is offline
Senior Member
 
Join Date: Jul 2008
Posts: 47
Unhappy Plugin users for 24 hours for TS v5.1
Click the image to open in full size.
Make please who be fashions users for 24 hours for TS v5.1

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

Code:
<?php
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 .= "<a href=userdetails.php?id=" . $arr["id"] . ">".get_user_class_color($arr["class"], $arr["username"])."</a></a>"; 
    } else { 
        $todayactive .= "<a href=userdetails.php?id=" . $arr["id"] . ">".get_user_class_color($arr["class"], $arr["username"])."</a></a>"; 
    } 
    $donator = $arr["donor"] == "yes"; 
    if ($donator) { 
        $todayactive .= "<img alt=\"\" src=\"pic/star.gif\">"; 

    } 
    $warned = $arr["warned"] == "yes"; 
    if ($warned) { 
        $todayactive .= "<img alt=\"\" src=\"pic/warned.gif\">"; 
    } 
    $female = $arr["gender"] == "2"; 
     if ($female){ 
$todayactive .= "<img alt=\"\" src=\"pic/ico_f.gif\">"; 
} 
    $male = $arr["gender"] == "1"; 
     if ($male){ 
$todayactive .= "<img alt=\"\" src=\"pic/ico_m.gif\">"; 
}

    $usersactivetoday++; 
} 

$content .= "<center>
<table class=\"main\" cellspacing=\"0\" cellpadding=\"5\" border=\"0\" width=\"100%\"><tr><td class=\"embedded\">"
."<b><font color=red>".$usersactivetoday."</font>    :</b><hr>"
."<div align='left'>".$todayactive."</div><hr></td></tr></table></center>"; 
//end visited today
?>

Last edited by zenja7777; 26th August 2008 at 01:27.
Reply With Quote