Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Project U-232
Reply
  #1  
Old 11th April 2016, 03:06
CAGADA's Avatar
CAGADA CAGADA is offline
Senior Member
 
Join Date: Jan 2011
P2P
Posts: 17
Default user class color V3 top10.php
how add user class color in the top10.php (user) ?

Code:
$HTMLOUT.= "<br /><br /><h2>Top 10 Downloaders</h2>";
$result = sql_query("SELECT username, downloaded FROM users WHERE enabled = 'yes' ORDER BY downloaded DESC LIMIT 10");
$counted = mysqli_num_rows($result);
if ($counted == "10") {
    $arr = mysql_fetch_rowsarr($result);
    $user1 = $arr[0]['username'];
    $user2 = $arr[1]['username'];
    $user3 = $arr[2]['username'];
    $user4 = $arr[3]['username'];
    $user5 = $arr[4]['username'];
    $user6 = $arr[5]['username'];
    $user7 = $arr[6]['username'];
    $user8 = $arr[7]['username'];
    $user9 = $arr[8]['username'];
    $user10 = $arr[9]['username'];
    $upped1 = $arr[0]['downloaded'];
    $upped2 = $arr[1]['downloaded'];
    $upped3 = $arr[2]['downloaded'];
    $upped4 = $arr[3]['downloaded'];
    $upped5 = $arr[4]['downloaded'];
    $upped6 = $arr[5]['downloaded'];
    $upped7 = $arr[6]['downloaded'];
    $upped8 = $arr[7]['downloaded'];
    $upped9 = $arr[8]['downloaded'];
    $upped10 = $arr[9]['downloaded'];
    $HTMLOUT.= "$imgstartbar&amp;chds=0,$upped1&amp;chxr=1,0,$upped1&amp;chd=t:$upped1,$upped2,$upped3,$upped4,$upped5,$upped6,$upped7,$upped8,$upped9,$upped10&amp;chxt=x,y,x&amp;chxl=0:|$user1|$user2|$user3|$user4|$user5|$user6|$user7|$user8|$user9|$user10|1:||||||||||".mksize($upped1)."|2:|(".mksize($upped1).")|(".mksize($upped2).")|(".mksize($upped3).")|(".mksize($upped4).")|(".mksize($upped5).")|(".mksize($upped6).")|(".mksize($upped7).")|(".mksize($upped8).")|(".mksize($upped9).")|(".mksize($upped10).")\" alt=''/>";
} else {
    $HTMLOUT.= "<h4>Insufficient Downloaders (".$counted.")</h4>";
}
Reply With Quote
Reply

Tags
class , color , top10php , user , v3

Thread Tools

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 12:04. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2021, vBulletin Solutions Inc.