[DISC] TorrentPier BitTorrent Tracker MOD

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Aaru Bui
Registered User
Posts: 43
Joined: Sat Apr 09, 2005 5:15 am

Post by Aaru Bui » Wed Nov 23, 2005 2:07 pm

It seems that you did not run the SQL part of the MOD.

ritun
Registered User
Posts: 15
Joined: Fri Jun 17, 2005 10:57 pm

Post by ritun » Wed Nov 23, 2005 2:43 pm

I've run the SQL Part:

Code: Select all

ALTER TABLE phpbb_forums ADD allow_reg_tracker TINYINT(1) NOT NULL DEFAULT '0';
ALTER TABLE phpbb_forums ADD allow_dl_topic TINYINT(1) NOT NULL DEFAULT '0';
ALTER TABLE phpbb_forums ADD dl_type_default TINYINT(1) NOT NULL DEFAULT '0';
ALTER TABLE phpbb_forums ADD self_moderated TINYINT(1) NOT NULL DEFAULT '0';
ALTER TABLE phpbb_forums ADD last_dl_topics_synch int(11) NOT NULL DEFAULT '0';
ALTER TABLE phpbb_forums ADD show_dl_buttons TINYINT(1) NOT NULL DEFAULT '0';
ALTER TABLE phpbb_topics ADD topic_dl_type TINYINT(1) NOT NULL DEFAULT '0';
ALTER TABLE phpbb_topics ADD topic_dl_status TINYINT(1) NOT NULL DEFAULT '0';
ALTER TABLE phpbb_users ADD user_allow_passkey TINYINT(1) NOT NULL DEFAULT '1';
ALTER TABLE phpbb_users ADD bt_tor_browse_set text NOT NULL;
ALTER TABLE phpbb_attachments_desc ADD tracker_status TINYINT(1) NOT NULL DEFAULT '0';
CREATE TABLE phpbb_bt_config ( config_name VARCHAR(255) NOT NULL DEFAULT '', config_value VARCHAR(255) NOT NULL DEFAULT '', PRIMARY KEY (config_name) );
CREATE TABLE phpbb_bt_search_results ( session_id VARCHAR(32) NOT NULL DEFAULT '', search_id INT(10) UNSIGNED NOT NULL DEFAULT '0', added INT(11) NOT NULL DEFAULT '0', search_array TEXT NOT NULL, search_settings TEXT NOT NULL, PRIMARY KEY  (session_id) );
CREATE TABLE phpbb_bt_tor_dl_stat ( torrent_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', user_id MEDIUMINT(9) NOT NULL DEFAULT '0', attach_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', t_up_total BIGINT(20) UNSIGNED NOT NULL DEFAULT '0', t_down_total BIGINT(20) UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY  (torrent_id,user_id) );
CREATE TABLE phpbb_bt_torrents ( torrent_id MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT, info_hash BINARY(20) NOT NULL DEFAULT '', post_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', poster_id MEDIUMINT(9) NOT NULL DEFAULT '0', topic_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', attach_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', size BIGINT(20) UNSIGNED NOT NULL DEFAULT '0', piece_length MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', reg_time INT(11) NOT NULL DEFAULT '0', complete_count MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', seeder_last_seen INT(11) NOT NULL DEFAULT '0', last_seeder_uid MEDIUMINT(9) NOT NULL DEFAULT '0', PRIMARY KEY  (torrent_id), UNIQUE info_hash (info_hash), UNIQUE post_id (post_id), UNIQUE topic_id (topic_id), UNIQUE attach_id (attach_id), KEY reg_time (reg_time) );
CREATE TABLE phpbb_bt_tracker ( torrent_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', peer_id char(20) binary NOT NULL DEFAULT '', user_id MEDIUMINT(9) NOT NULL DEFAULT '0', ip char(8) binary NOT NULL DEFAULT '0', port smallint(5) UNSIGNED NOT NULL DEFAULT '0', uploaded BIGINT(20) UNSIGNED NOT NULL DEFAULT '0', downloaded BIGINT(20) UNSIGNED NOT NULL DEFAULT '0', complete_percent BIGINT(20) UNSIGNED NOT NULL DEFAULT '0', seeder TINYINT(1) NOT NULL DEFAULT '0', last_stored_up BIGINT(20) UNSIGNED NOT NULL DEFAULT '0', last_stored_down BIGINT(20) UNSIGNED NOT NULL DEFAULT '0', stat_last_updated int(11) NOT NULL DEFAULT '0', speed_up MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', speed_down MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', update_time int(11) NOT NULL DEFAULT '0', expire_time int(11) NOT NULL DEFAULT '0', KEY torrent_id (torrent_id), KEY user_id (user_id) );
CREATE TABLE phpbb_bt_users ( user_id MEDIUMINT(9) NOT NULL DEFAULT '0', auth_key binary(10) NOT NULL DEFAULT '', u_up_total BIGINT(20) UNSIGNED NOT NULL DEFAULT '0', u_down_total BIGINT(20) UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY  (user_id), UNIQUE auth_key (auth_key) );
CREATE TABLE phpbb_bt_users_dl_status ( topic_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', user_id MEDIUMINT(9) NOT NULL DEFAULT '0', user_status TINYINT(1) NOT NULL DEFAULT '0', compl_count TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', update_time int(11) NOT NULL DEFAULT '0', PRIMARY KEY  (topic_id,user_id), KEY user_id (user_id) );
INSERT INTO phpbb_config VALUES ('bt_show_peers', '1');
INSERT INTO phpbb_config VALUES ('bt_show_peers_mode', '1');
INSERT INTO phpbb_config VALUES ('bt_allow_spmode_change', '1');
INSERT INTO phpbb_config VALUES ('bt_add_auth_key', '1');
INSERT INTO phpbb_config VALUES ('bt_show_dl_list', '1');
INSERT INTO phpbb_config VALUES ('bt_dl_list_only_1st_page', '1');
INSERT INTO phpbb_config VALUES ('bt_dl_list_only_count', '1');
INSERT INTO phpbb_config VALUES ('bt_dl_list_expire', '30');
INSERT INTO phpbb_config VALUES ('bt_announce_url', 'http://yourdomain.com/bt/announce.php');
INSERT INTO phpbb_config VALUES ('bt_gen_passkey_on_reg', '1');
INSERT INTO phpbb_config VALUES ('bt_replace_ann_url', '1');
INSERT INTO phpbb_config VALUES ('bt_show_ip_only_moder', '1');
INSERT INTO phpbb_config VALUES ('bt_show_port_only_moder', '1');
INSERT INTO phpbb_config VALUES ('bt_check_announce_url', '0');
INSERT INTO phpbb_config VALUES ('bt_show_dl_list_buttons', '1');
INSERT INTO phpbb_config VALUES ('bt_show_dl_but_will', '1');
INSERT INTO phpbb_config VALUES ('bt_show_dl_but_down', '0');
INSERT INTO phpbb_config VALUES ('bt_show_dl_but_compl', '0');
INSERT INTO phpbb_config VALUES ('bt_show_dl_but_cancel', '1');
INSERT INTO phpbb_config VALUES ('bt_show_dl_stat_on_index', '1');
INSERT INTO phpbb_config VALUES ('bt_newtopic_auto_reg', '1');
INSERT INTO phpbb_config VALUES ('bt_tor_browse_only_reg', '0');
INSERT INTO phpbb_config VALUES ('bt_search_tbl_last_clean', '0');
INSERT INTO phpbb_config VALUES ('bt_search_bool_mode', '0');
INSERT INTO phpbb_config VALUES ('bt_force_passkey', '1');
INSERT INTO phpbb_config VALUES ('bt_del_addit_ann_urls', '1');
INSERT INTO phpbb_config VALUES ('bt_set_dltype_on_tor_reg', '1');
INSERT INTO phpbb_config VALUES ('bt_unset_dltype_on_tor_unreg', '0');
INSERT INTO phpbb_config VALUES ('bt_add_comment', '');
INSERT INTO phpbb_config VALUES ('bt_add_publisher', 'YourSiteName');
INSERT INTO phpbb_bt_config VALUES ('last_clean_time', '0');
INSERT INTO phpbb_bt_config VALUES ('autoclean', '1');
INSERT INTO phpbb_bt_config VALUES ('off', '0');
INSERT INTO phpbb_bt_config VALUES ('off_show_reason', '1');
INSERT INTO phpbb_bt_config VALUES ('off_reason', 'Tracker is disabled');
INSERT INTO phpbb_bt_config VALUES ('bt_debug', '0');
INSERT INTO phpbb_bt_config VALUES ('silent_mode', '0');
INSERT INTO phpbb_bt_config VALUES ('do_gzip', '0');
INSERT INTO phpbb_bt_config VALUES ('force_gzip', '0');
INSERT INTO phpbb_bt_config VALUES ('client_compat_gzip', '1');
INSERT INTO phpbb_bt_config VALUES ('ignor_given_ip', '1');
INSERT INTO phpbb_bt_config VALUES ('allow_host_ip', '0');
INSERT INTO phpbb_bt_config VALUES ('ignor_numwant', '1');
INSERT INTO phpbb_bt_config VALUES ('numwant', '50');
INSERT INTO phpbb_bt_config VALUES ('numwant_max', '100');
INSERT INTO phpbb_bt_config VALUES ('autoclean_interval', '120');
INSERT INTO phpbb_bt_config VALUES ('min_ann_intv', '1200');
INSERT INTO phpbb_bt_config VALUES ('expire_factor', '3');
INSERT INTO phpbb_bt_config VALUES ('compact_mode', '0');
INSERT INTO phpbb_bt_config VALUES ('use_auth_key', '1');
INSERT INTO phpbb_bt_config VALUES ('auth_key_name', 'uk');
INSERT INTO phpbb_bt_config VALUES ('update_users_dl_status', '1');
INSERT INTO phpbb_bt_config VALUES ('update_users_compl_status', '1');
INSERT INTO phpbb_bt_config VALUES ('allow_guest_dl', '0');
INSERT INTO phpbb_bt_config VALUES ('upd_user_up_down_stat', '1');
INSERT INTO phpbb_bt_config VALUES ('seed_last_seen_upd_interval', '300');
INSERT INTO phpbb_bt_config VALUES ('user_statistic_upd_interval', '25');
INSERT INTO phpbb_bt_config VALUES ('browser_redirect_url', 'http://yourdomain.com/');
INSERT INTO phpbb_bt_config VALUES ('limit_active_tor', '0');
INSERT INTO phpbb_bt_config VALUES ('limit_seed_count', '20');
INSERT INTO phpbb_bt_config VALUES ('limit_leech_count', '4');
INSERT INTO phpbb_bt_config VALUES ('leech_expire_factor', '60');
INSERT INTO phpbb_bt_config VALUES ('limit_concurrent_ips', '0');
INSERT INTO phpbb_bt_config VALUES ('limit_seed_ips', '0');
INSERT INTO phpbb_bt_config VALUES ('limit_leech_ips', '2');
INSERT INTO phpbb_bt_torrents VALUES (1, 0xf51a6d93f8d475fd7f816f463f20c5734f15a87f, 4, 4, 3, 1, 16748964, 4194304, 1117378225, 0, 0, 0);
INSERT INTO phpbb_bt_users VALUES (-1, '', 0, 0);
INSERT INTO phpbb_bt_users_dl_status VALUES (3, 5, 1, 0, 1117378308);

ritun
Registered User
Posts: 15
Joined: Fri Jun 17, 2005 10:57 pm

Post by ritun » Wed Nov 23, 2005 2:51 pm

I was able to configure the Forum in my ACP but got this error when I went to configure the Traker.

Might be something to do with Table definition? Please advice.

ritun
Registered User
Posts: 15
Joined: Fri Jun 17, 2005 10:57 pm

Post by ritun » Wed Nov 23, 2005 2:58 pm

Okay Problem solved. I had made some mistakes while uploading the Tables. Sorry for the trouble. Thanks for the nice MOD.

MaddoxX
Registered User
Posts: 450
Joined: Sat May 15, 2004 4:43 pm
Location: Russia

Post by MaddoxX » Wed Nov 23, 2005 10:16 pm

Nice mod, is there currenlty a stable version of this one ? :D
:D

Aaru Bui
Registered User
Posts: 43
Joined: Sat Apr 09, 2005 5:15 am

Post by Aaru Bui » Wed Nov 23, 2005 11:05 pm

No... The MOD is still in development.

concretemonkey
Registered User
Posts: 49
Joined: Sat Oct 23, 2004 1:05 am

Post by concretemonkey » Thu Nov 24, 2005 8:21 am

I currently have the original installed on one of my servers and have heavily modified it with phpBB mods too. I am glad that someone has stripped this mod down (or at least attempted to) as it could pave the way for more add-ons, which will help the original author of TorrentPier.

Currently Scrape is not availible for the tracker which causes errors in some BitTorrent clients. It also means that the torrents used on the forum cannot be accepted by some external torrent sites that use Scrape to verify the torrents activity. The forum however can monitor the activity of it's own torrents superbly.

I also created a mod for the forum that lists the details of each individuals upload/download stats in the memberlist.php page, but this has some problems I am unable to get around.

Also, on the original forum, the sub categories modification doesn't show any new topics on the index page, if they are in the sub category of a particular category, which is unfortunate.

Other than that, this is a good modification.

mozes
Registered User
Posts: 19
Joined: Tue Jul 13, 2004 9:50 pm

Post by mozes » Thu Nov 24, 2005 8:39 pm

Cool concretemonkey.
I also created a mod for the forum that lists the details of each individuals upload/download stats in the memberlist.php page

members on my site did ask for it...

ritun
Registered User
Posts: 15
Joined: Fri Jun 17, 2005 10:57 pm

Post by ritun » Fri Nov 25, 2005 8:49 pm

Hi Arubai,
I was wondering if we can have another feature in this MOD which sort of disallows members having less (UL/DL) Ratio to further Leech or access the Torrent enabled Forum.

Thanks.

Aaru Bui
Registered User
Posts: 43
Joined: Sat Apr 09, 2005 5:15 am

Post by Aaru Bui » Sat Nov 26, 2005 2:31 am

Well, that would require another setting. Let every user download a certain amount before they are banned... Or else they won't have any data to upload. Then they'll just keep on making new accounts... Unless you have admin account activation enabled... How about adding a function to the member listing that would allow you to list them according to their ratio? then you can manually remove them.

DiSpy
Registered User
Posts: 68
Joined: Sun Jul 11, 2004 9:18 pm
Location: South Florida!
Contact:

Post by DiSpy » Sat Nov 26, 2005 3:10 pm

DiSpy wrote: A nice feature would be the option to support external .torrent files. In other words, where you can enter a URL of a .torrent file instead of browsing to your hard drive for one, and the tracker will still display the stats, but not change the .torrent at all.

Sorry if that's not too clear... basically I want to add tracking info for .torrents that are hosted on a seperate server.

Thanks!
-DiSpy


OK, let's try this another way... is there a way to set this up (maybey in the attachment mod settings if not in torrent pier) to use a seperate dedicated server, seperate than the server the forum is on, to upload the files to, and maybe run the tracker on as well. But still have it all integrated into the forum posts and the site.

Follow what i'm trying to say? Thanks!

-DiSpy

mozes
Registered User
Posts: 19
Joined: Tue Jul 13, 2004 9:50 pm

Post by mozes » Sun Dec 04, 2005 7:33 pm

ritun wrote: Hi Arubai,
I was wondering if we can have another feature in this MOD which sort of disallows members having less (UL/DL) Ratio to further Leech or access the Torrent enabled Forum.

Thanks.

Why?
if there ratio is to low.
they can dll the torrent, but dll wil not start if the ratio is to low.
dll wil start if there ratio reach the point of what you have chosen...

thats the way it works now.
And i must say, it realy works great, now users make sure there ratio is oké.

Sometimes its better to motivate in silence. :wink:

Aaru Bui
Registered User
Posts: 43
Joined: Sat Apr 09, 2005 5:15 am

Post by Aaru Bui » Sun Dec 04, 2005 10:52 pm

That's useless now. Now, you don't even need a tracker to start downloads.

Nazcar
Registered User
Posts: 10
Joined: Sat Oct 15, 2005 4:51 pm
Contact:

Post by Nazcar » Tue Dec 13, 2005 12:56 am

Great mod, Thanks

Ive problem with btt clients.
ABC say Can´t Get data from Tracker

But still connect in tracker and upload and donwload fine correctly

sakura-pop
Registered User
Posts: 8
Joined: Tue Aug 30, 2005 2:55 pm
Location: Thailand

Post by sakura-pop » Fri Dec 16, 2005 2:43 am

Hooooooo

Thank You, so Much.......... 8) :D

Locked

Return to “[2.0.x] MODs in Development”