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

Subtitles ? — 2021-12-04 16:18:45 in v3 Support
I was thinking same, you could have dropdown on upload like torrent lang option then in search/browse add search subtitle
Subtitles ? — 2021-12-04 09:10:58 in v3 Support
Just wondered if any one uses this or has any ideas

https://torrenttrader.uk/topic?topicid=4362

This mod is to manage/search subtitles it looks like you upload the subtitle file, if anyone uses this how does it operate you can also download the subtitle file

Just thought you could add to torrent-details and torrents-edit and add/edit like a nfo, or just have to say subtitle included in sql then you could search torrent table for subtitle WHERE 'english'

Most subtitles are uploaded inside torrent so why upload file taking space -

Not sure which way to go so asking for ideas
mega_scrape error — 2021-12-03 21:09:40 in v2.08 Support
I don't use torrent_scrape_url function to test properly I just try to read code, but it looks like that returns negative number

if ($ret['seeds'] === null) {
$ret['seeds'] = -1;
$ret['peers'] = -1;
$ret['downloaded'] = -1;
}


Try old code with them -1 changed for 0 in the torrent_scrape_url function
mega_scrape error — 2021-12-03 15:44:36 in v2.08 Support
:unsure  because `times_completed`=WHERE  is the error i can only assume $stats[downloaded] is NULL.
that would be the array from the function torrent_scrape_url - also it is https

so adding default to 0's should change error to `times_completed`=0WHERE or remove error. if error please post new error there might be small change that is hard to see

i add // edit  so you can search file to see

<?php
#============================#
#  TorrentTrader v2.08       #
#  http://torrenttrader.org  #
#----------------------------#
#  Modified by NordicWolf        #
#============================#

require_once("backend/functions.php");
require_once("backend/BDecode.php");
require_once("backend/parse.php");
require_once("backend/udptscraper.php");

dbconn(false);
loggedinonly();
set_time_limit(0);
$interval = 1200; // Rescrape torrents every 2 hours
$ts = gmtime() - $interval;
$res = SQL_Query_exec("SELECT id, name, info_hash FROM torrents WHERE external = 'yes' ORDER BY last_action ASC LIMIT 1");
$count = get_row_count("torrents", "WHERE external = 'yes' ");

while ($row = mysql_fetch_array($res))
{
$TorrentInfo = ParseTorrent("$site_config[torrent_dir]/$row[id].torrent");
$ann = $TorrentInfo[0];
$annlist = array();

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

// edit
$seeders = $leechers = $downloaded = 0;
// $seeders = $leechers = $downloaded = null;


echo "<link href='themes/ExYu-Subs/css/ttce.css' rel='stylesheet'> ";
  //stdhead();
//begin_frame("Mega Scrape");
echo "<div class='torrent-category-detail clearfix'>
<table width='90%' align='center' border='0' class='account'><td class='css'>Torrent ID:</td><td class='css'  colspan='4' align='center'><font color='#00ff00'> $row[id] </font></td> <td class='css-right'><font color=#708090> $row[name]</font></td></tr>
<tr><td class='css' colspan='3'>Info Hash:</td> <td class='css-right' colspan='3'><font color=#00ff00> $row[info_hash]</font></td></tr>";
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)
{
//echo "<tr><td class='css' colspan='3'>$ann :</td><td class='css-right' colspan='3'><font color=#00fff0> Scrape not supported.</font></td></tr>";
continue;
}

// TPB's tracker is dead. Use openbittorrent instead
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://([^:/]*)(?::([0-9]*))?(?:/)?%si', $tracker))
{
$udp=true;
try
{
$timeout = 3;
$udp= new udptscraper($timeout);
$stats=$udp->scrape($tracker,$row["info_hash"]);
foreach ($stats as $id=>$scrape)
{
$seeders += $scrape['seeders'];
$leechers += $scrape['leechers'];
$downloaded += $scrape['completed'];
}
}
catch(ScraperException $e)
{
//echo('<tr><td class=css colspan=3>Error:</td><td class=css-right colspan=3><font color=#0000ff> ' . $e->getMessage() . "</font></td></tr>\n");
//echo('<tr><td class=css colspan=3>Connection error:</td><td class=css-right colspan=3><font color=#0000ff> ' . ($e->isConnectionError() ? 'yes' : 'no') . "</font></td></tr>\n");
}
}
else
{
$stats = torrent_scrape_url($tracker, $row["info_hash"]);
}

// edit
if ($stats['seeds'] !== 0)
//if ($stats['seeds'] !== null)

{
$seeders += $stats['seeds'];
$leechers += $stats['peers'];
$downloaded += $stats['downloaded'];
echo "<br><b>$ann</b><br>";
echo "<tr><td class='css' colspan='3'>Seeders:</td> <td class='css-right' colspan='3'> ".($udp?$scrape['seeders']:$stats["seeds"])."</td></tr>";
echo "<tr><td class='css' colspan='3'>Leechers:</td> <td class='css-right' colspan='3'> ".($udp?$scrape['leechers']:$stats["peers"])."</td></tr>";
echo "<tr><td class='css' colspan='3'>Downloaded:</td> <td class='css-right' colspan='3'> ".($udp?$scrape['completed']:$stats["downloaded"])."</td></tr></table>";

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


}
else
{
//echo "<tr><td class='css' colspan='3'> $ann :</td> <td class='css-right' colspan='3'><font color=#ff0000>Tracker timed out.</font></td></tr>";
SQL_Query_exec("UPDATE `announce` SET `online` = 'no' WHERE `url` = ".sqlesc($ann)." AND `torrent` = $row[id]");
}
}

// edit
if ($seeders !== 0)
//if ($seeders !== null)


{
echo "<tr><td class='css-right' colspan='6'>Totals:</td></tr>";
echo "<tr><td class='css' colspan='3'>Seeders:</td> <td class='css-right' colspan='3'><font color='#006699'> $seeders </font></td></tr>";
echo"<tr><td class='css' colspan='3'>Leechers:</td> <td class='css-right' colspan='3'><font color='#00ff00'>  $leechers </font></td></tr>";
echo "<tr><td class='css' colspan='3'>Completed:</td> <td class='css-right' colspan='3'><font color='#FF9900'>  $downloaded </font></td></tr>";
SQL_Query_exec("UPDATE torrents SET leechers = '".$leechers."', seeders = '".$seeders."', times_completed = '".$downloaded."', last_action = '".get_date_time()."', visible = 'yes' WHERE id = '".$row['id']."'");
}
else
{
echo "<br><b><font color=red>All trackers are timed out.</font></b><br>";
echo "</div>";
//end_frame();
//stdfoot();
SQL_Query_exec("UPDATE torrents SET last_action = '".get_date_time()."' WHERE id = '".$row['id']."'");
}
}
?>

<script language="JavaScript">
//configure refresh interval (in seconds)
<?php if ($count)
echo "var countDownInterval = 1;";
else
echo "var countDownInterval = 1800;"; // No torrents to scrape, refresh in 30 minutes
?>
//configure width of displayed text, in px (applicable only in NS4)
var c_reloadwidth=500
</script>

<!-- <ilayer id="c_reload" width=&{c_reloadwidth}; ><layer id="c_reload2" width=&{c_reloadwidth}; left=0 top=0></layer></ilayer> -->

<script>
var countDownTime=countDownInterval+1;
function countDown(){
countDownTime--;
if (countDownTime <=0){
countDownTime=countDownInterval;
clearTimeout(counter)
window.location.reload()
return
}
if (document.all) //if IE 4+
document.all.countDownText.innerText = countDownTime+" ";
else if (document.getElementById) //else if NS6+
document.getElementById("countDownText").innerHTML=countDownTime+" "
else if (document.layers){ //CHANGE TEXT BELOW TO YOUR OWN
document.c_reload.document.c_reload2.document.write('<tr><td class="css" colspan="3">Next <a href="java script:window.location.reload()">refresh</a> in</td><td class="css-right" colspan="3"> <b id="countDownText">'+countDownTime+' </b> seconds </td></tr>')
document.c_reload.document.c_reload2.document.close()
}
counter=setTimeout("countDown()", 1000);
}

function startit(){
if (document.all||document.getElementById) //CHANGE TEXT BELOW TO YOUR OWN
document.write('<tr><td class="css" colspan="3">Next <a href="java script:window.location.reload()">   refresh   </a> in</td><td class="css-right" colspan="3"> <b id="countDownText">'+countDownTime+' </b>   seconds </td></tr>')
countDown()
}

if (document.all||document.getElementById)
startit()
else
window.onload=startit
</script>


if error please try on edited file
replace
$seeders = $leechers = $downloaded = 0;


for - sometimes we return -1 we just want to see number this will just add 2 to each figure
$seeders = $leechers = $downloaded = 2;
mega_scrape error — 2021-12-02 19:37:19 in v2.08 Support
Here is error

Query was: UPDATE `announce` SET `online` = 'yes', `seeders` = 0, `leechers` = 0, `times_completed` =  WHERE `url`
mega_scrape error — 2021-12-02 18:58:12 in v2.08 Support
what is the times_completed, there is no number
`times_completed` =  WHERE 


maybe try set time completed to zero before this code -
$stats[downloaded]


something like
$stats[downloaded] = 0;


it must be before so it does not reset others to 0
Icon on file list — 2021-11-28 14:33:21 in Old v2 Tpoics
icons are not available in standard TT but this what i used mate - i put in function using in_array to slim code down

can be used for v3 just use image instead of icon - still need to add more extensions to the arrays
for v3 replace <i class='???'> for <img sr > see micromonkeys code

function getexttype($ext = '')
{
   $ext = strtolower($ext);
   $music = array('mp3', 'wav', 'flac', 'm3u');
   $video = array('mp4', 'avi', 'mkv', 'flv', 'wmv');
   $file = array('txt', 'pdf', 'doc', 'zip', 'nfo', 'srt', 'exe');
   $image = array('jpeg', 'gif', 'png');
   if ($ext == false || $ext == '') {
       $filetype_icon = "&nbsp;<i class='fa fa-question'></i>";
   } else if (in_array($ext, $music)) {
       $filetype_icon = "&nbsp;<i class='fa fa-music'></i>";
   } else if (in_array($ext, $video)) {
       $filetype_icon = "&nbsp;<i class='fa fa-film'></i>";
   } else if (in_array($ext, $file)) {
       $filetype_icon = "&nbsp;<i class='fa fa-file'></i>";
   } else if (in_array($ext, $image)) {
       $filetype_icon = "&nbsp;<i class='fa fa-picture-o'></i>";
   }
   return $filetype_icon;
}


then in torrents-details find
while ($frow = mysqli_fetch_assoc($fres)) {
       echo "<tr><td class='table_col1'>


replace for
while ($frow = mysqli_fetch_assoc($fres)) {
       $ext = pathinfo($frow['path'], PATHINFO_EXTENSION);
       $filetype_icon = getexttype($ext);
   echo "<tr><td class='table_col1'>" . $filetype_icon . "</td>



Icon on file list — 2021-11-27 19:09:28 in Old v2 Tpoics
can you share images spirtblue  :thumb
:unsure  if there is no errors it should work, we use LIMIT 10 on select so it would return the same 10 if name or genre match - this may include date in name ?

lets strip down another level lol
$query1 = str_replace(" ", ".", sqlesc("%" . $searchname . "%"));
$genre = str_replace(".", " ", sqlesc("%" . $row['genre'] . "%"));
$r = SQL_Query_exec("SELECT torrents.genre, torrents.id,  torrents.name,  torrents.genre,  torrents.size,  torrents.added,  torrents.seeders,  torrents.leechers,  torrents.category, categories.image
FROM torrents
LEFT JOIN categories ON torrents.category = categories.id
WHERE (torrents.genre LIKE {$genre})
LIMIT 10");
try replace
// /////ADD genre pulled from the IMDB and put it in the stupid database as genre
if ($row["genre"]='NULL'){

SQL_Query_exec("UPDATE `torrents` SET `genre` = '".mysqli_real_escape_string ($GLOBALS["DBconnector"],$_data->Genre). "' WHERE `id` = $id");
}
/////END genre


with - we take just the first before ( , )    playing with this myself trying to add posters instead of using torrents.image1
// /////ADD genre pulled from the IMDB and put it in the stupid database as genre
if ($row["genre"]='NULL'){
$str = strstr($_data->Genre, ',', true);
SQL_Query_exec("UPDATE `torrents` SET `genre` = '".mysqli_real_escape_string ($GLOBALS["DBconnector"],$str). "' WHERE `id` = $id");
}
/////END genre
https://torrenttrader.uk/topic?topicid=9909&page=p#post67615

match and replace the query with this - you might need to manually insert a genre into some torrents imdb should be cached so wont insert any new ones straight away slimmed it down just for testing but should work

$query1 = str_replace(" ", ".", sqlesc("%" . $searchname . "%"));
$genre = str_replace(".", " ", sqlesc("%" . $row['genre'] . "%"));
$r = SQL_Query_exec("SELECT torrents.genre, torrents.id,  torrents.name,  torrents.genre,  torrents.size,  torrents.added,  torrents.seeders,  torrents.leechers,  torrents.category, categories.image
FROM torrents
LEFT JOIN categories ON torrents.category = categories.id
WHERE (torrents.name
LIKE {$query1})
OR (torrents.genre LIKE {$genre})
LIMIT 10");
another quick option would be to add genre to torrents table
then insert just the $_data->Genre to the torrents table we can then search like torrents.genre
 $query1 = str_replace(" ", ".", sqlesc("%" . $searchname . "%"));
$query2 = str_replace(".", " ", sqlesc("%" . $searchname . "%"));
$catid = str_replace(".", " ", sqlesc("%" . $row['category'] . "%"));
$genre = str_replace(".", " ", sqlesc("%" . $row['genre'] . "%"));
$r = SQL_Query_exec("SELECT torrents.id,  torrents.name,  torrents.genre,  torrents.size,  torrents.added,  torrents.seeders,  torrents.leechers,  torrents.category, categories.image
FROM torrents
LEFT JOIN categories ON torrents.category = categories.id
WHERE (torrents.name
LIKE {$query1})
OR (torrents.category LIKE {$catid})
OR (torrents.name LIKE {$query2})
OR (torrents.gener LIKE {$genre})
LIMIT 10");


more work in first way but worth it, i did it with tmdb mod so in future from a table full of tmdb/imdb data i can search actor, genre, director

here is my tmdb table just needs renaming to match imdb data dont forget url should be included
CREATE TABLE `tmdbfilm` (
 `id` int(10) NOT NULL AUTO_INCREMENT,
 `id_tmdb` int(10) NOT NULL DEFAULT 0,
 `title` varchar(255) DEFAULT NULL,
 `duration` varchar(100) DEFAULT NULL,
 `producer` varchar(255) DEFAULT NULL,
 `genre` varchar(255) DEFAULT NULL,
 `plot` text DEFAULT NULL,
 `actor` longtext DEFAULT NULL,
 `trailer` varchar(100) DEFAULT NULL,
 `date` datetime DEFAULT NULL,
 `image` varchar(50) DEFAULT NULL,
 UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM;

played with that you can try - using your code i linked

just noticed imdb doesnt have a table with data, ideally you would add a sql table and insert all data from here in torrent-details.php

        <b><?php echo T_("IMDB_LINK"); ?></b><br /> <a href="<?php echo $row['imdb']; ?>" target="_blank"><?php echo htmlspecialchars($row['imdb']); ?></a><br /><br />
       <b><?php echo T_("IMDB_RATED"); ?></b><br /> <?php echo $TTIMDB->getRated( $_data->Rated ); ?><br /><br />
       <b><?php echo T_("IMDB_ALIAS"); ?></b><br /> <?php echo $_data->Alias; ?><br /><br />
       <b><?php echo T_("IMDB_RELEASED"); ?></b><br /> <?php echo $TTIMDB->getReleased($_data->Released); ?><br /><br />
       <b><?php echo T_("IMDB_YEAR"); ?></b><br /> <?php echo $_data->Year; ?><br /><br />
       <b><?php echo T_("IMDB_RUNTIME"); ?></b><br /> <?php echo $_data->Runtime; ?><br /><br />
       <b><?php echo T_("IMDB_GENRE"); ?></b><br /> <?php echo $_data->Genre; ?><br /><br />
       <b><?php echo T_("IMDB_DIRECTOR"); ?></b><br /> <?php echo $_data->Director; ?><br /><br />
       <b><?php echo T_("IMDB_WRITER"); ?></b><br /> <?php echo $_data->Writer; ?><br /><br />
       <b><?php echo T_("IMDB_ACTORS"); ?></b><br /> <?php echo $_data->Actors; ?><br /><br />
       <b><?php echo T_("IMDB_PLOT"); ?></b><br /> <?php echo $_data->Plot; ?>


eg
SQL_Query_exec("INSERT INTO `imdb` (`genre`, `plot`,  `url`) VALUES ('$_data->Genre', '$_data->Plot', $row[imdb])");


because the torrent imdb table uses a url you need to pass $row[imdb] to insert into imdb table so we join by torrents/imdb & imdb/url

then the query would be pretty simple - var_dump() the fetch_assoc $var imdb sould show in results then we can fine tune
"SELECT torrents.id,  torrents.name,  torrents.size,  torrents.added,  torrents.seeders,  torrents.leechers,  torrents.category, categories.image, torrents.imdb 
          FROM torrents
        LEFT JOIN categories ON torrents.category = categories.id
        LEFT JOIN imdb ON torrents.imdb = imdb.url
 WHERE (torrents.name
 LIKE {$query1})
 OR (torrents.category LIKE {$catid})
 OR (torrents.name LIKE {$query2})
 LIMIT 10"
making my way through all the mods  :grin  used this code from micromonkey :thumb https://torrenttrader.uk/topic?topicid=9909&page=p#post67615

small improvement - noticed you get results with similar torrent  names so if no match no result
changed to also search same category id

find
           $query1 = str_replace(" ", ".", sqlesc("%" . $searchname . "%"));
          $query2 = str_replace(".", " ", sqlesc("%" . $searchname . "%"));
$r = SQL_Query_exec("SELECT torrents.id,  torrents.name,  torrents.size,  torrents.added,  torrents.seeders,  torrents.leechers,  torrents.category, categories.image FROM torrents LEFT JOIN categories ON (categories.id = torrents.category) WHERE (torrents.name LIKE {$query1} AND seeders > '0' AND torrents.id <> '$id') OR (torrents.name LIKE {$query2} AND seeders > '0' AND torrents.id <> '$id') ORDER BY seeders DESC LIMIT 10");


replace with
  $query1 = str_replace(" ", ".", sqlesc("%" . $searchname . "%"));
 $query2 = str_replace(".", " ", sqlesc("%" . $searchname . "%"));
 $catid = str_replace(".", " ", sqlesc("%" . $row['category'] . "%"));
 $r = SQL_Query_exec("SELECT torrents.id,  torrents.name,  torrents.size,  torrents.added,  torrents.seeders,  torrents.leechers,  torrents.category, categories.image
FROM torrents
LEFT JOIN categories ON torrents.category = categories.id
 WHERE (torrents.name
 LIKE {$query1})
 OR (torrents.category LIKE {$catid})
 OR (torrents.name LIKE {$query2})
 LIMIT 10");
i ended up scraping most of code, using snatched to show top sharers instead of peers not fully sure what to do there yet  :unsure peers get deleted so wasnt sure if snatched would be a better option,  but you can see everything been joined in one query, i added multi word search as well, i have my html separate but here is the php code to show the query results

in the file you can search  // haha letter t  the page expects you to have a torrent beginning with t but you can change this - its just to show results, easy to test

for v3 then it would be a case of using $i++ to count through the foreach loop - if it works ill play around with the loop mines bootstrap but should be possible in html

create catalog.php then visit SITEURL/catalog.php or SITEURL/catalog.php?letter=x or SITEURL/catalog.php?search=x
<?php
require_once "backend/functions.php";
dbconn();
loggedinonly();

$search = $_GET['search'] ?? '';
$url = "?";
if ($search != '') {
   $keys = explode(" ", $search);
   foreach ($keys as $k) {
       $ssa[] = " torrents.name LIKE '%$k%' ";
   }
   $query = '(' . implode(' OR ', $ssa) . ')';
   $url .= "search=" . urlencode($search);
} else {
   // haha letter t
$letter = $_GET["letter"] ?? 't';
   if (strlen($letter) > 1) {
       die;
   }
   if ($letter == "" || strpos("abcdefghijklmnopqrstuvwxyz", $letter) === false) {
       // haha letter t
$letter = "t";
   }
   $query = "torrents.name LIKE '$letter%'";
   $url = "?letter=$letter";
}
$result = SQL_Query_exec("SELECT count(id) FROM torrents WHERE $query AND visible != 'no'");
$count = mysqli_num_rows($result);
list($pagertop, $pagerbottom, $limit) = pager(28, $count, $site_config["SITEURL"] . "/catalog$url&");
$stmt = SQL_Query_exec("SELECT torrents.anon, torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, torrents.last_action, torrents.numratings, torrents.name, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.external, torrents.image1, torrents.image2, torrents.announce, torrents.numfiles, torrents.freeleech,
       IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.numratings,
        categories.name AS cat_name,
        torrentlang.name AS lang_name,
        torrentlang.image AS lang_image,
        categories.parent_cat as cat_parent,
        users.username, users.donated, users.warned, users.privacy, snatched.tid, snatched.uid, snatched.uload, snatched.dload, snatched.stime, snatched.utime, snatched.ltime
        FROM torrents
        LEFT JOIN categories ON torrents.category = categories.id
        LEFT JOIN torrentlang ON torrents.torrentlang = torrentlang.id
        LEFT JOIN users ON torrents.owner = users.id
        LEFT JOIN snatched ON users.id = snatched.uid
        WHERE $query AND visible != 'no'
        ORDER BY name ASC $limit");
$res = mysqli_fetch_all($stmt);

stdhead(T_("test"));
begin_frame(T_("test"));
foreach ($res as $arr) {
   var_dump($arr);
   echo "<br>################<br>";
}
end_frame();
stdfoot();
thanks for sharing mod, good mod this  :thumb

you dont need all the query's through i did it with one and then looped through the array, converting took some time just need to do top seeders part  - https://imgur.com/rGXolvP
Happy to help I put mine on edit torrent, if on details you may want to wrap html so only mods can see

If ($CURUSER > 5) {
 // form
}
torrent name — 2021-11-23 14:52:15 in v3 Support
Have you added description  on table head if not you don't have enough columns

Post the description code you have added
i used php ternary when adding this, exactly the same but a good example of not using IF

one line = if class > $vip return 0 or return max() this is also good with stuff like $_POST eg empty($_POST) ? 'default_option' : 'post_not_empty';
$vip = 4;
$user['class'] > $VIP ? 0 : max(0, $downloaded - $self["downloaded"]);
yes i like this idea so i pieced one together

i have this in torrent-details above if ($_GET["hit"]) {
        if ($_GET["bump"]) {
           SQL_Query_exec("UPDATE torrents SET added = '".get_date_time()."' WHERE id='".$id."' ");
           autolink(torrents-details.php?id=$id", T_("Bumped Torrent"));
       }


then somewhere in the html place the form
    <form action='torrents-details.php?id=$id&bump=1' method='post'>
           <button type='submit'  value=''>Bump Torrent</button>
   </form><br>


if you get errors please check urls my version is different but the code is fine  :thumb

then in querys eg index, todays, you might need to edit order to see bump
ORDER BY torrents.added DESC


i did this today so any ideas are welcome
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