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

finding peers — 2019-06-26 20:55:02 in v3 Support
It is highly recommended by the torrent community at large to either use utorrent 1.6.1 or 2.2.1 build 25302, or qbittorrent. The new utorrent is trash and you will be happier in the long run by not using it. I use and recommend qbittorrent https://www.qbittorrent.org/ .Its great and is almost the same as utorrent, but if you like utorrent, use the versions mentioned and dont allow it to automagically update itself. You will be happier :) I know my response doesnt directly answer your question but I felt that was the best place to start. I uploaded 2.2.1 here https://www.mediafire.com/file/odo59id4s0i63r2/utorrent221build25302.rar/file
Make sure you put the images in images/bbcodes/ You will have to create that directory. Images are set like this
background: url('/images/bbcodes/Bold.png');

Backup your original bbcode.php file first, there are smilie codes that are not the same as the originals. You will need to do some small editing so your smilies all works correctly.

Example:
New bbcode.php for smile
    print ("<td width='20'><a href=\"javascript:SmileIT(':sm10:','$form','$name')\"><img src='/images/smilies/smile.png' border='0'         alt=':sm10:' title=':sm10:' /></a></td>");

Original bbcode.php for smile
          <td width="26"><a href="javascript:SmileIT(':)','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/smile.png" border="0" alt=':)' title=':)' /></a></td>

The preview will work fine, but when you post your comment, you will not have a smilie, you will have the alt :sm10: . Just be aware of that. backend/smilies.php contains all your smiles code that is visible in forums and comments. You will need to sit and go through your smilies and edit the code. Since everyone uses their own smilies mostly, just take sometime and make those changes.
I cant duplicate your problem. Worked perfectly when I tested it just now.
Page display issue — 2019-06-20 21:07:38 in v2.08 Support
This should be the only places you need to edit to get started. As you become more familiar, you can venture into other areas
Quote:

$site_config['SITENAME'] = 'Testing';                    //Site Name
$site_config['SITEEMAIL'] = '[email]change@myemailsux.com[/email]';        //Emails will be sent from this address
$site_config['SITEURL'] = 'http://YOURSITE.COM';    //Main Site URL
Page display issue — 2019-06-20 21:04:03 in v2.08 Support
Glad to hear you got it (y)
Page display issue — 2019-06-20 20:27:10 in v2.08 Support
TTv3 has only been tested on a distro using PHP 7.2 or higher. If you want to use TT2.08, using PHP 5.5 will work fine. chmods are important so make sure you check the check.php file that is included with the git download.  In the STAFF CP, at the top will tell you what version of each you are using, but also the check.php file will give more info as well. Hope that helps. I tested and still test TTv3 on the following.
Quote:

Ubuntu 18.04.2 LTS
Mysql Version: 5.7.26-0ubuntu0.18.04.1
PHP Version: 7.2.19-0ubuntu0.18.04.1
Apache Version: Apache/2.4.29 (Ubuntu)
mine looks like this, since we are sharing. This is from my old 2.08 micro edition. If you want to take it apart and play with any code, just go download it from https://sourceforge.net/projects/tt-2-08-micro-edition/
[ATTACH type="full"]5067[/ATTACH]
problem to register — 2019-06-07 00:04:36 in v3 Support
he posted these details at torrenttrader.org.
Quote:

php : 7.2.18
mysql : 5.7.26
webserver : CentOS 7 64 bits I have this server because I install cpanel and whm, basically I host myself and I use the V3.0
problem to register — 2019-06-06 10:50:06 in v3 Support
Im wondering if we just change the last_access date during the registration to something like 1972-01-01 12:00:00
problem to register — 2019-06-06 01:03:41 in v3 Support
sql_strict mode and no zero date is whats causing it. Look into your mysql strict mode
problem to register — 2019-06-05 10:50:17 in v3 Support
tell us what the error say in the error log for the database
Blackjack [TTv3] — 2019-06-03 23:25:23 in v3 Mods Completed
I cant duplicate your error on standard TTv3 with default theme and no added CSS :(
Copied from Uffeno1 post (all credit to authors)
SQL

ALTER TABLE torrents ADD `sticky` enum('yes','no') NOT NULL default 'no';


torrents.php, torrents-search.php or where you want to your sticky torrents shown.

change:

$orderby = "ORDER BY torrents.id DESC";

to:

$orderby = "ORDER BY torrents.sticky ASC, torrents.id DESC";


in the big query

after:

torrents.category,

insert:

torrents.sticky,


index.php

in the big query

after:

torrents.category,

insert:

torrents.sticky,

and at the end.

change:

ORDER BY id DESC LIMIT 25";

to:

ORDER BY sticky ASC, id DESC LIMIT 25";


torrent-edit.php

after:

$updateset[] = "category = " . (int) $_POST["type"];

insert:

if(get_user_class() >= 5){   // lowest class to make torrent sticky.
   if ($_POST["sticky"] == "yes")
             $updateset[] = "sticky = 'yes'";
      else
             $updateset[] = "sticky = 'no'";
   }

after:

echo "<tr><td class='table_col1' align='right'><b>".T_("CATEGORIES").": </b></td><td class='table_col2'>".$catdropdown."</td></tr>";

add:

if(get_user_class() >= 5)  // lowest class to make torrent sticky.
              echo "<tr><td class='table_col1' align='right'><b>".T_("STICKY").": </b></td><td class='table_col2'><input type='checkbox' name='sticky'" . (($row["sticky"] == "yes") ? " checked='checked'" : "" ) . " value='yes' />Set sticky this torrent!</td></tr>";


backend / function.php

after:

if ($row["freeleech"] == 1)
                                           $dispname .= " <img src='images/free.gif' border='0' alt='' />";

insert:

if ($row["sticky"] == "yes")
                                           $dispname .= " <img src='images/sticky.gif' bored='0' alt='sticky' title='sticky'>";

Put the sticky.gif image in the images folder
torrents-details.php. Seems easy enough to use the autolink

//take comment add
if ($_GET["takecomment"] == 'yes'){
   loggedinonly();
   $body = $_POST['body'];
   
   if (!$body)
   autolink("torrents-details.php?id=$id", T_("YOU_DID_NOT_ENTER_ANYTHING"));

   SQL_Query_exec("UPDATE torrents SET comments = comments + 1 WHERE id = $id");

   SQL_Query_exec("INSERT INTO comments (user, torrent, added, text) VALUES (".$CURUSER["id"].", ".$id.", '" .get_date_time(). "', " . sqlesc($body).")");

   if (mysqli_affected_rows($GLOBALS["DBconnector"]) == 1)
   autolink("torrents-details.php?id=$id", T_("COMMENT_ADDED"));
       else
   autolink("torrents-details.php?id=$id", T_("UNABLE_TO_ADD_COMMENT"));
}//end insert comment
I would think you would use isset() and unset(), but Im not sure. I have something to go do right, now, but I can try this when I get back and see if I can help
this line is what handles apostophe. Im not quite sure why this isnt working correctly for you. I will check into it more
$des = mysqli_real_escape_string($GLOBALS["DBconnector"], format_comment($descr['descr']));
so does this work correctly? I assume there will always be a file called duplicate.torrent and it just gets overwritten each time? If so, nice job :) Thanks for sharing
thank you very much. I didnt know this
All credit to the original authors.
in torrents-details.php find
require_once("backend/BDecode.php");

add below
require_once("backend/parse.php");
require_once("backend/udptscraper.php");


Find (entire scrape code)
    if ($row["external"]=='yes'){

       if ($scrape =='1'){
           print("<td valign='top' align='right'><b>Tracked: </b>EXTERNAL<br /><br />");
           $seeders1 = $leechers1 = $downloaded1 = null;

           $tres = SQL_Query_exec("SELECT url FROM announce WHERE torrent=$id");
           while ($trow = mysqli_fetch_assoc($tres)) {
               $ann = $trow["url"];
               $tracker = explode("/", $ann);
               $path = array_pop($tracker);
               $oldpath = $path;
               $path = preg_replace("/^announce/", "scrape", $path);
               $tracker = implode("/", $tracker)."/".$path;

               if ($oldpath == $path) {
                   continue; // Scrape not supported, ignored
               }

               // TPB's tracker is dead. Use openbittorrent instead
               if (preg_match("/thepiratebay.org/i", $tracker) || preg_match("/prq.to/", $tracker)) {
                   $tracker = "http://tracker.openbittorrent.com/scrape";
               }

               $stats = torrent_scrape_url($tracker, $row["info_hash"]);
               if ($stats['seeds'] != -1) {
                   $seeders1 += $stats['seeds'];
                   $leechers1 += $stats['peers'];
                   $downloaded1 += $stats['downloaded'];
                   SQL_Query_exec("UPDATE `announce` SET `online` = 'yes', `seeders` = $stats[seeds], `leechers` = $stats[peers], `times_completed` = $stats[downloaded] WHERE `url` = ".sqlesc($ann)." AND `torrent` = $id");
               } else {
                   SQL_Query_exec("UPDATE `announce` SET `online` = 'no' WHERE `url` = ".sqlesc($ann)." AND `torrent` = $id");

               }
           }

           if ($seeders1 !== null){ //only update stats if data is received
               print ("<b>".T_("LIVE_STATS").": </b><br />");
               print ("Seeders: ".number_format($seeders1)."<br />");
               print ("Leechers: ".number_format($leechers1)."<br />");
               print (T_("COMPLETED").": ".number_format($downloaded1)."<br />");

               SQL_Query_exec("UPDATE torrents SET leechers='".$leechers1."', seeders='".$seeders1."', times_completed='".$downloaded1."',last_action= '".get_date_time()."',visible='yes' WHERE id='".$row['id']."'");
           }else{
               print ("<b>".T_("LIVE_STATS").": </b><br />");
               print ("<font color='#ff0000'>Tracker Timeout<br />Please retry later</font><br />");
           }

           print ("<form action='torrents-details.php?id=$id&amp;scrape=1' method='post'><input type=\"submit\" name=\"submit\" value=\"Update Stats\" /></form></td>");
       }else{
           print ("<td valign='top' align='right'><b>Tracked:</b> EXTERNAL<br /><br /><form action='torrents-details.php?id=$id&amp;scrape=1' method='post'><input type=\"submit\" name=\"submit\" value=\"Update Stats\" /></form></td>");
       }
   }

Replace with

/// Scrape code
//===| Scrape External Torrents
   if ($row["external"]=='yes')
   {
       print ("<td width='160' align='right' valign='top'><table><tr>");
       if ($scrape =='1')
       {
           print("<td class='table_col1' width='150' valign='middle'>
           <div style='margin-top:5px; margin-bottom:10px; font:bold 16px Times' align='center'><font color='#FF2000'>".T_("EXTERNAL_TORRENT")."</font></div>");

           //===| UDP Scraper
           $resu = SQL_Query_exec("SELECT id, info_hash FROM torrents WHERE external = 'yes' AND id = $id");
           while ($rowu = mysqli_fetch_array($resu))
           {
               $TorrentInfo = ParseTorrent("$site_config[torrent_dir]/$rowu[id].torrent");
               $ann = $TorrentInfo[0];
               $annlist = array();

               if ($TorrentInfo[6])
               {
                   foreach ($TorrentInfo[6] as $ann)
                   {
                       $annlist[] = $ann[0];
                   }
               }
               else
                   $annlist = array($ann);

               $seeders = $leechers = $downloaded = null;
               foreach ($annlist as $ann)
               {
                   $tracker = explode("/", $ann);
                   $path = array_pop($tracker);
                   $oldpath = $path;
                   $path = str_replace("announce", "scrape", $path);
                   $tracker = implode("/", $tracker)."/".$path;

                   if ($oldpath == $path)
                   {
                       continue;
                   }
                   if ($openbittorrent_done)
                       continue;

                   if (preg_match("/thepiratebay.org/i", $tracker) || preg_match("/prq.to/", $tracker))
                   {
                       $tracker = "http://tracker.openbittorrent.com/scrape";
                       $openbittorrent_done = 1;
                   }
                   if(preg_match('/udp:\/\//', $tracker))
                   {
                       $udp=true;
                       try
                       {
                           $timeout = 5;
                           $udp= new udptscraper($timeout);
                           $stats=$udp->scrape($tracker,$rowu["info_hash"]);
                           //print_r($stats); exit();
                           foreach ($stats as $idu=>$scrape)
                           {
                               $seeders += $scrape['seeders'];
                               $leechers += $scrape['leechers'];
                               $downloaded    += $scrape['completed'];
                           }
                       }
                       catch(ScraperException $e)
                       {
                           $e->isConnectionError();
                       }
                   }
                   else
                   {
                       $stats = torrent_scrape_url($tracker, $rowu["info_hash"]);
                   }

                   if ($stats['seeds'] != -1)
                   {
                       $seeders += $stats['seeds'];
                       $leechers += $stats['peers'];
                       $downloaded += $stats['downloaded'];

                       SQL_Query_exec("UPDATE `announce` SET `online` = 'yes', `seeders` = '".$stats['seeds']."', `leechers` = '".$stats['peers']."', `times_completed` = '".$stats['downloaded']."' WHERE `url` = ".sqlesc($ann)." AND `torrent` = $rowu[id]");
                   }
                   else
                   {
                       SQL_Query_exec("UPDATE `announce` SET `online` = 'no' WHERE `url` = ".sqlesc($ann)." AND `torrent` = $rowu[id]");
                   }
               }

               if ($seeders !== null)
               {
                   SQL_Query_exec("UPDATE torrents SET leechers = '".$leechers."', seeders = '".$seeders."', times_completed = '".$downloaded."', last_action = '".get_date_time()."', visible = 'yes' WHERE id = '".$rowu['id']."'");
               }
               else
               {
                   SQL_Query_exec("UPDATE torrents SET last_action = '".get_date_time()."' WHERE id='".$rowu['id']."'");
               }
           }
           //===| End UDP Scraper
               
           if ($seeders !== null)
           {
               print ("<div style='margin-bottom:5px; margin-left:20px'><b>".T_("LIVE_STATS")."</b>: </div>");
               print ("<div style='margin-left:20px'>".T_("SEEDERS").": <font color='limegreen'>".$seeders."</font></div>");
               print ("<div style='margin-left:20px'>".T_("LEECHERS").": <font color='#FF2000'>".$leechers."</font></div>");
               print ("<div style='margin-left:20px'>".T_("COMPLETED").": <font color='#0080FF'>".$downloaded."</font></div>");
               print ("</br>");
           }
           else
           {
               print ("<div style='margin-top:10px; margin-bottom:5px' align='center'><b>".T_("LIVE_STATS")."</b>: </div>");
               print ("<div style='font:italic 14px Times' align='center'><font color='#FF2000'>".T_("TRACKERS_OFFLINE")."!</font></div>");
           }
//           print ("<div style='margin-top:10px; margin-bottom:10px' align='center'>
 //              <a href='torrents-details.php?id=".$id."'><input type='submit' name='submit' value=".T_("SUBMIT")."></a>
 //          </div>");
           print ("</td>");
       }
       else
       {
           print ("<td class='table_col1' width='150' valign='middle' align='center'>
               <div style='margin-top:5px; margin-bottom:10px; font:bold 16px Times' align='center'><font color='#FF2000'>".T_("EXTERNAL_TORRENT")."</font></div>
               </div>
                   <form action='torrents-details.php?id=$id&amp;scrape=1' method='post'>
                       <div style='margin-top:5px; margin-bottom:10px' align='center'><input type='submit' name='submit' value=".T_("UPDATE_STATS")." /></div>
                   </form>
               </td>");
       }
       print ("</tr></table></td>");
   }
   //===| End Scrape External Torrents
///END SCRAPE

Add to english.php
$LANG["UPDATE_STATS"] = "Update Stats";
$LANG["EXTERNAL_TORRENT"] = "External Torrent";
$LANG["TRACKERS_OFFLINE"] = "All Trackers<br />are <b>Offline</b>";


If you want to run mega-scrape manually, add this code wherever you want to see it
echo "[<a href='mega_scrape.php'><b>Run Mega Scrape</b></a>]";

upload contents of attachment
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: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728