[BETA] Clan War/Match Results 0.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.
Post Reply
g3ckoman
Registered User
Posts: 47
Joined: Mon Jun 04, 2007 5:46 am

[BETA] Clan War/Match Results 0.1.0

Post by g3ckoman » Mon Jun 04, 2007 6:05 pm

What is it?
Clan War/Match Results MOD is a simple system really. It allows game/match/team forums to keep track of fixtures they have played.

Managing and Configuring
Admins post via the results page, and not via the admin control panel,for ease and speed of management. (Granted, will probably update to post from Admin CP in next release). Currently there is no way to delete or edit matches, but that will be added before public release.

Installation

Code: Select all

############################################################## 
## MOD Title: Clan War/Match Results
## MOD Author: g3ckoman < luke dot oliff at gmail dot com > (Luke 'g3ckoman' Oliff) http://g3ckoman.deviantart.com 
## MOD Description: Match results page. 
## MOD Version: 0.1.0
## 
## Installation Level: Easy
## Installation Time: ~5 Minutes 
## Files To Edit: 9
##               admin/admin_board.php
##		 includes/constants.php
##               language/lang_english/lang_admin.php
##               language/lang_english/lang_main.php
##               templates/subSilver/admin/board_config_body.tpl
## Included Files: 1
##		 matches.php 
##               templates/subSilver/match_body.tpl
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
##  Once installed, you can add matches to the list via the matches page.
##  Admins can edit the Home teams name and abbreviation in the clan config page.
##
##  Future release will allow users to delete matches.
##
##  This MOD will install using EasyMOD!
############################################################## 
## MOD History: 
## 
##  2007-05-06 - version 0.1.0
##  - Public release - config tables added, language tables added.
##  
##  2007-05-06 - Version 0.0.3b
##  - Auto-dating of matches. (Holds date in same 'time' format as posts, display showns using "custom" time layout). Downside being, matches must be posted as soon as they are over.
##  
##  2007-04-06 - Version 0.0.2b 
##  - Admins can now post direct from matches list.
##  
##  2005-25-05 - Version 0.0.1b
##  - Initial developmental release. Datebase and functions sorted.
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################

# 
#-----[ SQL ]------------------------------------------ 
# 

CREATE TABLE `phpbb_matches` (
  `match_id` smallint(5) unsigned NOT NULL auto_increment,
  `match_clan` varchar(100) NOT NULL default 'Leave Nothing Alive',
  `match_clanabbr` varchar(50) NOT NULL default 'LNA',
  `match_vs` varchar(100) NOT NULL default '',
  `match_vsabbr` varchar(50) NOT NULL default '',
  `match_vswww` varchar(50) NOT NULL default '',
  `match_date` varchar(255) NOT NULL default 'unconfirmed',
  `match_rules` varchar(255) NOT NULL default 'unconfirmed',
  `match_result` varchar(50) NOT NULL default 'draw',
  `match_scores` varchar(50) NOT NULL default '0-0',
  `match_rundown` text NOT NULL,
  PRIMARY KEY  (`match_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

# 
#-----[ SQL ]------------------------------------------ 
# 

INSERT INTO `phpbb_matches` VALUES (1, 'phpBB Clan', 'phpBBC', 'Leave Nothing Alive', '¦LNA¦', 'http://www.lnaclan.com/', '1173038507', 'Sunday Cup', 'loss', '0-3', '');

INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ('home_name', 'Home Clan');
INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ('home_abbr', '-HC-');

#
#-----[ COPY ]------------------------------------------
#
COPY root/*.* TO *.*

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php

#
#-----[ FIND ]------------------------------------------
#
	"SAVEBOX_PRIVMSGS" => $new['max_savebox_privmsgs'], 

#
#-----[ AFTER, ADD ]------------------------------------------
#
	
// BEGIN Clan Matches MOD
	"HOME_NAME" => $new['home_name'], 
	"HOME_ABBR" => $new['home_abbr'], 
// END Clan Matches MOD

#
#-----[ FIND ]------------------------------------------
#
	"L_RESET" => $lang['Reset'], 

#
#-----[ AFTER, ADD ]------------------------------------------
#

// BEGIN Clan Matches MOD
	"L_HOME_NAME" => $lang['home_name'], 
	"L_HOME_ABBR" => $lang['home_abbr'], 
// END Clan Matches MOD

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

#
#-----[ FIND ]------------------------------------------
#
define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');


#
#-----[ AFTER, ADD ]------------------------------------------
#

// BEGIN Clan Matches MOD
define('MATCH_TABLE', $table_prefix.'matches');
// END Clan Matches MOD

#
#-----[ FIND ]------------------------------------------
#
define('PAGE_GROUPCP', -11);

#
#-----[ AFTER, ADD ]------------------------------------------
#

// BEGIN Clan Matches MOD
define('PAGE_MATCHES', -637);
// END Clan Matches MOD

#
#-----[ OPEN ]------------------------------------------
#
languages/lang_english/lang_main.php

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

#
#-----[ BEFORE, ADD ]------------------------------------------
#

// BEGIN Clan Matches MOD
$lang['Matches'] = 'Match Results';
$lang['Match_against'] = '<b>Against?</b><br />e.g. Deadly Armed Fighter';
$lang['Match_abbr'] = '<b>Their Abbr</b><br />e.g. [DAF]';
$lang['Match_www'] = '<b>Website</b><br />e.g. http://www.freeforum101.com/dafclan/';
$lang['Match_type'] = '<b>Match Type</b><br />e.g. Sunday Cup/Sudden Death/3 Rounds/6 Rounds';
$lang['Match_rundown'] = '<b>What happened?</b><br />e.g. Long description of what happened for each round of the match.';
$lang['Match_score'] = '<b>Final Score</b><br />e.g. 1-0 (LNA 1 - DAF 0) 0-3 (LNA 0 - DAF 3)';
$lang['Match_result'] = '<b>Final Result</b><br />e.g. Win, Lose or Draw';
$lang['Versus'] = 'Versus';
// END Clan Matches MOD


#
#-----[ OPEN ]------------------------------------------
#
languages/lang_english/lang_admin.php

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

#
#-----[ BEFORE, ADD ]------------------------------------------
#

// BEGIN Clan Matches MOD
$lang['matches_settings'] = 'Clan name displayed on match results page.';
$lang['home_name'] = 'Clan name displayed on match results page.';
$lang['home_abbr'] = 'Abbreviation for Clan as above';
// END Clan Matches MOD


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

#
#-----[ FIND ]------------------------------------------
#
	<tr>
		<th class="thHead" colspan="2">{L_COOKIE_SETTINGS}</th>
	</tr>

#
#-----[ BEFORE, ADD ]------------------------------------------
#

	<tr>
	  <th class="thHead" colspan="2">{L_MATCHES_SETTINGS}</th>
	</tr>
	<tr>
		<td class="row1">{L_HOME_NAME}<br /></td>
		<td class="row2"><input class="post" type="text" maxlength="255" name="home_name" value="{HOME_NAME}" /></td>
	</tr>
	<tr>
		<td class="row1">{L_HOME_ABBR}<br /></td>
		<td class="row2"><input class="post" type="text" maxlength="255" name="home_abbr" value="{HOME_ABBR}" /></td>
	</tr>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Download it!
http://www.gamerforums.org/leavenothing ... es_mod.zip

Change Log
2007-05-06 - Version 0.0.3b
- Auto-dating of matches. (Holds date in same 'time' format as posts, display showns using "custom" time layout). Downside being, matches must be posted as soon as they are over.
2007-04-06 - Version 0.0.2b
- Admins can now post direct from matches list.
2005-25-05 - Version 0.0.1b
- Initial developmental release. Datebase and functions sorted.

Up and coming changes
- Select date and time, works out how to store in same format as default 'time' layout.
- Home clan and abbreviation will be set in forum config, or even seperate match page config. (Not decided).
- Rival List - Rival clans will be submitted to a Rivals list, so when submitting a match you can just pick from the list, who it was against. This will be available in the match config section.

Preview Page
I currently havn't installed this mod on my public site, so this test site is where I am developing this mod along with a few others including a administered news page system, an integrated and administered portal and some phpBB Fetch All addons.

http://www.gamerforums.org/leavenothing ... atches.php

In addition to this mod is the mini-mod for it, which will add a quick match list to my Portal.
muddling through 3.x after years of modding 2.x!
requests for support welcome on forums or through private message.

GBH-Clan | MOD Dev Site

g3ckoman
Registered User
Posts: 47
Joined: Mon Jun 04, 2007 5:46 am

Re: [BETA] Clan War/Match Results 0.1.0

Post by g3ckoman » Tue Jun 05, 2007 8:25 pm

Updated for public release. Please let me know if you have any errors or questions.
muddling through 3.x after years of modding 2.x!
requests for support welcome on forums or through private message.

GBH-Clan | MOD Dev Site

Mr.AmiT
Registered User
Posts: 83
Joined: Wed Apr 09, 2008 7:01 pm

Re: [BETA] Clan War/Match Results 0.1.0

Post by Mr.AmiT » Sun Jun 29, 2008 11:53 am

בס"ד

The Link break..
phpBB.co.il
phpBB Israel.

Thanks.
Amit.

Post Reply

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