[ALPHA] phpBB Mercury Basic v1.1.0

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.
A.I. BOT
Registered User
Posts: 1848
Joined: Thu Apr 17, 2003 11:43 pm
Location: Newfoundland, Canada
Contact:

Post by A.I. BOT » Tue Aug 30, 2005 9:02 pm

What do you mean?

packfan82
Registered User
Posts: 24
Joined: Mon May 30, 2005 7:21 pm

Post by packfan82 » Tue Aug 30, 2005 11:55 pm

somethings dont function properly if the heirarchy mod is installed, im guessing this is independent of anything that it mods?

A.I. BOT
Registered User
Posts: 1848
Joined: Thu Apr 17, 2003 11:43 pm
Location: Newfoundland, Canada
Contact:

Post by A.I. BOT » Wed Aug 31, 2005 1:10 am

Mercury only modifies common.php

meradiann
Registered User
Posts: 39
Joined: Fri Feb 18, 2005 11:44 am

Post by meradiann » Fri Sep 02, 2005 1:36 pm

how is it coming along?

A.I. BOT
Registered User
Posts: 1848
Joined: Thu Apr 17, 2003 11:43 pm
Location: Newfoundland, Canada
Contact:

Post by A.I. BOT » Fri Sep 02, 2005 8:21 pm

Its goin good I had to halt for 2 days cuz my comp was screwed up on my TV

http://205.251.207.75/pic.jpg :/

Anyways i fixed it now so im back to work.

A.I. BOT
Registered User
Posts: 1848
Joined: Thu Apr 17, 2003 11:43 pm
Location: Newfoundland, Canada
Contact:

Post by A.I. BOT » Sat Sep 03, 2005 7:25 am

Updates: Well everything seems to be working. Thats why im gonna take an extra few more days and completly redesign rivals orginization and code.

Theres so much code in these files im getting lost at what its doing ^^ so im made a class file to handle tasks for me like $template

Code: Select all

	$template->set_filenames ( array (
		'body' => 'rivals/leave_body.tpl' )
	);

	$template->assign_vars ( array (
			'L_LEAVE'	=> $lang[ 'leave' ],
			'L_LEAVE_DESC'	=> $lang[ 'leave_desc' ] )
		);

	$template->pparse ( 'body' );
with rivals new class file it now becomes

Code: Select all

$rivals->t_setfile ( 'rivals/leave_body.tpl' );
$rivals->t_assign ( array ( 'L_LEAVE' => $lang[ 'leave' ], 'L_LEAVE_DESC' => $lang[ 'leave_desc' ] );
$rivals->t_parse ( 'body' );
it mighten seem much of a difference to you but a lot to me. And another example is queries they take up a ton of space.

Code: Select all

$sql	= "SELECT * FROM " . LCHALLENGES_TABLE . " WHERE (challenger = '$clan_id' OR challengee = '$clan_id') AND status = '4' ORDER BY challenge_id DESC LIMIT " . $start . ", " . $clan_config[ 'matches_per_page' ];
if ( ! ( $result = $db->sql_query ( $sql ) ) )
{
	message_die ( GENERAL_ERROR, 'Could not get archival information.', '', __LINE__, __FILE__, $sql );
}

for ( $i = 0; $i < $db->sql_numrows ( $result ); $i++ )
{
	$row	 = $db->sql_fetchrow ( $result );
......
would now become

Code: Select all

$sql = $rivals->g_query ( "SELECT * FROM " . LCHALLENGES_TABLE . " WHERE (challenger = '$clan_id' OR challengee = '$clan_id') AND status = '4' ORDER BY challenge_id DESC LIMIT " . $start . ", " . $clan_config[ 'matches_per_page' ], true:true, true:true );

for ( $i = 0; $i < $sql[ 'num_rows' ]; $i++ )
{
	$row	 = $rivals->fetchrow ( $sql );

.....
again not much difference but it helps me a ton. :)

Thanks.

Spinebuster
Registered User
Posts: 197
Joined: Sat Nov 27, 2004 6:48 am
Location: IN
Contact:

Post by Spinebuster » Mon Sep 05, 2005 8:56 pm

Is there anything I can help with A.I. Bot?

I know your really close to releasing it and I was wondering if there is something I can do to help. Im fairly good with php and I might be able to help you get things working. I wouldnt be able to do much with the core of the mod but if there is something I can help with I would be glad to help.

Im on vacation this week so I will have some time to do things I dont normally have time for. :P

A.I. BOT
Registered User
Posts: 1848
Joined: Thu Apr 17, 2003 11:43 pm
Location: Newfoundland, Canada
Contact:

Post by A.I. BOT » Mon Sep 05, 2005 10:40 pm

Yeah I could use your help with the query conversion from $db to $rivals. Theres alot of them to change so any help you can give me would speed it up :)

I coulent work on it today becuase my comp is on TV and its hard to see what im coding but tomoorw im getting it hooked up to S-Video so i can code :)

Spinebuster
Registered User
Posts: 197
Joined: Sat Nov 27, 2004 6:48 am
Location: IN
Contact:

Post by Spinebuster » Mon Sep 05, 2005 11:22 pm

Sorry I missed you on aim.

Sounds fairly easy on what your wanting to do. Not sure how you want to do this, I guess you could email me the files you are wanting the changes in.

knickers
Registered User
Posts: 38
Joined: Thu Jul 21, 2005 6:22 pm

Post by knickers » Mon Sep 12, 2005 6:07 pm

So, how goes it?

A.I. BOT
Registered User
Posts: 1848
Joined: Thu Apr 17, 2003 11:43 pm
Location: Newfoundland, Canada
Contact:

Post by A.I. BOT » Tue Sep 13, 2005 2:00 pm

Me and spine have been workin on it a lil bit. Not much though I just had my frist day of school today and it was hecktic for the past week so once things get clamed down a bit ill work hard at it again :)

knickers
Registered User
Posts: 38
Joined: Thu Jul 21, 2005 6:22 pm

Post by knickers » Tue Sep 13, 2005 5:31 pm

A.I. BOT wrote: Me and spine have been workin on it a lil bit. Not much though I just had my frist day of school today and it was hecktic for the past week so once things get clamed down a bit ill work hard at it again :)


Didn't school start the 6th?

A.I. BOT
Registered User
Posts: 1848
Joined: Thu Apr 17, 2003 11:43 pm
Location: Newfoundland, Canada
Contact:

Post by A.I. BOT » Tue Sep 13, 2005 8:06 pm

No where I live I start school the 14th of September and end 21st of June.

afterlife_69
I've Been Banned!
Posts: 630
Joined: Tue Nov 30, 2004 10:35 am

Post by afterlife_69 » Tue Sep 13, 2005 8:16 pm

ya, cuz he is an eskimo.

A.I. BOT
Registered User
Posts: 1848
Joined: Thu Apr 17, 2003 11:43 pm
Location: Newfoundland, Canada
Contact:

Post by A.I. BOT » Tue Sep 13, 2005 8:19 pm

Im not an eskimo stupid I live in canada.

Locked

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