Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Reply
Thread Tools
  #1  
Old 10th January 2013, 00:01
romano1's Avatar
romano1 romano1 is offline
Senior Member
 
Join Date: Jan 2012
Portugal
Posts: 107
Default Help with a mod
Code:
// users online
begin_frame("$members Users Online");
echo "<center><b><font color=#000000>Member</font> | <font color=#8E35EF>Power User</font> | <img src=\"images/star.png\"><font color=#008000>VIP</font> | <font color=#3300CC>Uploader</font> | <font color=#0FDDAF>Moderator</font> | <font color=#348781>Super Moderator</font> | <font color=#FF0000>Boss</font> <br><br></b></center>";
$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"] = "<font color=#ff0000>" . $arr["username"] . "</font>";
         break;
         case 6:
         $arr["username"] = "<font color=#348781>" . $arr["username"] . "</font>";
         break;
         case 5:
         $arr["username"] = "<font color=#0FDDAF>" . $arr["username"] . "</font>";
         break;
         case 4:
         $arr["username"] = "<font color=#3300CC>" . $arr["username"] . "</font>";
         break;
         case 3:
         $arr["username"] = "<font color=#008000>" . $arr["username"] . "</font>";
         break;
         case 2:
         $arr["username"] = "<font color=#8E35EF>" . $arr["username"] . "</font>";
         break;
         case 1:
         $arr["username"] = "<font color=#000000>" . $arr["username"] . "</font>";
         break;                         
                 }

         $donator = $arr["donated"] > 0;
if ($CURUSER) {
         $usersonline .= "<a href=account-details.php?id=" . $arr["id"] . ">" . $arr["username"] . "</a></a>";
} else {
         $usersonline .= "<a href=account-details.php?id=" . $arr["id"] . ">" . $arr["username"] . "</a></a>";
}
if ($donator) {
         $usersonline .= "<img src=\"images/star.png\" title=\"You have contributed to the success of the site!\">";
}
$warned = $arr["warned"] == "yes";
if ($warned) {
         $usersonline .= "<img src=\"images/warned.png\" title=\"You had a warning from staff!!\">";
}
$usersonlineday++;
                 }
         echo "<div align='left'>" . $usersonline . "</div>";
echo "<BR>";
end_frame();

begin_frame("$members2 Users Online Last 24 Hours");
echo "<center><b><font color=#000000>Member</font> | <font color=#8E35EF>Power User</font> | <img src=\"images/star.png\"><font color=#008000>VIP</font> | <font color=#3300CC>Uploader</font> | <font color=#0FDDAF>Moderator</font> | <font color=#348781>Super Moderator</font> | <font color=#FF0000>Admin</font> <br><br></b></center>";
$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"] = "<font color=#ff0000>" . $arr["username"] . "</font>";
         break;
         case 6:
         $arr["username"] = "<font color=#348781>" . $arr["username"] . "</font>";
         break;
         case 5:
         $arr["username"] = "<font color=#0FDDAF>" . $arr["username"] . "</font>";
         break;
         case 4:
         $arr["username"] = "<font color=#3300CC>" . $arr["username"] . "</font>";
         break;
         case 3:
         $arr["username"] = "<font color=#008000>" . $arr["username"] . "</font>";
         break;
         case 2:
         $arr["username"] = "<font color=#8E35EF>" . $arr["username"] . "</font>";
         break;
         case 1:
         $arr["username"] = "<font color=#000000>" . $arr["username"] . "</font>";
         break;                         
                 }
        
         $donator = $arr["donated"] > 0;
if ($CURUSER) {
         $todayactive .= "<a href=account-details.php?id=" . $arr["id"] . ">" . $arr["username"] . "</a></a>";
} else {
         $todayactive .= "<a href=account-details.php?id=" . $arr["id"] . ">" . $arr["username"] . "</a></a>";
}
if ($donator) {
         $todayactive .= "<img src=\"images/star.png\" title=\"You have contributed to the success of the site!\">";
}
$warned = $arr["warned"] == "yes";
if ($warned) {
         $todayactive .= "<img src=\"images/warned.png\" title=\"You had a warning from staff!!\">";
}
$usersactivetoday++;
                 }
         echo "<div align='left'>" . $todayactive . "</div>";
echo "<BR>";
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.

Last edited by romano1; 10th January 2013 at 00:25.
Reply With Quote
  #2  
Old 10th January 2013, 01:41
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
Go to torrenttrader where i posted the fix for this mate

https://www.torrenttrader.org/topic/17022-new-online/ here
Reply With Quote
  #3  
Old 10th January 2013, 01:46
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
SQL_Query_exec 208
Reply With Quote
  #4  
Old 10th January 2013, 01:46
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
Quote:
Edit:never mind its working.
did you guys not read the hole post??
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #5  
Old 10th January 2013, 01:47
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
aww hes silly
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #6  
Old 10th January 2013, 01:58
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
:clown : : clown::lo l:
Reply With Quote
Reply

Tags
mod


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 09:26. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.