bbAntiSpam: Discuss how to stop web spam

The forum is retired.

bbAntiSpam Forum Index - Textual Confirmation - Not enabled

Author Message
mischa



Joined: 13 Nov 2006
Posts: 11

Posted: Mon Nov 13, 2006 9:49 pm    Post subject: Not enabled  

I have just installed the Textual Confirmation... great idea btw!
But for some reason it's not enforced. I can still register without the textual confirmation. Anything that I missed. Running phpBB 2.0.21

Thanx!
admin
Site Admin


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

Posted: Tue Nov 14, 2006 2:45 am    Post subject:  

It's hard to say why it could be.... Let's try to trace the problem. The first question is:

Go to the registration page. Does a question appear?

If yes, pack these files and send them to info@:

includes/constants.php
includes/usercp_register.php
templates/subSilver/profile_add_body.tpl
mischa



Joined: 13 Nov 2006
Posts: 11

Posted: Tue Nov 14, 2006 12:53 pm    Post subject:  

The files are on their way...
Thanx!
mischa



Joined: 13 Nov 2006
Posts: 11

Posted: Wed Nov 15, 2006 5:03 pm    Post subject:  

Did you receive the files?
admin
Site Admin


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

Posted: Thu Nov 16, 2006 6:13 am    Post subject:  

Hi! Sorry for delay, I was in deadline coding.

I've looked at your files. The problem is that call to "tc_hook_register" is in a wrong place. The current code:

Code:

   else if ( $mode == 'register' )
   {
      if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) )
      {
         $error = TRUE;
         $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
         tc_hook_register();
      }
   }

   if ($board_config['enable_confirm'] && $mode == 'register')


Should be:

Code:

   else if ( $mode == 'register' )
   {
      if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) )
      {
         $error = TRUE;
         $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
      }
   }

   tc_hook_register();
   if ($board_config['enable_confirm'] && $mode == 'register')


Try the correction and report the results. Thanks!
mischa



Joined: 13 Nov 2006
Posts: 11

Posted: Thu Nov 16, 2006 10:40 am    Post subject:  

No worries about the delay. Just wanted to make sure you received the files.

But... it works!!! Smile

Thanx!!
admin
Site Admin


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

Posted: Fri Nov 17, 2006 5:35 am    Post subject:  

Quote:
But... it works!!!

I'm happy to know it. Good luck!

Ok.