Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=93)
-   -   [2.0.4] Tbdev like categories view (http://www.bvlist.com/showthread.php?t=7608)

BitFarmer 9th February 2012 03:52

[2.0.4] Tbdev like categories view
 
1 Attachment(s)
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 
"\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 
"\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


All times are GMT +2. The time now is 07:10.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.