Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent)
Reply
Thread Tools
  #1  
Old 10th February 2010, 06:58
pwnage pwnage is offline
Senior Member
 
Join Date: Jan 2010
P2P
Posts: 45
Default Recent Block
PHP Code:
OpenTable("Recently Uploaded");
        
$sql "SELECT ".$db_prefix."_torrents.*, IF(".$db_prefix."_torrents.numratings < '".$minvotes."', NULL, ROUND(".$db_prefix."_torrents.ratingsum / ".$db_prefix."_torrents.numratings, 1)) AS rating, ".$db_prefix."_categories.name AS cat_name, ".$db_prefix."_categories.image AS cat_pic, U.username, IF(U.name IS NULL, U.username, U.name) as user_name, U.level as user_level FROM ".$db_prefix."_torrents LEFT JOIN ".$db_prefix."_categories ON category = ".$db_prefix."_categories.id LEFT JOIN ".$db_prefix."_users U ON ".$db_prefix."_torrents.owner = U.id WHERE banned = 'no' AND ".$db_prefix."_torrents.password IS NULL ORDER BY ".$db_prefix."_torrents.added DESC LIMIT 10;";
        
$res $db->sql_query($sql) or btsqlerror($sql);
        if (
$db->sql_numrows($res) > 0) {
                
torrenttable($res,"usertorrent");
        } else {
                
OpenTable2();
                echo 
"<h3>"._btnotorrents."</h3>";
                
CloseTable2();
        }
CloseTable(); 
Reply With Quote
  #2  
Old 10th February 2010, 07:05
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
open include/bittorent.php

look for
PHP Code:
if ($variant == "index"

        echo 
"<thead><tr><th align=\"center\" width=\"7%\"><p><a href=\"$phpself?sort=4&amp;type=$link4\" title=\"Sort by "._bttype." ".$link4."\">"._bttype."</a></p></th>"
        echo 
"<th align=\"center\" width=\"51%\"><p><a href=\"$phpself".$oldlink."sort=1&amp;type=$link1\" title=\"Sort by "._btname." ".$link1."\">"._btname."</a></p></th>"
        echo 
"<th align=\"center\" width=\"1%\"><p>"._btcomments."</p></th>"
        echo 
"<th align=\"center\" width=\"7%\"><p><a href=\"$phpself".$oldlink."sort=7&amp;type=$link7\" title=\"Sort by "._btseeders." ".$link7."\">"._btseeders."</a></p></th>"
        echo 
"<th align=\"center\" width=\"7%\"><p><a href=\"$phpself".$oldlink."sort=8&amp;type=$link8\" title=\"Sort by "._btleechers." ".$link8."\">"._btleechers."</a></p></th>"
        echo 
"<th align=\"center\" width=\"1%\"><p>"._btnet."</p></th>"
}else{ 
        echo 
"<thead><tr><th align=\"center\" width=\"7%\"><p>"._bttype."</p></th>"
        echo 
"<th align=\"center\" width=\"51%\"><p>"._btname."</p></th>"
        echo 
"<th align=\"center\" width=\"1%\"><p>"._btcomments."</p></th>"
        echo 
"<th align=\"center\" width=\"7%\"><p>"._btseeders."</p></th>"
        echo 
"<th align=\"center\" width=\"7%\"><p>"._btleechers."</p></th>"
        echo 
"<th align=\"center\" width=\"1%\"><p>"._btnet."</p></th>"

and change % values like 7% to 5% will change width of columns

wait for more
Reply With Quote
Reply

Tags
modded , table , torrent


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
Modded Torrent table joeroberts Mods & Themes 21 11th May 2010 18:04
help Torrent Strike Fully Modded wMan Torrent Strike 8 3rd August 2009 00:37
help Torrent Strike Fully Modded wMan Community Cafe 0 2nd August 2009 01:56
New mod request torrent strike fully modded toontigger Torrent Strike 8 26th April 2009 14:27
Torrent Strike fully modded sql problem dragontear Torrent Strike 4 30th January 2009 22:23



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