############################################################## 
## MOD Title:          Custom registration form
## MOD Author:         Niels < ncr@db9.dk > (Niels Chr. Rd) http://mods.db9.dk
## Updated by:	       Nome <nome@bk.ru>
## MOD Description:    This mod will make it posible to make a
##                     shorter registration formular than the
##                     present one.
## MOD Version:        1.0.4
## MOD Compatibility:  2.0.21
## 
## Installation Level: Easy
## Installation Time:  2 minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit:      1
##      include/usercp_register.php 
##
## Included Files:     1
##      root/templates/subSilver/profile_register_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: 
## 
## 1. Full MOD description
## -----------
## This mod will make it posible to make a shorter registration
## formular than the present one. You can remove most fields
## and only leave name, password and email all others can be
## submitted lateron from the profile.
## It make it posible to have a different template file for
## registration and for users profile edit page.
## This is usefull if you wish to shorten the registration form,
## or completly change the layout
##
## 2. EasyMOD
## -----------
## This MOD is compatible and can be installed by EasyMOD
## of Nuttzy (but is not officially EasyMOD Compliant)!
## http://area51.phpbb.com/phpBB22/viewforum.php?sid=&f=15
##
## 3. Official last version link
## -----------
## Meanwhile the phpBB group validation and as the MOD is not yet
## in the phpBB MOD database, check this official link for updates...
## http://mods.db9.dk/viewtopic.php?t=18
##
############################################################## 
## MOD History: 
##
##   2006-08-25 - Version 1.0.4
##      - added visual confirmation field
## 
##   2004-01-18 - Version 1.0.3
##      - corrected a copy path in the how-to
##
##   2003-12-22 - Version 1.0.2
##      - phpBB template & EasyMOD compliance enhancement
##
##   ????-??-?? - Version 1.0.1
##      - changed the how-to
##
##   ????-??-?? - Version 1.0.0
##      - now considerd as final
##
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
# 
#-----[ COPY ]------------------------------------------------ 
# 
copy root/templates/subSilver/profile_register_body.tpl to templates/subSilver/profile_register_body.tpl

# 
#-----[ OPEN ]------------------------------------------------ 
# 
includes/usercp_register.php
 
# 
#-----[ FIND ]------------------------------------------------ 
# 
$template->set_filenames(array(
	'body' => 'profile_add_body.tpl')
);

# 
#-----[ REPLACE WITH ]---------------------------------------- 
#

// Start add - Custom registration form MOD
if ($mode=='register') 
{
	$template->set_filenames(array(   'body' => 'profile_register_body.tpl')); 
} else
{
	$template->set_filenames(array('body' => 'profile_add_body.tpl'));
}
// Start add - Custom registration form MOD

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