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

Seed Bonus [TTv3] — 2021-05-14 17:18:11 in v3 Mods Completed
Lots of stuff you can do, in mine I iterated a list of users (avatar pictures) for each bonus item, as those who recently redeemed. Works good!

Also added “Currently Seeding” to the top of that page that queries the peer table with the current users Id and lists in detail.
The second star — 2021-04-30 01:12:14 in v3 Support
You have a few ways to go here, and you can make use of real pictures they upload during signup to populate avatars rather than plain coloured links. The sky is the limit here, I've stretched it pretty far, even back when still running TT v3.
Thats a hell of a ternary op string lol dump that into a parent var, and make user of printf() to wrap that much clearly. The var also allows you to control further what conditions or output you desire.
The second star — 2021-04-26 19:25:50 in v3 Support
Can you provide some code?
I am also going to create a “Compatibility Check” script alongside announce.php to ensure the necessary modules are installed on your hosting/dedicated server.

This will rule out any question in that regard (maybe someone does not have Filter module installed, so IP check fails).
I forgot to mention, be sure to replace all files with newest zip.

I see “interval server error”, so next I will add database exception logging to pinpoint where the fault is occurring.
Announce has been updated and working on a local pure unmodified V3 installation. Be sure you have the SQL queries executed (first post).

Report your results.
I’ll do XAMPP on a fresh V3 install and resolve this by Saturday
Seems the pass key is the failure here, which is rather silly. Can we get more testers with a basic or populated installation?
Issue is, I’m not working from real TT install. I’m a fork from TT back end the beginning so it takes some tuning, does anyone have a private FTP to test a torrent from? Or a subdirectories of a base install that I can access only those files - for testing easier?
Try this one
Thank you spiritblue, I will make a fix to the file tonight. This is passkey handling issue and will test on mine too.

The most up to date is code in first post, I’ll clear all that up in a new zip!

Keep on testing! We’re almost there
Ahh yes I saw that bug! Because it’s ignoring MEMBERSONLY and going right to fail.

Comment this line and save


fail('Passkey is invalid');


Tell me what happens after tracker update.
Lots of fixes. Be sure to run these first so you have the script working


CREATE TABLE happyhour (id int(10) NOT NULL AUTO_INCREMENT, userid int(10) NOT NULL DEFAULT 0, torrentid int(10) NOT NULL DEFAULT 0, multiplier float NOT NULL DEFAULT 0, PRIMARY KEY (id), KEY userid (userid, torrentid))
ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

ALTER TABLE peers ADD http_client TEXT;
ALTER TABLE peers ADD clientkey VARCHAR(10);
ALTER TABLE peers ADD completed TINYINT(1) NOT NULL DEFAULT 0;
ALTER TABLE peers ADD chosen_peer_id CHAR(40) DEFAULT '';
ALTER TABLE users ADD slots INT(10) DEFAULT 3;


Upload files and test. Passkey has changed in this version, and now checks like this:

MEMBERSONLY: true - (check passkey)
MEMBERSONLY - false - (only check peer IP)

Lot of clean up and finished some other areas, like happyhour and completion event.
Additionally, the script has a lot of room for optimization, like replacing array_key_exists with isset (faster), break down the function calls and add better reporting to announce_log table (optional).
No, I think your 100% correct, I was so tired when I finished this my eyes were burning lmao. I’ll push a update today.
Can anyone see failure message in the tracker message (utorrent tracker tab for example)?

it sends failure message out to client if something triggers fail()

Its possible a few functions I have in there are being called, that are not included in announce.php

I'll take a look over
Icon on file list — 2021-04-15 23:44:47 in Old v2 Tpoics
Looks good! More media-based approach and the safety of pathinfo(), good choice.

Just define a default or empty variable to satisfy fallback and/or page warnings.
Looks good! So missing keys is because the client is asking for those and not the browser.

Looks to be working. You should be good to go.
Icon on file list — 2021-04-14 01:34:31 in Old v2 Tpoics
Just attach your PHP code responsible for the filename / size etc. For example, this is mine (on my own code). Yours will be similar. No need for extra tables, we just check the string on the filename array key, and detect filetype with 1 of 3 ways (i prefer substr() method)

Are you using PHP 8? If you are, then we can use str_contains()


// Determine torrent icon by file extension - PHP 8
$filetype_icon = '';
if (str_contains($file['path'][0], 'mp3')) {
  $filetype_icon = 'somemusicicon.png';
} else if (str_contains($file['path'][0], 'mp4')) {
   $filetype_icon = 'somemovieicon.png';
} else if (str_contains($file['path'][0], 'avi')) {
   $filetype_icon = 'somemusicicon2.png';
}


and save a lot of time. Otherwise we need to use:

$filetypecheck = substr($fileinfo, 0, strpos($fileinfo, '.'))
if ($filetypecheck !== false && $filetypecheck == 'mp3') {
  $filetype_icon = 'somemusicicon.png';
}else if ($filetypecheck !== false && $filetypecheck == 'mp4') {
  $filetype_icon = 'somemovieicon.png';
}else if ($filetypecheck !== false && $filetypecheck == 'avi') {
  $filetype_icon = 'somemovieicon2.png';
}


The rundown

print("<table align='center' cellpadding='0' cellspacing='0' border='0' width='100%'><tr><th class='table_head' align='left'>File</th><th width='50' class='table_head'>Size</th></tr></table>");
if ($arr !== false && array_key_exists('info', $arr)) {
   if (array_key_exists('files', $arr['info'])) {
       foreach ($arr['info']['files'] as $file) {
           if (array_key_exists('path', $file)) {
               printf("<span class=\"material-icons\" style=\"color:%s;vertical-align:bottom\">description</span> <span>%s</span>", $color, html_escape(implode('/', $file['path'])));
               printf("<br/>");
           }
       }
   } else if (array_key_exists('name', $arr['info'])) {
       printf("<span class=\"material-icons\" style=\"color:%s;vertical-align:bottom\">description</span> <span>%s</span>", $color, html_escape($arr['info']['name']));
       printf("<br/>");
   }
}
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: 1
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728