bbAntiSpam: Discuss how to stop web spam

The forum is retired.

bbAntiSpam Forum Index - Textual Confirmation - Help - getting error

Author Message
Tara
Guest





Posted: Fri Mar 09, 2007 9:21 am    Post subject: Help - getting error  

Okay I installed it and now I get this error:

Parse error: syntax error, unexpected T_ELSE in /home/tara4055/public_html/forum/includes/usercp_register.php on line 166

This is what I have for my user_registration html, I can't figure out what I've done wrong:


}
else
{


$error = true;
$error_msg = $lang['Fields_empty'];
}
}
tc_hook_register();
else
{
$user_lang = $board_config['default_lang'];
}




$user_timezone = ( isset($HTTP_POST_VARS['timezone']) ) ? doubleval($HTTP_POST_VARS['timezone']) : $board_config['board_timezone'];

$sql = "SELECT config_value
FROM " . CONFIG_TABLE . "
WHERE config_name = 'default_dateformat'";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select default dateformat', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$board_config['default_dateformat'] = $row['config_value'];
$user_dateformat = ( !empty($HTTP_POST_VARS['dateformat']) ) ? trim(htmlspecialchars($HTTP_POST_VARS['dateformat'])) : $board_config['default_dateformat'];
admin
Site Admin


Joined: 18 Apr 2006
Posts: 805
Location: Saint-Petersburg, Russia

Posted: Fri Mar 09, 2007 9:46 am    Post subject:  

Hello,

"tc_hook_register()" is inserted in the wrong place. Please remove it.

Then make the following. In this file ("usercp_register.php") find this code fragment:
Code:

    $error = TRUE;
    $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
  }
}

It's near the line 280. Add after the curly brakets:
Code:

tc_hook_register();

_________________
Oleg Parashchenko, bbAntiSpam
Do you love our tools? Please sponsor further development!
Tara
Guest





Posted: Fri Mar 09, 2007 9:57 am    Post subject:  

Thank you SO much. Sorry, I'm not used to html coding and I was a bit overwhelmed. It works now, thank you!

Is there any way to stop the e-mails from rejected users coming? Can we pay a one-time fee to sponsor you to stop the e-mails?
Tara
Guest





Posted: Fri Mar 09, 2007 10:12 am    Post subject:  

Never mind I just saw the registration link. After we register, do we have to do anything or reinstall anything or does it automatically work?
admin
Site Admin


Joined: 18 Apr 2006
Posts: 805
Location: Saint-Petersburg, Russia

Posted: Fri Mar 09, 2007 10:31 am    Post subject:  

Hello,

I'm very glad Textual Confirmation does work now.

Quote:
do we have to do anything

You'll need to copy the license file on the server. That's all.
_________________
Oleg Parashchenko, bbAntiSpam
Do you love our tools? Please sponsor further development!

Ok.