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

CSS — 2021-12-16 15:43:11 in General Chat
Hi guys,
would like to share with you a simple thing with redesigning of buttons we had a long time ago and buttons that do not contain images or icons that unnecessarily take up space when we want to "look good" our trackers






Attaching examples for all our friends.

PS
Regards to Coco, hope he is on good health after heart surgery  


CSS — 2021-12-16 15:42:26 in General Chat
Hi guys,
would like to share with you a simple thing with redesigning of buttons we had a long time ago and buttons that do not contain images or icons that unnecessarily take up space when we want to "look good" our trackers






Attaching examples for all our friends.

PS
Regards to Coco, hope he is on good health after heart surgery  


CSS — 2021-12-16 15:42:09 in General Chat
Hi guys,
would like to share with you a simple thing with redesigning of buttons we had a long time ago and buttons that do not contain images or icons that unnecessarily take up space when we want to "look good" our trackers






Attaching examples for all our friends.

PS
Regards to Coco, hope he is on good health after heart surgery  


theme blocks display odd — 2021-12-11 12:21:03 in v3 Support
if it works with other parts of the theme (index.php, torrent-upload.php forums.php .... ect) I suspect there may be someone missing </div> or </td> or </table> in the torrent-details.php OR in footer.php on the regular theme
mega_scrape error — 2021-12-03 20:46:16 in v2.08 Support
Yes mate, thanks it works if I sett $seeders = $leechers = $downloaded = 1;
but honestly, it's cheating in a way
we are pumping up torrents that are dead but there is a solution to the problem and that was the goal in the post

thanks mate   :giggle
Icon on file list — 2021-12-03 11:53:30 in Old v2 Tpoics
Hi @spiritblue
yes, I agree with you that you have to inform friends that they have to take into account that both font awesome and flat icons are an "add-on" for this script.

Font awesom is available in two variants (free and pro)
You can "pick" flat icons yourself from their website

#font awesome: https://fontawesome.com/start  
#font awesome: https://fontawesome.com/v5.15/icons?d=gallery&p=2&m=free

#flat icons:  https://www.freepik.com/flaticon
#flat icons:  https://www.flaticon.com/authors/freepik

after you pick up your icons then you make a special css file for just them

PS
when it comes to the actual size of font awesome then this css rules you have written in your post apply, but when it comes to flat icons then the style you have to fix yourself is what you want.

It's pure play with everything that exists and can be implemented when it comes to design, but it's always up to the designer how this person wants their website look to have

Wish you a pleasant weekend to all of you my friends


mega_scrape error — 2021-12-02 20:02:53 in v2.08 Support
whole code is that:



<?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);

$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"]);
}

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>";
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]");
}
}

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> &nbsp; seconds </td></tr>')
countDown()
}

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

mega_scrape error — 2021-12-02 19:33:17 in v2.08 Support
Hi mate, times_completed = number of all downloads
mega_scrape error — 2021-12-02 16:00:18 in v2.08 Support
Hi guys,
I get this error after mega_scrape.php running:


Database Error in mega_scrape.php on line 104: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE `url` = 'https://tracker.tamersunion.org:443/announce' AND `torrent` = 953' at line 1. Query was: UPDATE `announce` SET `online` = 'yes', `seeders` = 0, `leechers` = 0, `times_completed` =  WHERE `url` = 'https://tracker.tamersunion.org:443/announce' AND `torrent` = 953.


Line 104 is
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]");


Tracker: https://tracker.tamersunion.org is gone and many of my torrents have that in torrent creation so how to exclude that tracker or how to fix error?
In SQL table  under torrents==>announce==> I have just that tracker: udp://tracker.opentrackr.org:1337/announce  

:unsure  :unsure  :unsure  :unsure
Icon on file list — 2021-11-28 18:09:56 in Old v2 Tpoics
Good one M-jay    :thumb

my part of torrent-datails.php



$ext = pathinfo($frow['path'], PATHINFO_EXTENSION);
if ($ext !== false && $ext == 'mp3') {
$filetype_icon = "&nbsp;<i class='flaticon-mp3' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'flac') {
$filetype_icon = "&nbsp;<i class='flaticon-sound' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'aac') {
$filetype_icon = "&nbsp;<i class='flaticon-aac' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'cue') {
$filetype_icon = "&nbsp;<i class='flaticon-audiobook' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'm3u') {
$filetype_icon = "&nbsp;<i class='flaticon-boxset' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'ape') {
$filetype_icon = "&nbsp;<i class='flaticon-music-other' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'iso') {
$filetype_icon = "&nbsp;<i class='flaticon-emulation' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'jpg') {
$filetype_icon = "&nbsp;<i class='flaticon-images' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'png') {
$filetype_icon = "&nbsp;<i class='flaticon-images' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'bmp') {
$filetype_icon = "&nbsp;<i class='flaticon-images' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'mp4') {
$filetype_icon = "&nbsp;<i class='flaticon-mp4' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'mkv') {
$filetype_icon = "&nbsp;<i class='flaticon-hd' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'divx') {
$filetype_icon = "&nbsp;<i class='flaticon-divx' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'vob') {
$filetype_icon = "&nbsp;<i class='flaticon-dvd' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'avi') {
$filetype_icon = "&nbsp;<i class='flaticon-movies' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'txt') {
$filetype_icon = "&nbsp;<i class='flaticon-book' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'srt') {
$filetype_icon = "&nbsp;<i class='flaticon-list' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'ass') {
$filetype_icon = "&nbsp;<i class='flaticon-message' style='color:gold;font-size:24px;'></i>&nbsp;";
}
else if ($ext !== false && $ext == 'NFO' || 'nfo') {
$filetype_icon = "&nbsp;<i class='flaticon-info' style='color:gold;font-size:24px;'></i>&nbsp;";
}

Icon on file list — 2021-11-28 12:10:18 in Old v2 Tpoics
M-jay:
can you share images spirtblue  :thumb  


You can use fontawesome or flaticons instead mate,
why should everything be with images or icons, it just takes unnecessary space and time to produce on the page.

Maybe I'm wrong, but I fully respect the needs of others
M-jay:
Happy to help I put mine on edit torrent, if on details you may want to wrap html so only mods can seeIf ($CURUSER > 5) {  // form}


I fix that with:

if ($owned)


your is also good too as always

Regards
Thanks buddy, thanks to your source I managed to adapt the code to my type and version (not the same TT version as yours)

Thank you very much, the idea was inspired by TBDEV MOD




bookmarks — 2021-11-25 18:08:06 in v3 Support
MicroMonkey:
I think the file is called bookmark, NOT bookmarks


I also suspected this in the beginning but want to test first if he has other names on this file
bookmarks — 2021-11-24 22:24:45 in v3 Support
This is my part of that code, test it if you need whole files I can send you, NP


$page = (int) $_GET['page'];
$perpage = 25;
$res = SQL_Query_exec("SELECT COUNT(*) FROM bookmarks WHERE userid = " . $CURUSER["id"] ."");
$row = mysqli_fetch_array($res);
$count = $row[0];
list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, "bookmark.php?");

$where = "WHERE bookmarks.userid = " . $CURUSER["id"] ."";
$orderby = "ORDER BY added DESC";

$query = SQL_Query_exec("SELECT bookmarks.id as bookmarkid,
torrents.size,
torrents.freeleech,
torrents.external,
torrents.id,
torrents.category,
torrents.name,
torrents.filename,
torrents.added,
torrents.banned,
torrents.comments,
torrents.seeders,
torrents.leechers,
torrents.times_completed,
categories.name AS cat_name,
categories.parent_cat AS cat_parent,
categories.image AS cat_pic
FROM bookmarks
LEFT JOIN torrents ON bookmarks.torrentid = torrents.id
LEFT JOIN categories ON category = categories.id
$where $orderby $limit");
You have misunderstood me mate,
I'm looking for a button that sets an older torrent to today's date in torrent-details.php and updates the sql column for the upload date
invite — 2021-11-08 11:37:42 in v3 Support
Sorry this part is from my 2.08

I coming to install stable V3 on my test-page and test this mode,
if it be OK I leave code here of course

Just need some stable V3 it is many versions of that   :love

PS
Thanks for oportunity to be part of this comunity mate
invite — 2021-11-07 17:36:18 in v3 Support
 $site_config['INVITE_TIMEOUT'] = '302400';  //Max (3 Days...) 


so 30 days is 3024000

good luck
Strange torrents problem — 2021-11-02 17:06:32 in v3 Support
@coco in functions.php you have "balloon_tooltip MODE" and this line:

 torrents-details.php?id=$id&hit=1 


just remove "&hit=1" and problem is gone

PS
In my case is so, can't tell for another cases
From some reason I have that error when my invited users try to registry new account!

Solved    
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