#########################################################################################
## 
## Hack Title:    New field is mandatory
## Author:        Acid
##
## Description:   If you want to set a (new) field as mandatory..
##		  If you want to set several (new) fields as mandatory
##		  replace the line "( empty($info) )" with the following
##		  "( empty($info) || empty($another_field)", always change
##		  "info" (be aware of the spelling).
##		  The field "info" is just an example.
##
## Files to edit: 2
##		  includes/usercp_register.php
##                templates/xxx/profile_add_body.tpl
##
#########################################################################################
## 
## Installation/Author Notes: 
## First always backup the files that you're going to edit. 
## 
#########################################################################################
# 
#-----[ OPEN ]------------------------------------------
#  
# includes/usercp_register.php
# 
#-----[ FIND (be aware of the 3 braces) ]---------------------------------------------------
# 
				$username_sql = "username = '" . str_replace("\'", "''", $username) . "', ";
			}
		}
	}

# 
#-----[ BELOW ADD ]---------------------------------------------------
# 
# if you want to check the field only for register, you have to
# delete "$mode == 'editprofile' ||"

	if( $mode == 'editprofile' || $mode == 'register' )
	{
		// only if youre using a dropdown menu (delete // before the next line)
		// if( $info == $lang['Info_choice']['0'] )
		// and uncomment the next line (add // before)
		if( empty($info) )
		{
			$error = TRUE;
			$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
		}
	}

# 
#-----[ DELETE (2x) ]---------------------------------------------------
#
# only if youre using a dropdown menu

               		$info = ($info == $lang['Info_choice']['0']) ? '' : $info;



# 
#-----[ OPEN ]------------------------------------------
#  
# templates/xxx/profile_add_body.tpl
# 
#-----[ FIND and ADD a * after that ]---------------------------------------------------
# 
{L_INFO}:

#########################################################################################
#########################################################################################
#########################################################################################