KevinJDurant / OpenTorrentSite

A modern torrent site template that is easy to setup with an intuitive GUI. Currently in development.
MIT License
59 stars 24 forks source link

Voting System + Torrent Announce #20

Closed AzukaChan closed 4 years ago

AzukaChan commented 4 years ago

Reworked my last PR and came back with this;

Basic Voting System

Users are now able to "vote" on a torrent to display a positive or negative rating. As you might remember I plan on doubling this as a "report" feature where torrents with X amount of negative votes would appear on the Admin Control Panel (ACP). Users must be logged in to vote; this is in the hopes of avoiding unregistered users from spamming random votes.

*Having trouble getting votes to display 0 after using SQL to SUM the votes.

Torrent Announce

A lot of the time someone pulls this project they complain about the "0 peers/seeds" issue, well hopefully not anymore if they are making their own torrents. With the added announce.php and peers.txt users can now have their own tracker when making torrents. No need to edit the database as peers.txt acts as the database storing peer connection data. Absolute no torrent information is stored, only information to connect peers to eachother. This tracker uses HTTPS requests instead of UDP which is most likely to be blocked by most hosting service providers.

Simply add: https://YourDomain.com/announce.php to the tracker list when making a torrent. With the help of a subdomain you could have an address like: https://tracker.YourDomain.com/

Notes

Be sure to edit __REDIR_BROWSER in announce.php to whatever your domain is to make sure people cant directly access the announce page. This tracker uses HTTPS requests (as UDP is likely blocked by your service provider) to handle peer information so it should work on any hosting provider.

Google Analytics has been completely removed; users can do that on their own.

AzukaChan commented 4 years ago

VotingSystem tracker