Heavily based on [url="http://www.torrenttrader.pw/index.php?showtopic=11180"]http://www.torrenttrader.pw/index.php?showtopic=11180[/url] < great original post which makes making VIP only torrents so much simpler
first make new category like VIP>VIP add image to root etc [find one on google] then goto sql database and take down category ID number for newly made VIP category, then:
In Download.php
find :
Replace with :
and add after :
$row['category'] == YY) (YY = ID number of your VIP category which you taken down previously)
as said all praise must go to above post really.
WHAT DOES THIS DO:
It allows all members to view VIP torrents but only VIP and above members to download torrent, works fine on V2.06. Some people might like to modify to stop users other than VIP from viewing VIP torrents but I personally think it adds an initiative for users to donate and become VIP etc.
long live torrent trader and please be nice as this is my first mod lol
first make new category like VIP>VIP add image to root etc [find one on google] then goto sql database and take down category ID number for newly made VIP category, then:
In Download.php
find :
$res = mysql_query("SELECT filename, external, announce, FROM torrents WHERE id =".intval($id));
$row = mysql_fetch_array($res);
$trackerurl = $row['announce'];
$torrent_dir = $site_config["torrent_dir"];
$fn = "$torrent_dir/$id.torrent";Replace with :
$res = mysql_query("SELECT filename, external, announce, category FROM torrents WHERE id =".intval($id));
$row = mysql_fetch_array($res);
$trackerurl = $row['announce'];
$torrent_dir = $site_config["torrent_dir"];
$fn = "$torrent_dir/$id.torrent";and add after :
///////////////////////////////////////////////////////////////////////////////////////////////
//////////////// VIP
if(($CURUSER["class"]<3) && ($row['category']) == YY){
show_error_msg("Sorry","you are not a VIP",1);
}
///////////////////////////////////////////////////////////////////////////////////////////////
//////////////// END VIP$row['category'] == YY) (YY = ID number of your VIP category which you taken down previously)
as said all praise must go to above post really.
WHAT DOES THIS DO:
It allows all members to view VIP torrents but only VIP and above members to download torrent, works fine on V2.06. Some people might like to modify to stop users other than VIP from viewing VIP torrents but I personally think it adds an initiative for users to donate and become VIP etc.
long live torrent trader and please be nice as this is my first mod lol