
Problem With "The Humanizer" MOD
Hi everyone !
My problem :
(sorry for my english)
I installed Anti Bots Mod "The Humanizer" , following all steps on "install.txt" :
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------------------------------
#
# Nota: La linea es en realidad mas larga que la que aquí se muestra, el codigo
# que se agrega a continuación, va en una nueva linea.
#
validate_optional_fields(
#
#-----[ AFTER, ADD ]------------------------------------------------------------
#
// The humanizer MOD
$ruhuman = ( isset($HTTP_POST_VARS['ruhuman']) ) ? ( ($HTTP_POST_VARS['ruhuman']) ? TRUE : 0 ) : 0;
#
#-----[ FIND ]------------------------------------------------------------------
#
if ($board_config['enable_confirm'] && $mode == 'register')
#
#-----[ BEFORE, ADD ]-----------------------------------------------------------
#
// The humanizer MOD
if (!$ruhuman && $mode == 'register')
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Are_u_human_wrong'];
}
#
#-----[ FIND ]------------------------------------------------------------------
#
if ( ($mode == 'register') || ($board_config['allow_namechange']) )
#
#-----[ BEFORE, ADD ]-----------------------------------------------------------
#
// The humanizer MOD
if ( $mode == 'register' )
{
$template->assign_block_vars('switch_register', array());
}
#
#-----[ FIND ]------------------------------------------------------------------
#
'SIGNATURE' => str_replace('<br />', "n", $signature),
#
#-----[ AFTER, ADD ]------------------------------------------------------------
#
// The humanizer MOD
'ARE_U_HUMAN_YES' => ( $ruhuman ) ? 'checked="checked"' : '',
'ARE_U_HUMAN_NO' => ( !$ruhuman ) ? 'checked="checked"' : '',
#
#-----[ FIND ]------------------------------------------------------------------
#
'L_EMAIL_ADDRESS' => $lang['Email_address'],
#
#-----[ AFTER, ADD ]------------------------------------------------------------
#
// The humanizer MOD
'L_ARE_U_HUMAN' => $lang['Are_u_human'],
'L_ARE_U_HUMAN_EXPLAIN' => $lang['Are_u_human_explain'],
#
#-----[ OPEN ]------------------------------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------------------------------
#
<!-- END switch_confirm -->
#
#-----[ AFTER, ADD ]------------------------------------------------------------
#
<!-- The humanizer MOD -->
<!-- BEGIN switch_register -->
<tr>
<td class="row1"><span class="gen">{L_ARE_U_HUMAN} *</span><br /><span class="gensmall">{L_ARE_U_HUMAN_EXPLAIN}</span></td>
<td class="row2">
<input type="radio" name="ruhuman" value="1" {ARE_U_HUMAN_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="ruhuman" value="0" {ARE_U_HUMAN_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
<!-- END switch_register -->
#
#-----[ OPEN ]------------------------------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------------------------
#
// The humanizer MOD
$lang['Are_u_human'] = 'Are you human?';
$lang['Are_u_human_explain'] = 'Sorry but this stupid question shall keep away the bots from this forum...';
$lang['Are_u_human_wrong'] = 'Sorry, but the "humanizer" question must be answered.';
#
#-----[ OPEN ]------------------------------------------------------------------
#
language/lang_spanish/lang_main.php
#
#-----[ FIND ]------------------------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------------------------
#
// The humanizer MOD
$lang['Are_u_human'] = 'Eres un Humano?';
$lang['Are_u_human_explain'] = 'Lo sentimos, pero esta estúpida pregunta mantendrá alejados a los robots de este foro...';
$lang['Are_u_human_wrong'] = 'Lo sentimos, pero la pregunta de si eres un "humano" debe ser respondida.';
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------------------------
#
# EoM
But, when I tested register a new user, I can´t see the question "Are you human?"
The forum doesn't show the question, but the MOD is active: when filled all the remaining data get the follow :
"Sorry, but the "humanizer" question must be answered."
I checked all the steps several times, trying restoring the backup files and doing all over again, but nothing happends.
The only anormal thing that found is usercp_register.php file, because after editing the file was 104 Kb size but when I upload it to the server the hosted file is only 100 Kb size.
Can anyone tell me what I'm doing wrong ?
thank you in advance.
Amakusa