Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 23rd August 2009, 13:01
crztz crztz is offline
Senior Member
 
Join Date: Apr 2009
P2P
Posts: 34
Unhappy Top Uploaders
hy everyone, I'm having a small problem, i just can't make a top uploaders page...
uploader - nr of torrents uploaded , just name and nr of torrents uploaded...

If anyone could gimme a hand i'd really apreciate it
i'm using netvision source -tbdev based



to be honest i needed this to make a universal top upload script.. for torrents as well for subtitles...
in this moment i';m working at the top 5 subtitle uploaders....script for subtitles made by putyn @tbdev


this is what i have done so far ( for subtitles )

PHP Code:
<?
  
include("include/bittorrent.php");
  
dbconn();
  function 
top_subs()
  {
  

?>
<tr>
<td class=colhead>Rank</td>
<td class=colhead align=left>User</td>
<td class=colhead align=center>Subtitles</td>
<td class=colhead align=left>Joined</td>

</tr>
<?  

$res 
mysql_query("SELECT s.name,s.lang, s.imdb,s.fps,s.poster,s.cds,s.hits,s.added,s.owner,s.comment, u.username FROM subtitles AS s LEFT JOIN users AS u ON s.owner=u.id ORDER BY s.owner DESC 5");


while (
$arr mysql_fetch_assoc($res)) {

    
$num 0;

      

      
//$arr3 = mysql_fetch_row($res);
      
$subs $arr3[0];
      ++
$num;
      if(
$CURUSER["id"] == $arr["owner"])
      
$highlight " class=browse2";
      else
      
$highlight " class=browse1";
      
      print(
"<tr$highlight><td align=center>$num</td><td><a href=userdetails.php?id=" $arr["owner"] . "><b>" $arr["username"] . "</b></a></td>");
      print(
"<td align=right>" $subs "</td><td>" gmdate("Y-m-d",strtotime($arr["added"])) . " (" .
                      
get_elapsed_time(sql_timestamp_to_unix_timestamp($arr["added"])) . " ago)</td></tr>");
      
      }

              
    
end_table();
    
end_frame();
  }
  
  

  
top_subs();
?>

Last edited by crztz; 23rd August 2009 at 15:36.
Reply With Quote
Reply

Tags
top , uploaders

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-Uploaders MrPHP Sell & Buy 0 1st May 2010 09:30
top uploaders ??? wMan BT.Manager (phpMyBitTorrent) 2 14th February 2010 15:18
uploaders wanted.. FAT Community Cafe 0 6th September 2009 16:29
Auto promote uploaders kristaps Mods & Themes 0 2nd September 2008 21:17



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