Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

[SOLVED] Theme NB-H20-2c — 2019-10-16 13:48:56 in v3 Support
The best way is to download the theme and search the header.php for sql_ if it does replace it with sqli_ that should do it and then upload theme as normal. Remember to make a database backup.
Theres only 3 php files in themes so most should work converting to sqli_

Any colour issues and that might be caused by https and any edits from mods will have to be added like css/js
Seed Bonus [TTv3] — 2019-10-16 04:33:21 in v3 Mods Completed
Sorry try this I didn't remove the function

<?php echo T_("Seed Bonus"); ?>: <?php echo $user["seedbonus"]; ?><br />
Seed Bonus [TTv3] — 2019-10-15 18:05:23 in v3 Mods Completed
Find
<?php echo T_("DOWNLOADED"); ?>: <?php echo mksize($user["downloaded"]); ?><br />


Add below
<?php echo T_("Seed Bonus"); ?>: <?php echo mksize($user["seedbonus"]); ?><br />
try change on torrents-upload.php
    $ret = SQL_Query_exec("INSERT INTO torrents (filename, vip, owner, name, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, last_action) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$vip."', '".$inames[0]."', '".$inames[1]."', '".$catid."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecounts."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon', '".get_date_time()."')");


to
$ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr, vip, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, last_action) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$vip."', '".$inames[0]."', '".$inames[1]."', '".$catid."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon', '".get_date_time()."')");
Try changing on line 201 vip, owner, name, descr,
To owner, name, descr, vip,

can you post screenshot of torrent page, did you edit torrents.php or just the functions.php (torrenttable function)
Ive posted in progress but i have this installed on live site once i know i havent missed anything ill move to complete. Remember to backup.


[color=rgb(251, 160, 38)]SQL :[/color]
alter table `torrents` add vip enum('yes','no') NOT NULL default 'no';


[color=rgb(251, 160, 38)]In torrents-upload.php search :[/color]
$descr = $_POST["descr"];


Add above :
$vip = ($_POST["vip"]);


find start of line
$ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name,.....


Add inline after "name, " :
vip,


On same line find :
".sqlesc($descr).",


Add after :
'".$vip."',


Search :
if ($site_config['ANONYMOUSUPLOAD'] && $site_config["MEMBERSONLY"] ){ ?>


Add above : ( your group class might be different )
if (get_user_class() > 4)
print ("<tr><td align='right'>VIP: </td><td align=left><input type='checkbox' name='vip' " .
(($row["vip"] == "yes") ? " checked='checked' " : "" ) . " value='yes'>Check this box if you want the torrent or only for VIP.</td></tr>");


[color=rgb(251, 160, 38)]In torrents-details.php seacrh :[/color]
torrents.freeleech,


Add after :
torrents.vip,


Search :
//DECIDE IF TORRENT EXISTS
if (!$row || ($row["banned"] == "yes" && $CURUSER["edit_torrents"] == "no"))
   show_error_msg(T_("ERROR"), T_("TORRENT_NOT_FOUND"), 1);


Add after :

$vips = $row["vip"];
if ($vip == "yes") {
$vip = "<b>Yes</b>";
} else {
$vip = "<b>No</b>";
}


Search :
print ("<b>".T_("LEECHERS").": </b><font color='#ff0000'>" .  number_format($row["leechers"]) . "</font><br />");


Add after :
if ($row["external"]!='yes' && $row["vip"]== yes){
       print ("<b>Torrent VIP: </b><font color='orange'>Torrent reserved for VIP</font><br><br>");
   }


[color=rgb(251, 160, 38)]Search in torrents-edit.php :[/color]
$updateset[] = "freeleech = '".$_POST["freeleech"]."'";


Add after :
$updateset[] = "vip = '" . ($_POST["vip"] ? "yes" : "no") . "'";


Search:

if ($row["external"] != "yes" && $CURUSER["edit_torrents"] == "yes"){
   echo "<tr><td class='table_col1' align='right'><b>".T_("FREE_LEECH").": </b></td><td class='table_col2'><input type=\"checkbox\" name=\"freeleech\"" . (($row["freeleech"] == "1") ? " checked=\"checked\"" : "" ) . " value=\"1\" />".T_("FREE_LEECH_MSG")."<br /></td></tr>";
}


Add after :

if ($row["external"] != "yes" && $CURUSER["edit_torrents"] == "yes"){
   echo "<tr><td class='table_col1' align='right'><b>VIP:</b></td><td class='table_col2'><input name=vip type='checkbox'" . (($row["vip"] == "yes") ? " checked='checked'" : "" ) . " value='yes' /> Check the box to make the torrent VIP only.";
}


[color=rgb(251, 160, 38)]In torrents.php search : (same for index.php / torrents-search.php & torrents-today.php)[/color]
torrents.announce,


Add after :
torrents.vip,


[color=rgb(251, 160, 38)]In download.php search :[/color]
$fn = "$torrent_dir/$id.torrent";


Add after : (
$res = SQL_Query_exec("SELECT filename, vip FROM torrents WHERE id = $id");
$arr = mysqli_fetch_assoc($res);
$name = $arr['filename'];
$vip = $arr['vip'];

if ($vip == "yes" && $CURUSER["class"]<4 ){
   show_error_msg("Error","<b>You can not download, you have to be VIP</b>",1);
}


[color=rgb(251, 160, 38)]In backend/functions.php search :[/color]
if ($row["freeleech"] == 1)
                   $dispname .= " <img src='images/free.gif' border='0' alt='' />";


Add after :
if ($row["vip"] == "yes")
                   $dispname .= " <img src='images/vip.gif' border='0' alt='' />";


Put the image "vip.gif" in your images folder at the root of your site.

little extra you dont need this but a index block for vip torrents
[color=rgb(251, 160, 38)]in config.php add[/color]
$site_config['VIPTORRENT'] = true;        //Enable vip torrents


[color=rgb(251, 160, 38)]in index.php add[/color]
// VIP Torrents
if ($site_config['VIPTORRENT']){
include("/vip-torrents.php");
}


add vip-torrents.php to root

Any errors and you can check code here
[URL unfurl="true"]https://github.com/M-jay84/TTv3/tree/master/upload[/url]
vip download — 2019-10-10 04:33:31 in v3 Mods Requests
I've got the vip only mod on my site I'll post later on today when I get a bit of free time
How many files m8 bootstrap,image and css ?. I'm looking at removing theme dir all together and just have one standard template class with header,footer blocks then moving images and css to a assets folder. I assume you needed to change all pages with ui forms?
Looking good shadows  (y)
Seed Bonus [TTv3] — 2019-10-04 14:14:45 in v3 Mods Completed
This along with the signup error with the modded version looks like strict mode is enabled or are you using above php 7.2
[SOLVED] PHP 7.2 — 2019-10-03 13:40:00 in v3 Support
if you have access to the database you can check the sqlerr table to see if theres anything there, and check the user table to see if account is pending, have you tried signing up a few times?
looks really nice, keep up the good work :)
$post = array($type=>"@".$file);
This line is php5.5 @ is depicted you can try some thing like this

$post = array($type=>curl_file_create(.$file)
— 2019-09-10 10:53:46 in
i just need to come up with a good enough name for the site, hardest part is thinking of name lol
I removed all md5, in theory you should be able to change functions mksecret and the passhash md5 with a new algorithm
Then it's a case of changing in text editor all md5 to new crypt and mksecret to new cyrpt function.

Some vars are named $md5
I've never allowed external torrents but thinking of changing that so I'll test your code serph on my live site, botanicar if you have old code that use to work might be worth posting here it might have something useful in there
— 2019-09-07 16:09:39 in
I'm sure there's robot txt, will look into seo
— 2019-09-07 16:05:35 in
I would, you could even invite some members to post there sources on.
Members are getting fed up on bvlist so might be a good time to do it but would have to be register by approval to stop unwanted guest. Also a bit more search engine friendly, do you have robot text with this site because it's hard to find when searching torrenttrader.
Like spirtblue said building community for code and help can only be a good thing
— 2019-09-07 14:47:14 in
Hi there, i was just wondering if anyone would be interested if i opened a new site, a bit like bvlist for tracker codes and other things
if so comment down below
TTv3 Modded — 2019-08-27 14:09:39 in v3 Download
What's wrong with the css and the design flaw mate
At the weekend I'll update so all index mods are turned off and then user can decide weather to turn them on in config, any feed back is welcome and I'll look at admin config code
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728