This will allow you to search for free leech and also vip torrents you should have the vip torrent mod in place for it to work thanks you can find it [url="http://www.torrenttrader.org/index.php?showtopic=6783"]HERE[/url] thank you Ezerbeth for brining that mod over
open torrent-search.php
find:
if ($_GET["incldead"] == 1) {
$addparam .= "incldead=1&";
$thisurl .= "incldead=1&";
}elseif ($_GET["incldead"] == 2){
$wherea[] = "visible = 'no'";
$addparam .= "incldead=2&";
$thisurl .= "incldead=2&";
replace with:
switch($_GET['incldead']) {
case 1:
$addparam .= "incldead=1&";
if (!isset($CURUSER) || get_user_class < UC_ADMINISTRATOR)
$wherea[] = "banned != 'yes'";
break;
case 2:
$wherea[] = "visible = 'no'";
break;
case 3:
$addparam .= "incldead=3&";
$wherea[] = "freeleech = '1'";
$wherea[] = "visible = 'yes'";
break;
case 4:
$addparam .= "incldead=4&";
$wherea[] = "vip = 'y'";
$wherea[] = "visible = 'yes'";
break;
default:
$wherea[] = "visible = 'yes'";
then find:
Thats it working in latest TT v2.04
open torrent-search.php
find:
//include deadif ($_GET["incldead"] == 1) {
$addparam .= "incldead=1&";
$thisurl .= "incldead=1&";
}elseif ($_GET["incldead"] == 2){
$wherea[] = "visible = 'no'";
$addparam .= "incldead=2&";
$thisurl .= "incldead=2&";
replace with:
//include deadswitch($_GET['incldead']) {
case 1:
$addparam .= "incldead=1&";
if (!isset($CURUSER) || get_user_class < UC_ADMINISTRATOR)
$wherea[] = "banned != 'yes'";
break;
case 2:
$wherea[] = "visible = 'no'";
break;
case 3:
$addparam .= "incldead=3&";
$wherea[] = "freeleech = '1'";
$wherea[] = "visible = 'yes'";
break;
case 4:
$addparam .= "incldead=4&";
$wherea[] = "vip = 'y'";
$wherea[] = "visible = 'yes'";
break;
default:
$wherea[] = "visible = 'yes'";
then find:
<option value="2">Only Dead</option>below add: <option value="3">Free Leech</option>
<option value="4">Vip</option>
Next Open torrents.php
Find:
case 'comments': $sort = "torrents.comments"; $addparam .= "sort=comments&"; break;;
below add:
case 'freeleech': $sort = "torrents.freeleech"; $addparam .= "sort=freeleech&"; break;
next find:
echo "<option value='leechers'" . ($_GET["sort"] == "leechers" ? "selected" : "") . ">Leechers</option>";
below add:
echo "<option value='freeleech'" . ($_GET["sort"] == "freeleech" ? "selected" : "") . ">Freeleech</option>";
Next open advancesearch_block.php
find:
<option value="2">Only Dead</option>
below add:
<option value="3">Free Leech</option>
<option value="4">Vip</option>Thats it working in latest TT v2.04