##############################################################
## MOD Title: Change Math Question and Answer During Registration...
## MOD Author: Nightrider < N/A > (N/A) 
## MOD Description: This will allow you to quickly change the 
## 	   				math question and answer using EM...
## MOD Version: 1.0.0
##
## Installation Level: easy
## Installation Time: 1 Minute
## Files To Edit: 2
## 		 		  includes/usercp_register.php
##				  templates/subSilver/profile_add_body.tpl
##
## Included Files: 0
##
############################################################## 
## 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: The Math Question During Registration MOD by thesamet
## 		  		 MUST BE installed before you can use this MOD to  
##				 change the question and answer...
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 
## MOD History: 
## 
##    Jan 9, 2006
##      - First (and likely to be last) release
## 
############################################################## 
#
#-----[ DIY INSTRUCTIONS ]---------------------------------------------
#
Each time you want to install this MOD, you will need to increase the MOD
Version number so that EM will list it in the Unprocessed MOD list.  For 
instance, the initial MOD Version is 1.0.0.  So after successfully 
modifying the Math Question and Answer using this MOD in EM, the 
next time, you can change the MOD Version to 1.0.1 so that EM will
list it again in the EM Unprocessed MODs list...

Below, you will want to modify the 4 IN-LINE commands each time you want 
to change the question and answer.  Don't forget or the MOD will become 
worthless and block all new registrations...

The answers are listed in the usercp_register.php modifications.  Below, in  
this first version, I am changing the answer to 14.  

The question has to be changed in the profile_add_body.tpl modifications below 
to match the answer that you modified for the usercp_register.php file.  I chose 
9+5 for the question in the profile_add_body.tpl file to match the expected answer 
of 14 from the usercp_register.php file...

You should do a test registration each time you modify the question and answer
for this MOD to make sure that new members can still successfully register...
#
#-----[ OPEN ]---------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]---------------------------------------------
#
$_POST['math_question'] !=
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
7
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
nospam
#
#-----[ FIND ]---------------------------------------------
#
Incorrect answer to the mathematical question
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
mathematical question
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
security field.  User lower case font when entering this word...
#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]---------------------------------------------
#
How much is 5+2
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
How much is 5+2
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
Type in or copy and paste the following word using lower case font:  nospam
#
#-----[ FIND ]---------------------------------------------
#
name="math_question"
#
#-----[ IN-LINE FIND ]---------------------------------------------
#
maxlength="6"
#
#-----[ IN-LINE REPLACE WITH ]---------------------------------------------
#
maxlength="30"
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM