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

Blocked port 25 — 2021-03-15 17:51:52 in General Chat
// Mail settings
// php to use PHP's built-in mail function. or pear to use http://pear.php.net/Mail
// MUST use pear for SMTP
$site_config["mail_type"] = "pear"; //Use PEAR for Gmail, otherwise, use PHP
$site_config["mail_smtp_host"] = "smtp.gmail.com"; // SMTP server hostname. Google Gmail is smtp.gmail.com
$site_config["mail_smtp_port"] = "465"; // SMTP server port. Google Gmail uses 465
$site_config["mail_smtp_ssl"] = true; // true to use SSL. True for Google Gmail
$site_config["mail_smtp_auth"] = true; // true to use auth for SMTP. True for Google Gmail
$site_config["mail_smtp_user"] = "user"; // SMTP username
$site_config["mail_smtp_pass"] = "password"; // SMTP password
Blocked port 25 — 2021-03-13 17:33:49 in General Chat
cant you just use port 587? most have port 25 blocked for some time now
USE AT YOUR OWN RISK. Backup everything first
Run in phpmyadmin or similar tool. This will populate the next screen with all the tables to be changed. In this example, all tables would be changed to utf8mb4_unicode_ci.
SELECT CONCAT("ALTER TABLE `", TABLE_NAME,"` convert to character set utf8mb4 collate utf8mb4_unicode_ci;") AS    mySQL
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA="database_name_here"
AND TABLE_TYPE="BASE TABLE"

Above sql command will generate alter query for all tables in database. You can copy those all and execute at once. Only change "database_name_here" part to match your database name. if using phpmyadmin, make sure to tick the option to "output full text" on the query returned data, then copy and run that
I got it fixed now. I was missing this in my header.php. I deleted it by accident and didnt realize it
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Using the NB black theme and when I click a video, the lightbox pops up off screen and Im not sure where to look for this issue. I know its theme related because other themes will pop the the video to center screen. You can see what I mean in this very short video. Im just not sure what to look for....scratching my damn head https://drive.google.com/file/d/1cKEfn_7zzVaBJz3Elj7rWPGRSEw2jR8e/view?usp=sharing
are they clickable links or just an image? If its clickable (not sure why that would be the case but....) you can add things to show up after the torrent name by adding things in backend/functions.php in the dispname. In this example, I added an edit button after the torrent name. example below
				if ($CURUSER['edit_torrents'] == 'yes' || $row['owner'] == $CURUSER['id']) {
$edit = '<a href="torrents-edit.php?id=' . $row['id'] . '"><img src="images/editTORRENT.png" border="0" alt="edit torrent" /></a>';
$del = '<a href="torrents-edit.php?action=deleteit&id=' . $row['id'] . '"></a>';
} else {
$edit = '';
}
$dispname = "<b>".$smallname."</b>&nbsp;$edit";
Remove strict mode permanently using mariaDB. Probably works the same for mysql, edit for ubuntu in putty
sudo nano /etc/mysql/my.cnf

add to the bottom
[mysqld]
sql_mode=NO_ENGINE_SUBSTITUTION
TTv3 Micro Edition — 2021-03-11 06:32:32 in v3 Download
If you want to swap out the tablet for the imdb videos, here is a TV image and here is the styling that goes with it. This replaces the styling in torrents-details.php. I didnt change the style name because I already named it tablet and its in the code, and why over complicate an easy thing lol
<style>
.tablet {
   width:488px;
   height: 326px;
   background-size: 100% 100%;
   background-repeat: no-repeat;
   background-image: url(images/imdb/tv.png)  
}

.tablet iframe {
 position: relative;
 top: 34px;
 left: 0px;
 width: 442px;
 height: 235px;
 border: 0 none;
 }
</style>

here is the tv image that goes in images/imdb/
it looks like this https://ibb.co/g6Z2Njr
referer mod — 2021-03-06 20:50:55 in v3 Support
just a thought, but replace your line with this one exactly. just copy and paste it. I think you are using an apostrophy rather than back quotes. Just a thought
SQL_Query_exec("INSERT INTO `referer` (`referer`, `added`, `count`) VALUES ('".$parse['scheme'] . '://' . $parse['host']."', '".gmtime()."', '1') ON DUPLICATE KEY UPDATE `count` = `count` + 1");
referer mod — 2021-03-04 23:37:03 in v3 Support
It should get the info from $_SERVER['HTTP_REFERER'] . If people are using the front door to your page and not linking from elsewhere, it can be blank. this is in index.php. if you dont have this, place near the top outside of any other functions
if (isset($_SERVER['HTTP_REFERER']))
{
  $parse = parse_url($_SERVER['HTTP_REFERER']);
               
  if ($parse['host'] != $_SERVER['HTTP_HOST'])
          SQL_Query_exec("INSERT INTO `referer` (`referer`, `added`, `count`) VALUES ('".$parse['scheme'] . '://' . $parse['host']."', '".gmtime()."', '1') ON DUPLICATE KEY UPDATE `count` = `count` + 1");
}
referer mod — 2021-03-04 16:56:15 in v3 Support
hmm, I never paid any attention to it. Do you have the sql for it also?
CREATE TABLE `referer` (
 `referer` varchar(255) NOT NULL DEFAULT '',
 `added` int(11) NOT NULL DEFAULT 10,
 `count` int(10) unsigned NOT NULL DEFAULT 0,
 UNIQUE KEY `referer` (`referer`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
referer mod — 2021-03-03 16:53:58 in v3 Support
Is this what you are looking for? botanicar
if ($action == "referer")
{
         $count = get_row_count("referer");
       
         list ($pagertop, $pagerbottom, $limit) = pager(20, $count, 'admincp.php?action=referer&amp;');
       
         $res = SQL_Query_exec("SELECT * FROM `referer` ORDER BY `added` DESC $limit");
       
         stdhead("Site Referer");
         
       
         begin_frame("Site Referer");
       
         if ( mysqli_num_rows($res) > 0 )
         {
                  ?>
                  <table class="table_table" cellpadding="3" cellspacing="3" width="75%" align="center">
                  <tr>
                          <th class="table_head">Referer</th>
                          <th class="table_head">Added</th>
                          <th class="table_head">Count</th>
                  </tr>
                  <?php while ($row = mysqli_fetch_assoc($res)): ?>
                  <tr>
                          <td class="table_col1"><a href="<?php echo $row['referer']; ?>"><?php echo $row['referer']; ?></a></td>
                          <td class="table_col2"><?php echo date('F d, Y g:i a',$row['added']); ?></td>
                          <td class="table_col1"><?php echo number_format($row['count']); ?></td>
                  </tr>
                  <?php endwhile; ?>
                  </table>
                  <?php
                 
                  if ( $count > 20 ) echo $pagerbottom;
         }
         else
         {
                  echo('<center><b>No Referrals Found...</b></center>');
         }
       
         end_frame();
 navmenu();
         stdfoot();
}
NB-Black — 2021-03-03 02:45:05 in v3 Themes
Heres this.
NB-TT-3C — 2021-03-03 00:44:25 in v3 Themes
I have this one also. You will need a logo.png placed in the images folder
NB-H2O-2C — 2021-03-03 00:39:14 in v3 Themes
I have this also
NB-H2O-3C — 2021-03-03 00:34:31 in v3 Themes
I had this theme
Cool. I will try it. Is that all the code for it? I never really played with the scraper. Also, oops, remove the <?php tags I put in that code. I did that so my editor wouldnt have an error
try this. I cant test cuz I dont use this code
//===| Scrape External Torrents
<?php
 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'>". max( 0, number_format($seeders )) ."</font></div>");
             print ("<div style='margin-left:20px'>".T_("LEECHERS").": <font color='#FF2000'>". max( 0, number_format($leechers )) ."</font></div>");
             print ("<div style='margin-left:20px'>".T_("COMPLETED").": <font color='#0080FF'>". max( 0, number_format($downloaded )) ."</font></div>");
          }
          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>");
         }
         elseif ($CURUSER["class"] > 4) {
         {
             print ("<td class='table_col1' width='150' border='0' 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>
                  <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")." /></div>
                  </form>
              </td>");
         }
      }
            print ("</tr></table></td>");
  }
//===| End Scrape External Torrents
?>
This seems to make sense to me also since using the code I posted will not show that a torrent is external to anyone who cant update the stats. Im just fiddling around cuz of bored lol
find
echo "<center><h1>" . $shortname . "</h1></center>";

add below
if ($row["external"] =='yes') {
print ("<table border='0' cellpadding='0' width='100%'><tr><td align='center' valign='middle' width='54'><b><font color='red' size='4'>EXTERNAL TORRENT</font></b></td>");
}
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: 10

  • Online

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