Not Connected

Anti-spam MOD for phpBB3, extension for phpbb3.1
saldanha
Posts: 2
Joined: 11 Oct 2014, 09:55
Has thanked: 0
Been thanked: 0

Not Connected

Unread post by saldanha » 11 Oct 2014, 10:05

Hello

I have installed this mod in 2 webs with phpbb and still are not connected... I put the key in the forum (different each one). What can i do?

I installed manual without AutoMod

Version 3.0.12

Image

Version 3.0.4

Image

User avatar
shagimuratov
Administrator
Posts: 1115
Joined: 16 Mar 2011, 12:51
Has thanked: 158 times
Been thanked: 67 times
Contact:

Re: Not Connected

Unread post by shagimuratov » 11 Oct 2014, 11:26

Hi,

Did you test the registrations forms with email stop_email@example.com? Please look manual here,

https://cleantalk.org/register?joined=1 ... w_manual=1

Did the mod blocked dummy registrations?
WBR
Denis Shagimuratov
Project leader

saldanha
Posts: 2
Joined: 11 Oct 2014, 09:55
Has thanked: 0
Been thanked: 0

Re: Not Connected

Unread post by saldanha » 11 Oct 2014, 18:25

I did the test and i could register with stop_email@example.com

The mod havent bloqked any registrations but now

Any suggestions?

User avatar
shagimuratov
Administrator
Posts: 1115
Joined: 16 Mar 2011, 12:51
Has thanked: 158 times
Been thanked: 67 times
Contact:

Re: Not Connected

Unread post by shagimuratov » 12 Oct 2014, 09:50

Ok, we should check MOD patch at PHPBB_ROOT/includes/ucp/ucp_register.php, is there this code?

Code: Select all

			// Begin: Cleantalk. Spam protect 
			if (!sizeof($error) && $config['ct_newuser'] && $config['ct_enable'])
			{
		        $user->add_lang('mods/info_acp_cleantalk');
                
                if (!class_exists('Cleantalk'))
                {
                    include($phpbb_root_path . 'includes/cleantalk.class.' . $phpEx);
                }
                if (!function_exists('ct_error_mail'))
                {
                    include($phpbb_root_path . 'includes/cleantalk.' . $phpEx);
                }

                $ct_request			= new CleantalkRequest();
                $ct					= new Cleantalk();

                $ct_request->auth_key		 = $config['ct_auth_key'];
                $ct_request->sender_email	 = $data['email'];
                $ct_request->sender_nickname = $data['username'];
                $ct_request->sender_ip		 = $ct->ct_session_ip($user->data['session_ip']);
                $ct_request->agent			 = 'ct-phpbb-' . preg_replace("/(\d)\.(\w+)/", "$1$2", $config['ct_version']);
                $ct_request->submit_time	 = (!empty($user->data['ct_submit_time'])) ? time() - $user->data['ct_submit_time'] : null; 
                $ct_request->js_on			 = get_ct_checkjs(); 
                $ct_request->tz				 = $data['tz'];
                $ct_request->sender_info	 = get_sender_info(); 

                $ct->work_url		 = $config['ct_work_url'];
                $ct->server_url		 = $config['ct_server_url'];
                $ct->server_ttl		 = $config['ct_server_ttl'];
                $ct->server_changed	 = $config['ct_server_changed'];

                $ct_result = $ct->isAllowUser($ct_request);

                if ($ct->server_change)
                {
                    set_config('ct_work_url', $ct->work_url);
                    set_config('ct_server_ttl', $ct->server_ttl);
                    set_config('ct_server_changed', time());
                }

                if ($ct_result->errno > 0 || $ct_result->inactive === 1)
                {
                    // Send account to admin activation
                    $ct_activation_admin = true;
                    $ct_activation_comment = $ct_result->comment;

                    $config['email_enable'] = 1;
                    $config['require_activation'] = USER_ACTIVATION_ADMIN;
                    
                    if ($ct_result->errno > 0)
                    {
                        ct_error_mail($ct_result->errstr);
                    }
                    
                }
                if ($ct_result->allow === 0 && !isset($ct_result->sms_allow) && $ct_result->inactive == 0)
                {
                    $error[] = $ct_result->comment;
                    add_log('user', null, sprintf($user->lang['CT_USER_DENY'], $data['username'], $data['email']) . ' ' . strip_tags($ct_result->comment));
                }
			}
			// End: Cleantalk. Spam protect 
WBR
Denis Shagimuratov
Project leader

Locked