[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.
Locked
Aaru Bui
Registered User
Posts: 43
Joined: Sat Apr 09, 2005 5:15 am

[DISC] TorrentPier BitTorrent Tracker MOD

Post by Aaru Bui » Sat Nov 12, 2005 3:52 am

MOD Title: TorrentPier
MOD Description: Most advanced phpBB interegrated BitTorrent Tracker. TorrentPier Tracker-Only MOD
MOD Version: 0.3.6.7
Tested For: phpBB 2.0.19, Attachment MOD 2.4.1, XS MOD 2.3.1

This is a MOD-fied version of TorrentPier 0.3.5. All extra MODs included in the original TorrentPier (The source code of one Forum-tracker) have been removed.

Version 0.3.6.7 - http://www.digimonhimitsu.com/Temp/Torr ... .3.6.7.zip

Features:
  • User Stats: Stats are recorded with the passkey feature and can be seen in the user profile.
    Download Topics: Special category for Torrent topics.
    Download Management: Users may change their download status to easily organise their downloads.
    Torrent Stats: Stats for torrents are shown on the Tracker page, Topic Index and View Topic.
    Peer Information: The IP and Port of peers may be set to only be visible to moderators and administrators.
    Guest Access: Guest access can be restricted.
    Publisher Information: The tracker can add publisher information to all torrents registered.
    Torrent Search: Allows searching of torrents on the Torrent Browser page.
Last edited by Aaru Bui on Fri Feb 17, 2006 9:40 am, edited 20 times in total.

newcster68
Registered User
Posts: 59
Joined: Mon Jan 31, 2005 5:48 am

Re: [DEV] TorrentPier Tracker-Only MOD.

Post by newcster68 » Sat Nov 12, 2005 6:22 pm

Aaru Bui wrote: MOD Title: TorrentPier
MOD Description: Most advanced phpBB interegrated BitTorrent Tracker. TorrentPier Tracker-Only MOD
MOD Version: 0.3.5
Tested For: phpBB 2.0.18

MOD Download: TorrentPier_MOD_0.3.5.zip
Live Demo: http://forum.digimonhimitsu.com

This is a MOD-fied version of TorrentPier 0.3.5. All extra MODs included in the original TorrentPier (The source code of one Forum-tracker) have been removed.



hmmmm

when in the administration panel > torrentpier > tracker config

I get an error..

Code: Select all

Could not query config information

DEBUG MODE

SQL Error : 1146 Table 'phpbb.bt_config_table' doesn't exist

SELECT * FROM BT_CONFIG_TABLE

Line : 14
File : functions_admin_torrent.php
Im guessing is because this line in your install says:

Code: Select all

CREATE TABLE phpbb_bt_config ( config_name VARCHAR(255) NOT NULL DEFAULT '', config_value VARCHAR(255) NOT NULL DEFAULT '', PRIMARY KEY (config_name) );
when in actuallity it should read:

Code: Select all

CREATE TABLE phpbb_bt_config_table ( config_name VARCHAR(255) NOT NULL DEFAULT '', config_value VARCHAR(255) NOT NULL DEFAULT '', PRIMARY KEY (config_name) );

newcster68
Registered User
Posts: 59
Joined: Mon Jan 31, 2005 5:48 am

Post by newcster68 » Sat Nov 12, 2005 6:52 pm

in the instructions it says:

Code: Select all

#-----[ OPEN ]--------------------------------------------- 
# 
includes/functions_post.php

# 
#-----[ FIND ]---------------------------------------------
# 
					message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
				}

# 
#-----[ AFTER, ADD ]--------------------------------------- 
# 
				//bt
				$sql = 'DELETE FROM '. BT_USR_DL_STAT_TABLE ."
					WHERE topic_id = $topic_id";

				if (!$db->sql_query($sql))
				{
					message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
				}
				//bt end
not a problem EXCEPT there are 7 instances in includes/functions_post.php that have that same identical line. Which line does it go under?

newcster68
Registered User
Posts: 59
Joined: Mon Jan 31, 2005 5:48 am

Post by newcster68 » Sat Nov 12, 2005 7:22 pm

here is another error in the install text

Code: Select all

#-----[ OPEN ]--------------------------------------------- 
# 
templates/subSilver/overall_header.tpl

# 
#-----[ FIND ]---------------------------------------------
# 
.helpline { 

# 
#-----[ AFTER, ADD ]---------------------------------------
# 
/* //bt */
.seed, .leech      { font-size : 12px; }
.seedmed, .leechmed  	{ font-size : 11px; }
.seedsmall, .leechsmall	{ font-size : 10px; }

.seed, .seedmed, .seedsmall  	{ color: {T_FONTCOLOR2}; }
.leech, .leechmed, .leechsmall	{ color: {T_FONTCOLOR3}; }

.dlWill  	{ color: #003366; }
.dlDown  	{ color: {T_FONTCOLOR3}; }
.dlComplete	{ color: #006600; }
.dlCancel  { color: #666666; }

.dlBgr1  { background-color: #ADBAC6; }
.dlBgr2  { background-color: #D6DBDE; }
.dlBgr3  { background-color: #D6DBDE; }

.tDL  { color: {T_BODY_TEXT}; font-weight: bold; }
.tDLDown	{ color: #800000; font-weight: bold; }
.tDLCmpl	{ color: {T_FONTCOLOR2}; font-weight: bold; }

.prow1	{ background-color: {T_TR_COLOR1}; }
.prow2	{ background-color: {T_TR_COLOR2}; }
.prow3	{ background-color: {T_TR_COLOR1}; }

a.seed:link, a.seed:visited, a.seed:hover, a.seed:active, a.seedmed:link, a.seedmed:visited, a.seedmed:hover, a.seedmed:active, a.seedsmall:link, a.seedsmall:visited, a.seedsmall:hover, a.seedsmall:active {
	color: {T_FONTCOLOR2}; text-decoration: none; }

a.leech:link, a.leech:visited, a.leech:hover, a.leech:active, a.leechmed:link, a.leechmed:visited, a.leechmed:hover, a.leechmed:active, a.leechsmall:link, a.leechsmall:visited, a.leechsmall:hover, a.leechsmall:active {
	color: {T_FONTCOLOR3}; text-decoration: none; }

a.dlWill:link, a.dlWill:visited, a.dlWill:hover, a.dlWill:active {
	color: #003366; text-decoration: none; }

a.dlDown:link, a.dlDown:visited, a.dlDown:hover, a.dlDown:active {
	color: {T_FONTCOLOR3}; text-decoration: none; }

a.dlComplete:link, a.dlComplete:visited, a.dlComplete:hover, a.dlComplete:active {
	color: {T_FONTCOLOR2}; text-decoration: none; }

a.dlCancel:link, a.dlCancel:visited, a.dlCancel:hover, a.dlCancel:active {
	color: #666666; text-decoration: none; }

a.seed:hover, a.seedmed:hover, a.seedsmall:hover, a.leech:hover, a.leechmed:hover, a.leechsmall:hover, a.dlWill:hover, a.dlDown:hover, a.dlComplete:hover, a.dlCancel:hover  {
	text-decoration: underline; }

input.pOrdSel {
	background-color: #EFEFEF;
	border: 0px solid #EFEFEF;
	color: #333333;
	font-size: 12px;
	cursor: pointer;
	font-family:Arial, Helvetica, sans-serif;
	overflow:hidden;
	width: 18px;
}

optgroup, option, fieldset, legend {
	font-size: 11px; font-family: Verdana,Arial,Helvetica,sans-serif; }

optgroup { font-style: normal; font-weight: bold; background-color: #ECECEC; }
option { background-color: #FFFFFF; font-size: 11px; }

legend { color: #000066; }

.bold  { font-weight: bold; }
.normal	{ font-weight: normal; }
.opened { color: #778899; }

.btTbl	{ background-color: #98AAB1; border: 0px #98AAB1 solid; }
.btHead { background-color: #D1D7DC; font-size: 11px; font-weight: bold; text-align: center; padding: 1px 0px 1px 0px; }
/* //bt end */
When it should say

Code: Select all

# 
#-----[ OPEN ]--------------------------------------------- 
# 
templates/subSilver/subSilver.css

newcster68
Registered User
Posts: 59
Joined: Mon Jan 31, 2005 5:48 am

Post by newcster68 » Sat Nov 12, 2005 8:18 pm

it says:

Code: Select all

#-----[ OPEN ]--------------------------------------------- 
# 
modcp.php

# 
#-----[ FIND ]---------------------------------------------
# 
$template->set_filenames(array(

# 
#-----[ BEFORE, ADD ]---------------------------------------
# 
  	//bt
  	if ($is_auth['auth_mod'])
  	{
    $template->assign_block_vars('switch_show_leaveshadow', array());
  	}
  	//bt end
there are 5 instances of $template->set_filenames(array( . Which ones does it go before?

newcster68
Registered User
Posts: 59
Joined: Mon Jan 31, 2005 5:48 am

Post by newcster68 » Sat Nov 12, 2005 8:50 pm

might want to add this into your sql install txt

Code: Select all

INSERT INTO phpbb_extension_groups VALUES (8, 'Torrent', 0, 1, 1, '', 122880, '');
INSERT INTO phpbb_extensions VALUES (29, 8, 'torrent', '');

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

Post by Aaru Bui » Sat Nov 12, 2005 11:53 pm

newcster68 wrote: ]I get an error..

Code: Select all

Could not query config information

DEBUG MODE

SQL Error : 1146 Table 'phpbb.bt_config_table' doesn't exist

SELECT * FROM BT_CONFIG_TABLE

Line : 14
File : functions_admin_torrent.php


No, BT_CONFIG_TABLE is a variable defined in constants_bt.php which should be identified if the change was made in constants.php. Was that change made?

Code: Select all

#
#-----[ FIND ]---------------------------------------------
# 
?>

# 
#-----[ BEFORE, ADD ]---------------------------------------
# 
//bt
require_once($phpbb_root_path .'includes/constants_bt.'. $phpEx);

...
functions_post.php fixed.

the subSilver.css was what the original TorrentPier changed... but I saw that phpBB now disabled the including of the stylesheet so I directly changed the overall_header.tpl

modcp.php fixed.

as for the extension control... I was trying to factor in the possibility of the Attachment MOD being already installed and had additional extensions added already. But it's already explained in the documentation in the docs directory.

The MOD has been re-uploaded...

newcster68
Registered User
Posts: 59
Joined: Mon Jan 31, 2005 5:48 am

Post by newcster68 » Sun Nov 13, 2005 2:44 am

in functions_torrent.php

look for:

Code: Select all

// Get tracker config
	$sql = 'SELECT *
		FROM '. BT_CONFIG ."
		WHERE config_name = 'auth_key_name'
			OR  config_name = 'allow_guest_dl'";
change to:

Code: Select all

// Get tracker config
	$sql = 'SELECT *
		FROM '. BT_CONFIG_TABLE ."
		WHERE config_name = 'auth_key_name'
			OR  config_name = 'allow_guest_dl'";

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

Post by Aaru Bui » Sun Nov 13, 2005 2:50 am

it was already "BT_CONFIG_TABLE"... it was that all along... think you changed that manually when you had trouble with the Admin configuration

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

Post by Aaru Bui » Sun Nov 13, 2005 3:18 am

But now, I've found a problem myself...

usercp_register... there was two $template->pparse('body');

This would make the passkey settings appear when you edit your profile.

nibraz
Registered User
Posts: 184
Joined: Tue Sep 14, 2004 9:56 pm

Post by nibraz » Sun Nov 13, 2005 9:15 pm

@Aaru Bui I would say next time, release a good one and check for mistakes. The one in here, are all the codes isn't in order all are in unorder format :?

nibraz
Registered User
Posts: 184
Joined: Tue Sep 14, 2004 9:56 pm

Post by nibraz » Sun Nov 13, 2005 11:12 pm

hehe i guess u fixed it :D

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

Post by DiSpy » Mon Nov 14, 2005 3:13 am

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

User avatar
MHobbit
Former Team Member
Posts: 4761
Joined: Thu Mar 18, 2004 5:32 pm
Location: There and Back Again

Post by MHobbit » Mon Nov 14, 2005 8:35 pm

Hello,

Could you please edit your topic title with a prefix as outlined in MOD Development forum rules section 3.a. This will allow people to see the development status of your MOD at a glance.

Thank you,
The phpBB MOD Team
Former phpBB MOD Team member
No private support is offered.
"There’s too many things to get done, and I’m running out of days..."

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

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

Hi I installed this Nice Mod toda but Im getting Errors in the 'Tracker Config' Page. It says:

Code: Select all

General Error 
Could not query config information

DEBUG MODE

SELECT * FROM phpbb_bt_config

Line : 14
File : functions_admin_torrent.php 
Please avice. Do I need this configuration at all?

Thanks.

Locked

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