Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent) > Mods & Themes
Reply
  #1  
Old 9th February 2012, 03:52
BitFarmer's Avatar
BitFarmer BitFarmer is offline
Senior Member
 
Join Date: Jan 2012
Latvia
Posts: 99
Default [2.0.4] Tbdev like categories view
There is parts in torrent tracker's i like to look classic !!!!
So here's a little mod that will make you're categories look classic like in screen shot
open torrents.php
find
PHP Code:
OpenTable(pic("icon_mini_search.gif")._btsearch'728'); 
echo 
"<form method=\"get\" action=\"search.php\">"
echo 
"<br>\n"
echo 
"<table align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">"
echo 
"<tr><td></td><td><input id=\"actb_textbox\" type=\"text\" name=\"search\" value=\"".searchfield($search)."\" size=\"25\"> "
echo 
"<td>"
echo <<<
EOF 
<SCRIPT type="text/javascript" language="JavaScript"
actb(document.getElementById("actb_textbox"),customarray); 
</SCRIPT> 
EOF; 
echo " <select name=\"cat\">"; 
echo "<option value=\"0\">"._btalltypes."</option>"; 
foreach (catlist() as $category) { 
        echo "<option value=\"".$category["id"]."\" "; 
        if (isset($cat) AND $cat == $category["id"]) echo "selected"; 
        echo " >".$category["name"]."</option>"; 

echo "</select>"; 
echo "</td>"; 
 
echo "<td><input type=\"submit\" value=\""._btgo."\""; 
 
echo "</td></tr></table>"; 
 
echo "<table align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\"><tr><td><p>"._btresfor."</p></td><td> <select name=\"orderby\">\n"; 
$orders = Array(_btinsdate,_btseeders,_btleechers,_bttotsorc,_btdownloaded,_btvote,_btname,_btdim,_btnfile,); 
$i = 0; 
foreach ($orders as $order) { 
        echo "<option value=\"".$i."\" "; 
        if (isset($orderby) AND $orderby == $i) echo "selected"; 
        echo ">".$order."</option>\n"; 
        $i++; 

echo "</select></td>\n"; 
 
echo "<td><select name=\"ordertype\">". 
    "<option value=\"DESC\" "; 
    if (isset($ordertype) AND $ordertype == "DESC") echo "selected"; 
    echo " >"._btdesc."</option>". 
    "<option value=\"ASC\" "; 
    if (isset($ordertype) AND $ordertype == "ASC") echo "selected"; 
    echo " >"._btord."</option>". 
    "</select></td>"; 
 
echo "<td><p><input type=\"checkbox\" name=\"incldead\" "; 
if (isset($incldead) AND $incldead == "true") echo "checked"; 
echo " value=\"true\">"._btitm.""; 
 
echo "</td></tr></table>"; 
echo "</form>"; 
 
CloseTable(); 
And replace with

PHP Code:
OpenTable('Categories'); 
echo 
"<table align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\"><tr>"
$i 0
foreach (
catlist() as $category) { 
$i++; 
echo 
"<td style=\"padding-bottom: 2px;padding-right: 5px;padding-left: 5px\"><input type=\"checkbox\" value=\"".$category["id"]."\" ";
if (isset(
$cat) AND $cat == $category["id"]) echo "checked"
echo 
"/><a href=\"torrents.php?cat=".$category["id"]."\">".$category["name"]."</a></td>"
if (
$i == 7) { 
echo 
"</tr><tr>"
$i 0


echo 
"</tr></table>";
echo 
"<h3>Search</h3>";
echo 
"<form method=\"get\" action=\"search.php\">"
echo 
"<br>\n"
echo 
"<table align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">"
echo 
"<tr><td></td><td><input id=\"actb_textbox\" type=\"text\" name=\"search\" value=\"".searchfield($search)."\" size=\"25\"> "
echo 
"<td>"
echo <<<
EOF 
<SCRIPT type="text/javascript" language="JavaScript"
actb(document.getElementById("actb_textbox"),customarray); 
</SCRIPT> 
EOF; 
echo " <select name=\"cat\">"; 
echo "<option value=\"0\">"._btalltypes."</option>"; 
foreach (catlist() as $category) { 
echo "<option value=\"".$category["id"]."\" "; 
if (isset($cat) AND $cat == $category["id"]) echo "selected"; 
echo " >".$category["name"]."</option>"; 

echo "</select>"; 
echo "</td>"; 
echo "<td><input type=\"submit\" value=\""._btgo."\""; 
echo "</td></tr></table>"; 
echo "<table align=\"center\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\"><tr><td><p>"._btresfor."</p></td><td> <select name=\"orderby\">\n"; 
$orders = Array(_btinsdate,_btseeders,_btleechers,_bttotsorc,_btdownloaded,_btvote,_btname,_btdim,_btnfile,); 
$i = 0; 
foreach ($orders as $order) { 
        echo "<option value=\"".$i."\" "; 
        if (isset($orderby) AND $orderby == $i) echo "selected"; 
        echo ">".$order."</option>\n"; 
        $i++; 

echo "</select></td>\n"; 
echo "<td><select name=\"ordertype\">". 
    "<option value=\"DESC\" "; 
    if (isset($ordertype) AND $ordertype == "DESC") echo "selected"; 
    echo " >"._btdesc."</option>". 
    "<option value=\"ASC\" "; 
    if (isset($ordertype) AND $ordertype == "ASC") echo "selected"; 
    echo " >"._btord."</option>". 
    "</select></td>"; 
echo "<td><p><input type=\"checkbox\" name=\"incldead\" "; 
if (isset($incldead) AND $incldead == "true") echo "checked"; 
echo " value=\"true\">"._btitm.""; 
echo "</td></tr></table>"; 
echo "</form>"; 
CloseTable(); 
Mod orginaly for BitFarm
Attached Thumbnails
torrentscat.png  
Reply With Quote
The Following 2 Users Say Thank You to BitFarmer For This Useful Post:
dandanch (31st May 2012), romano1 (9th February 2012)
Reply

Tags
categories , tbdev , view

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