############################################################## 
## MOD Title: Teampage
## MOD Author: Leuchte < mail@leuchte.net > http://www.leuchte.net 
## MOD Description: This Mod add a seperate Page to your Forum. Your Moderators and Administrarors can easy add personal Infos in there profile.
##
## MOD Version: 2.0.0
## 
## Installation Level: Normal
## Installation Time: 10 Minutes 
## Files To Edit: 10
##
##			language/lang_english/lang_main.php
##			viewonline.php
##			admin/admin_users.php
##			admin/index.php
##			includes/constants.php
##			includes/page_header.php
##			includes/usercp_register.php
##			templates/subSilver/admin/user_edit_body.tpl
##			templates/subSilver/overall_header.tpl
##			templates/subSilver/profile_add_body.tpl
##
## Included Files: 2
############################################################## 
## For Security Purposes, Please Check: http://www.leuchte.net/mods/ for the 
## latest version of this MOD.
## 
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
## MOD History:
##
##   2004-11-24 - Show moderated Forums and Groups with membership. Some optional settings in team.php
##   2004-11-20 - Sort-Option "User-Rank" added
##   2004-11-19 - "About-Us" Description were deleted if user are update there profile
##   2004-11-18 - HTML is now really enabled in "About-Us" Field
##   2004-11-15 - Add "About-Us" Field
##   2004-11-14 - Sort-Options added
##   2004-11-10 - Initial Release
##   2004-11-08 - Pre-Release (Thanks to Markus67 for team_body.tpl and Mini-Icon)
##
############################################################## 
# 
#-----[ SQL ]------------------------------------------ 
#Run the following command on your sql database (replace phpbb_ with your db prefix)
ALTER TABLE phpbb_users ADD user_teamtitle VARCHAR (100);
ALTER TABLE phpbb_users ADD user_realname VARCHAR (100);
ALTER TABLE phpbb_users ADD user_adress VARCHAR (255);
ALTER TABLE phpbb_users ADD user_birth TINYINT (2);
ALTER TABLE phpbb_users ADD user_photo VARCHAR (255);
ALTER TABLE phpbb_users ADD user_slogan VARCHAR (255);
ALTER TABLE phpbb_users ADD user_topt_title VARCHAR (100);
ALTER TABLE phpbb_users ADD user_topt_text VARCHAR (255);
ALTER TABLE phpbb_users ADD user_teamdesc_title VARCHAR (100);
ALTER TABLE phpbb_users ADD user_teamtext TEXT;
ALTER TABLE phpbb_users ADD team_website TINYINT (1);
ALTER TABLE phpbb_users ADD team_email TINYINT (1);
ALTER TABLE phpbb_users ADD team_pm TINYINT (1);

# 
#-----[ COPY ]------------------------------------------ 
#
COPY root/team.php to team.php
COPY root/templates/subSilver/images/icon_mini_team.gif to templates/subSilver/images/icon_mini_team.gif
COPY root/templates/subSilver/team_body.tpl to templates/subSilver/team_body.tpl

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

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

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
$lang['Team_page'] = 'Teampage';
$lang['Team_photo_page'] = 'Photo';
$lang['Team_personal_page'] = 'Personal';
$lang['Team_avarank_page'] = 'Avatar/Rank';
$lang['Team_page_info'] = 'Here you can enter some information for the <a href="./team.php">Teampage</a>. Empty fields will not be show.';
$lang['Team_page_info_admin'] = 'Here you can enter some information for the <a href="./../team.php">Teampage</a>. Empty fields will not be show.';
$lang['Team_title'] = 'Title for this user';
$lang['Team_realname'] = 'Your real name';
$lang['Team_name_page'] = 'Name';
$lang['Team_adress'] = 'Your adress';
$lang['Team_adress_page'] = 'Adress';
$lang['Team_adress_explain'] = 'Cut several parts with |. e.g. Street|Location|ZIP Code. Pipe ( | ) will replace with an break.';
$lang['Team_birth'] = 'Your age';
$lang['Team_birth_page'] = 'Age';
$lang['Team_photo'] = 'URL to a photo';
$lang['Team_photo_explain'] = 'e.g. http://www.yourdomain.com/pic.gif';
$lang['Team_no_photo'] = 'No Photo';
$lang['Team_slogan'] = 'Your slogan';
$lang['Team_slogan_page'] = 'Slogan';
$lang['Team_optional'] = 'Blank fields';
$lang['Team_optional_explain'] = 'Here you can define a extra field. First field is the title, second one the content (e.g. Hobby: phpBB).';
$lang['Team_website'] = 'Show Website-Button';
$lang['Team_email'] = 'Show E-Mail-Button';
$lang['Team_pm'] = 'Show PM-Button';
$lang['Team_desc'] = 'Team-Description';
$lang['Team_desc_explain'] = 'This is the headline for the "About Us"-Part';
$lang['Team_text'] = 'Team-Text';
$lang['Team_text_explain'] = 'This is the text for the "About Us"-Part<br />HTML is <u>on</u>';
$lang['Sort_Realname'] = 'Realname';
$lang['Sort_User_level'] = 'User-Level';
$lang['Team_mod_forum'] = 'Forum, that %s will moderate'; // %s is Mods Username

# 
#-----[ OPEN ]------------------------------------------ 
#
viewonline.php 

# 
#-----[ FIND ]------------------------------------------ 
#
				case PAGE_INDEX:
					$location = $lang['Forum_index'];
					$location_url = "index.$phpEx";
					break;

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
				case PAGE_TEAM:
					$location = $lang['Team_page'];
					$location_url = "team.$phpEx";
					break;

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

# 
#-----[ FIND ]------------------------------------------ 
#
		$user_avatar = ( empty($user_avatar_loc) ) ? $this_userdata['user_avatar'] : '';
		$user_avatar_type = ( empty($user_avatar_loc) ) ? $this_userdata['user_avatar_type'] : '';

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
		$teamtitle = ( !empty($_POST['teamtitle']) ) ? $_POST['teamtitle'] : '';
		$realname = ( !empty($_POST['realname']) ) ? $_POST['realname'] : '';
		$realname = stripslashes($realname);
		$adress = ( !empty($_POST['adress']) ) ? $_POST['adress'] : '';
		$adress = stripslashes($adress);
		$birth = ( !empty($_POST['birth']) ) ? $_POST['birth'] : '';
		$birth = stripslashes($birth);
		$photo = ( !empty($_POST['photo']) ) ? $_POST['photo'] : '';
		$photo = stripslashes($photo);
		$slogan = ( !empty($_POST['slogan']) ) ? $_POST['slogan'] : '';
		$slogan = stripslashes($slogan);
		$opt_title = ( !empty($_POST['opt_title']) ) ? $_POST['opt_title'] : '';
		$opt_title = stripslashes($opt_title);
		$opt_text = ( !empty($_POST['opt_text']) ) ? $_POST['opt_text'] : '';
		$opt_text = stripslashes($opt_text);
		$team_website = ( isset($_POST['team_website']) ) ? intval($_POST['team_website']) : 0;
		$team_email = ( isset($_POST['team_email']) ) ? intval($_POST['team_email']) : 0;
		$team_pm = ( isset($_POST['team_pm']) ) ? intval($_POST['team_pm']) : 0;

# 
#-----[ FIND ]------------------------------------------ 
#
user_rank = $user_rank

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
, user_teamtitle = '" . str_replace("\'", "''", $teamtitle) . "', user_realname = '" . str_replace("\'", "''", $realname) . "', user_adress = '" . str_replace("\'", "''", $adress) . "', user_birth = '$birth', user_photo = '" . str_replace("\'", "''", $photo) . "', user_slogan = '" . str_replace("\'", "''", $slogan) . "', user_topt_title = '" . str_replace("\'", "''", $opt_title) . "', user_topt_text = '" . str_replace("\'", "''", $opt_text) . "', team_website = '$team_website', team_email = '$team_email', team_pm = '$team_pm'

# 
#-----[ FIND ]------------------------------------------ 
#
$user_allowpm = $this_userdata['user_allow_pm'];

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
		$teamtitle = $this_userdata['user_teamtitle'];
		$realname = $this_userdata['user_realname'];
		$adress = $this_userdata['user_adress'];
		if ( @!empty($birthday) )
		{
			// Borrowed from Birthday Mod by Nils
			$this_year = create_date('Y', time(), $board_config['board_timezone']);
			$this_date = create_date('md', time(), $board_config['board_timezone']);
			$birthdate = realdate('md', $this_userdata['user_birthday']);
			$birth = $this_year - realdate('Y', $this_userdata['user_birthday']);
		}
		else
		{	
			$birth = $this_userdata['user_birth'];
		}
		$photo = $this_userdata['user_photo'];
		$slogan = $this_userdata['user_slogan'];
		$opt_title = $this_userdata['user_topt_title'];
		$opt_text = $this_userdata['user_topt_text'];
		$team_website = $this_userdata['team_website'];
		$team_email = $this_userdata['team_email'];
		$team_pm = $this_userdata['team_pm'];

# 
#-----[ FIND ]------------------------------------------ 
# 
			'RANK_SELECT_BOX' => $rank_select_box,
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
			'TEAMTITLE' => $teamtitle,
			'REALNAME' => $realname,
			'ADRESS' => $adress,
			'BIRTH' => ( empty($birth) && empty($birthday) ) ? '' : $birth,
			'PHOTO' => $photo,
			'SLOGAN' => $slogan,
			'OPT_TITLE' => $opt_title,
			'OPT_TEXT' => $opt_text,
			'SHOW_WEBSITE_YES' => ( $team_website ) ? 'checked="checked"' : '',
			'SHOW_WEBSITE_NO' => ( !$team_website ) ? 'checked="checked"' : '',
			'SHOW_EMAIL_YES' => ( $team_email ) ? 'checked="checked"' : '',
			'SHOW_EMAIL_NO' => ( !$team_email ) ? 'checked="checked"' : '',
			'SHOW_PM_YES' => ( $team_pm ) ? 'checked="checked"' : '',
			'SHOW_PM_NO' => ( !$team_pm ) ? 'checked="checked"' : '',		
			'L_TEAM' => $lang['Team_page'],
			'L_TEAM_INFO' => $lang['Team_page_info_admin'],
			'L_TEAM_TITLE' => $lang['Team_title'],
			'L_TEAM_REALNAME' => $lang['Team_realname'],
			'L_TEAM_ADRESS' => $lang['Team_adress'],
			'L_TEAM_ADRESS_EXPLAIN' => $lang['Team_adress_explain'],
			'L_TEAM_BIRTH' => $lang['Team_birth'],
			'L_TEAM_PHOTO' => $lang['Team_photo'],
			'L_TEAM_PHOTO_EXPLAIN' => $lang['Team_photo_explain'],
			'L_TEAM_SLOGAN' => $lang['Team_slogan'],
			'L_TEAM_OPTIONAL' => $lang['Team_optional'],
			'L_TEAM_OPTIONAL_EXPLAIN' => $lang['Team_optional_explain'],
			'L_TEAM_WEBSITE' => $lang['Team_website'],
			'L_TEAM_EMAIL' => $lang['Team_email'],
			'L_TEAM_PM' => $lang['Team_pm'],

# 
#-----[ FIND ]------------------------------------------ 
# 
		if( $board_config['allow_avatar_remote'] == TRUE )
		{
			$template->assign_block_vars('avatar_remote_link', array() );
		}
	}

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	if ( $this_userdata['user_level'] == MOD || $this_userdata['user_level'] == ADMIN )
	{
		$template->assign_block_vars('switch_team', array());
	}

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

# 
#-----[ FIND ]------------------------------------------ 
#
						case PAGE_INDEX:
							$location = $lang['Forum_index'];
							$location_url = "index.$phpEx?pane=right";
							break;

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
						case PAGE_TEAM:
							$location = $lang['Team_page'];
							$location_url = "index.$phpEx?pane=right";
							break;

# 
#-----[ FIND ]------------------------------------------ 
#
						case PAGE_INDEX:
							$location = $lang['Forum_index'];
							$location_url = "index.$phpEx?pane=right";
							break;

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
						case PAGE_TEAM:
							$location = $lang['Team_page'];
							$location_url = "index.$phpEx?pane=right";
							break;

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

# 
#-----[ FIND ]------------------------------------------ 
# 
define('PAGE_TOPIC_OFFSET', 5000);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
define('PAGE_TEAM', -599);

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

# 
#-----[ FIND ]------------------------------------------ 
# 
	'L_SEARCH' => $lang['Search'],

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	'L_TEAM' => $lang['Team_page'],
	'U_TEAM' => append_sid("team.$phpEx"),

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

# 
#-----[ FIND ]------------------------------------------ 
# 
'occupation' => 'occupation', 'interests' => 'interests'
# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
'interests' => 'interests'
# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
# 
, 'realname' => 'realname', 'adress' => 'adress', 'birth' => 'birth', 'photo' => 'photo', 'slogan' => 'slogan', 'opt_title' => 'opt_title', 'opt_text' => 'opt_text', 'team_desc' => 'team_desc', 'team_text' => 'team_text'

# 
#-----[ FIND ]------------------------------------------ 
#
	}

	$user_style = ( isset($HTTP_POST_VARS['style']) ) ? intval($HTTP_POST_VARS['style']) : $board_config['default_style'];

	if ( !empty($HTTP_POST_VARS['language']) )
	{

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
		$team_website = ( isset($HTTP_POST_VARS['team_website']) ) ? ( ($HTTP_POST_VARS['team_website']) ? TRUE : 0 ) : $userdata['team_website'];
		$team_email = ( isset($HTTP_POST_VARS['team_email']) ) ? ( ($HTTP_POST_VARS['team_email']) ? TRUE : 0 ) : $userdata['team_email'];
		$team_pm = ( isset($HTTP_POST_VARS['team_pm']) ) ? ( ($HTTP_POST_VARS['team_pm']) ? TRUE : 0 ) : $userdata['team_pm'];

# 
#-----[ FIND ]------------------------------------------ 
#
		$aim = stripslashes($aim);
		$msn = stripslashes($msn);
		$yim = stripslashes($yim);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
		$realname = stripslashes($realname);
		$adress = stripslashes($adress);
		$birth = stripslashes($birth);
		$photo = stripslashes($photo);
		$slogan = stripslashes($slogan);
		$opt_title = stripslashes($opt_title);
		$opt_text = stripslashes($opt_text);
		$team_desc = stripslashes($team_desc);
		$team_text = stripslashes($team_text);

# 
#-----[ FIND ]------------------------------------------ 
#
			$sql = "UPDATE " . USERS_TABLE . "
				SET " . $username_sql . $passwd_sql

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
#
str_replace("\'", "''", $user_actkey) . "'

# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
#
, user_realname = '" . str_replace("\'", "''", $realname) . "', user_adress = '" . str_replace("\'", "''", $adress) . "', user_birth = '$birth', user_photo = '" . str_replace("\'", "''", $photo) . "', user_slogan = '" . str_replace("\'", "''", $slogan) . "', user_topt_title = '" . str_replace("\'", "''", $opt_title) . "', user_topt_text = '" . str_replace("\'", "''", $opt_text) . "', user_teamdesc_title = '$team_desc', user_teamtext = '$team_text', team_website = '$team_website', team_email = '$team_email', team_pm = '$team_pm'

# 
#-----[ FIND ]------------------------------------------ 
#
			if ( !$user_active )
			{
				//
				// The users account has been deactivated, send them an email with a new activation key

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
			if ( $userdata['user_level'] == ADMIN )
			{
				$sql = "UPDATE " . USERS_TABLE . "
					SET user_teamdesc_title = '$team_desc', user_teamtext = '$team_text'
					WHERE user_level = ". ADMIN;
				if ( !($result = $db->sql_query($sql)) )
				{
					message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
				}
			}

# 
#-----[ FIND ]------------------------------------------ 
#
	$aim = str_replace('+', ' ', stripslashes($aim));
	$msn = stripslashes($msn);
	$yim = stripslashes($yim);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	$realname = stripslashes($realname);
	$adress = stripslashes($adress);
	$birth = stripslashes($birth);
	$photo = stripslashes($photo);
	$slogan = stripslashes($slogan);
	$opt_title = stripslashes($opt_title);
	$opt_text = stripslashes($opt_text);
	$team_desc = stripslashes($team_desc);
	$team_text = stripslashes($team_text);

# 
#-----[ FIND ]------------------------------------------ 
#
	$user_timezone = $userdata['user_timezone'];
	$user_dateformat = $userdata['user_dateformat'];

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	$realname = $userdata['user_realname'];
	$adress = $userdata['user_adress'];
	if ( @!empty($birthday) )
	{
		// Borrowed from Birthday Mod by Nils
		$this_year = create_date('Y', time(), $board_config['board_timezone']);
		$this_date = create_date('md', time(), $board_config['board_timezone']);
		$birthdate = realdate('md', $userdata['user_birthday']);
		$birth = $this_year - realdate('Y', $userdata['user_birthday']);
	}
	else
	{	
		$birth = $userdata['user_birth'];
	}
	$photo = $userdata['user_photo'];
	$slogan = $userdata['user_slogan'];
	$opt_title = $userdata['user_topt_title'];
	$opt_text = $userdata['user_topt_text'];
	$team_website = $userdata['team_website'];
	$team_email = $userdata['team_email'];
	$team_pm = $userdata['team_pm'];
	$team_desc = $userdata['user_teamdesc_title'];
	$team_text = $userdata['user_teamtext'];

# 
#-----[ FIND ]------------------------------------------ 
#
display_avatar_gallery($mode,

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
#
$userdata['session_id']

# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
# 
, $realname, $adress, $birth, $photo, $slogan, $opt_title, $opt_text, $team_website, $team_email, $team_pm, $team_desc, $team_text

# 
#-----[ FIND ]------------------------------------------ 
# 
		'SMILIES_STATUS' => $smilies_status,

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
		'REALNAME' => $realname,
		'ADRESS' => $adress,
		'BIRTH' => ( empty($birth) && empty($birthday) ) ? '' : $birth,
		'PHOTO' => $photo,
		'SLOGAN' => $slogan,
		'OPT_TITLE' => $opt_title,
		'OPT_TEXT' => $opt_text,
		'TEAM_DESC' => $team_desc,
		'TEAM_TEXT' => $team_text,
		'SHOW_WEBSITE_YES' => ( $team_website ) ? 'checked="checked"' : '',
		'SHOW_WEBSITE_NO' => ( !$team_website ) ? 'checked="checked"' : '',
		'SHOW_EMAIL_YES' => ( $team_email ) ? 'checked="checked"' : '',
		'SHOW_EMAIL_NO' => ( !$team_email ) ? 'checked="checked"' : '',
		'SHOW_PM_YES' => ( $team_pm ) ? 'checked="checked"' : '',
		'SHOW_PM_NO' => ( !$team_pm ) ? 'checked="checked"' : '',		
		'L_TEAM' => $lang['Team_page'],
		'L_TEAM_INFO' => $lang['Team_page_info'],
		'L_TEAM_REALNAME' => $lang['Team_realname'],
		'L_TEAM_ADRESS' => $lang['Team_adress'],
		'L_TEAM_ADRESS_EXPLAIN' => $lang['Team_adress_explain'],
		'L_TEAM_BIRTH' => $lang['Team_birth'],
		'L_TEAM_PHOTO' => $lang['Team_photo'],
		'L_TEAM_PHOTO_EXPLAIN' => $lang['Team_photo_explain'],
		'L_TEAM_SLOGAN' => $lang['Team_slogan'],
		'L_TEAM_OPTIONAL' => $lang['Team_optional'],
		'L_TEAM_OPTIONAL_EXPLAIN' => $lang['Team_optional_explain'],
		'L_TEAM_DESC' => $lang['Team_desc'],
		'L_TEAM_DESC_EXPLAIN' => $lang['Team_desc_explain'],
		'L_TEAM_TEXT' => $lang['Team_text'],
		'L_TEAM_TEXT_EXPLAIN' => $lang['Team_text_explain'],
		'L_TEAM_WEBSITE' => $lang['Team_website'],
		'L_TEAM_EMAIL' => $lang['Team_email'],
		'L_TEAM_PM' => $lang['Team_pm'],

# 
#-----[ FIND ]------------------------------------------ 
# 
$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
if ( $userdata['user_level'] == MOD || $userdata['user_level'] == ADMIN )
{
	$template->assign_block_vars('switch_team', array());
	
	if ( $userdata['user_level'] == ADMIN )
	{
		$template->assign_block_vars('switch_team.about', array());
	}
}

# 
#-----[ OPEN ]------------------------------------------ 
#
templates/subSilver/admin/user_edit_body.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 
	<!-- END avatar_local_gallery -->

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	<!-- BEGIN switch_team -->
	<tr> 
	  <td class="catSides" colspan="2" height="28">&nbsp;</td>
	</tr>
	<tr> 
	  <th class="thSides" colspan="2" height="25" valign="middle">{L_TEAM}</th>
	</tr>
	<tr> 
	  <td class="row2" colspan="2"><span class="gensmall">{L_TEAM_INFO}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_TITLE}:</span></td>
	  <td class="row2"> 
		<input type="text" name="teamtitle" class="post" size="30" maxlength="100" value="{TEAMTITLE}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_REALNAME}:</span></td>
	  <td class="row2"> 
		<input type="text" name="realname" class="post" size="30" maxlength="100" value="{REALNAME}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_ADRESS}:</span><br /><span class="gensmall">{L_TEAM_ADRESS_EXPLAIN}</span></td>
	  <td class="row2"> 
		<input type="text" class="post" name="adress" size="30" maxlength="255" value="{ADRESS}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_BIRTH}:</span></td>
	  <td class="row2"> 
		<input type="text" class="post" name="birth" size="2" maxlength="2" value="{BIRTH}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_PHOTO}:</span><br /><span class="gensmall">{L_TEAM_PHOTO_EXPLAIN}</span></td>
	  <td class="row2"> 
		<input type="text" class="post" name="photo" size="30" maxlength="255" value="{PHOTO}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_SLOGAN}:</span></td>
	  <td class="row2"> 
		<input type="text" class="post" name="slogan" size="30" maxlength="255" value="{SLOGAN}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_OPTIONAL}:</span><br /><span class="gensmall">{L_TEAM_OPTIONAL_EXPLAIN}</span></td>
	  <td class="row2"> 
		<input type="text" class="post" name="opt_title" size="15" maxlength="100" value="{OPT_TITLE}" />&nbsp;&nbsp;<input type="text" class="post" name="opt_text" size="30" maxlength="255" value="{OPT_TEXT}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_WEBSITE}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="team_website" value="1" {SHOW_WEBSITE_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="team_website" value="0" {SHOW_WEBSITE_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_EMAIL}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="team_email" value="1" {SHOW_EMAIL_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="team_email" value="0" {SHOW_EMAIL_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_PM}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="team_pm" value="1" {SHOW_PM_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="team_pm" value="0" {SHOW_PM_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
	<!-- END switch_team -->

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

# 
#-----[ FIND ]------------------------------------------ 
# 
{L_USERGROUPS}

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
<a href="{U_TEAM}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_team.gif" width="12" height="13" border="0" alt="{L_TEAM}" hspace="3" />{L_TEAM}</a>&nbsp;&nbsp;

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

# 
#-----[ FIND ]------------------------------------------ 
# 
<!-- END switch_avatar_block -->
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
	<!-- BEGIN switch_team -->
	<tr> 
	  <td class="catSides" colspan="2" height="28">&nbsp;</td>
	</tr>
	<tr> 
	  <th class="thSides" colspan="2" height="25" valign="middle">{L_TEAM}</th>
	</tr>
	<tr> 
	  <td class="row2" colspan="2"><span class="gensmall">{L_TEAM_INFO}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_REALNAME}:</span></td>
	  <td class="row2"> 
		<input type="text" name="realname" class="post" size="30" maxlength="100" value="{REALNAME}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_ADRESS}:</span><br /><span class="gensmall">{L_TEAM_ADRESS_EXPLAIN}</span></td>
	  <td class="row2"> 
		<input type="text" class="post" name="adress" size="30" maxlength="255" value="{ADRESS}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_BIRTH}:</span></td>
	  <td class="row2"> 
		<input type="text" class="post" name="birth" size="2" maxlength="2" value="{BIRTH}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_PHOTO}:</span><br /><span class="gensmall">{L_TEAM_PHOTO_EXPLAIN}</span></td>
	  <td class="row2"> 
		<input type="text" class="post" name="photo" size="30" maxlength="255" value="{PHOTO}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_SLOGAN}:</span></td>
	  <td class="row2"> 
		<input type="text" class="post" name="slogan" size="30" maxlength="255" value="{SLOGAN}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_OPTIONAL}:</span><br /><span class="gensmall">{L_TEAM_OPTIONAL_EXPLAIN}</span></td>
	  <td class="row2"> 
		<input type="text" class="post" name="opt_title" size="15" maxlength="100" value="{OPT_TITLE}" />&nbsp;&nbsp;<input type="text" class="post" name="opt_text" size="30" maxlength="255" value="{OPT_TEXT}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_WEBSITE}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="team_website" value="1" {SHOW_WEBSITE_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="team_website" value="0" {SHOW_WEBSITE_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_EMAIL}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="team_email" value="1" {SHOW_EMAIL_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="team_email" value="0" {SHOW_EMAIL_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_PM}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="team_pm" value="1" {SHOW_PM_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="team_pm" value="0" {SHOW_PM_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
	<!-- BEGIN about -->
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_DESC}:</span><br /><span class="gensmall">{L_TEAM_DESC_EXPLAIN}</span></td>
	  <td class="row2"> 
		<input type="text" class="post" name="team_desc" size="30" maxlength="100" value="{TEAM_DESC}" />
	  </td>
	</tr>
	<tr> 
	  <td class="row1"><span class="gen">{L_TEAM_TEXT}:</span><br /><span class="gensmall">{L_TEAM_TEXT_EXPLAIN}</span></td>
	  <td class="row2"> 
		<textarea class="post" name="team_text" style="width: 400px" rows="6" />{TEAM_TEXT}</textarea>
	  </td>
	</tr>
	<!-- END about -->
	<!-- END switch_team -->

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM