[ABD] Prime Anti-bot - Anti-spambot Text Verification

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
Alternativa
Registered User
Posts: 102
Joined: Mon Dec 01, 2008 5:26 pm
Location: Croatia
Contact:

Re: [RC1] Prime Anti-bot - Anti-spambot Text Verification

Post by Alternativa » Sat Apr 04, 2009 2:23 pm

Great mod.

Thanks..

No more problems with bots registering. :D

User avatar
James78
Registered User
Posts: 811
Joined: Sat Jul 30, 2005 4:54 pm
Location: Washington, USA
Contact:

Re: [RC1] Prime Anti-bot - Anti-spambot Text Verification

Post by James78 » Sat Apr 04, 2009 7:44 pm

I added custom questions before, but it didn't do the trick because the questions were fixed and not random, so I installed this MOD. Thanks! Spam is such a pain. :(
If you encounter what is/or you think is a bug, please report it to the phpBB Bug Tracker

barteh
Registered User
Posts: 8
Joined: Tue Nov 06, 2007 7:00 pm

Re: [RC1] Prime Anti-bot - Anti-spambot Text Verification

Post by barteh » Sat Apr 04, 2009 11:36 pm

Hi Guys, im getting the following error:
Fatal error: Call to a member function display_acp_options() on a non-object in /var/www/vhosts/DOMAIN/httpdocs/forum/includes/acp/acp_captcha.php on line 68
My code looks like:

Code: Select all

$config_vars = array(
			'enable_confirm'		=> 'REG_ENABLE',
			'enable_post_confirm'	=> 'POST_ENABLE',
			'captcha_gd'			=> 'CAPTCHA_GD',
		);

//-- mod: Prime Anti-bot ----------------------------------------------------//
		include($phpbb_root_path . 'includes/prime_captcha.' . $phpEx);
		$prime_captcha->display_acp_options($config_vars, 'captcha');
//-- end: Prime Anti-bot ----------------------------------------------------//

		$this->tpl_name = 'acp_captcha';
		$this->page_title = 'ACP_VC_SETTINGS';
		$form_key = 'acp_captcha';
		add_form_key($form_key);
anyone know why its giving me the error message?

Tsoe
Registered User
Posts: 14
Joined: Wed Apr 08, 2009 3:06 pm

Re: [RC1] Prime Anti-bot - Anti-spambot Text Verification

Post by Tsoe » Wed Apr 08, 2009 7:54 pm

Nice MOD. What is the right way to add more questions? Must I edit the array in prime_captcha_keys.php?

User avatar
primehalo
Former Team Member
Posts: 2821
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC1] Prime Anti-bot - Anti-spambot Text Verification

Post by primehalo » Thu Apr 09, 2009 9:53 am

To barteh, sounds like it's not including the includes/prime_captcha.php file properly because that's where the $prime_captcha object is declared and the error is saying it's not an object.

To Tsoe, yes, you must edit the array.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

User avatar
Boris Berdichevski
Registered User
Posts: 74
Joined: Thu Jul 10, 2008 9:09 pm

Re: [RC1] Prime Anti-bot - Anti-spambot Text Verification

Post by Boris Berdichevski » Sun Apr 12, 2009 9:15 pm

I can suggest changes to MOD for log all trying answer to questions. Log file is cache/prime_captcha.log (you can change this).
If you use Russian version of MOD, you must view the log file into UTF-8 (without BOM) Editor (for example, Notepad++)

File to modify: includes/prime_captcha.php
Find (or go to start of file):

Code: Select all

<?php
/**
*
* @package phpBB3
* @version $Id: prime_captcha.php,v 1.0.4 2008/08/27 13:15:00 primehalo Exp $
* @copyright (c) 2007-2008 Ken F. Innes IV
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
Add after:

Code: Select all

function put_log($line)
{
      global $phpbb_root_path;
      $log_file = $phpbb_root_path . 'cache/prime_captcha.log';

      $ff = @fopen($log_file, 'ab+');
      if ($ff !== false)
      {
         @fwrite($ff, $line . "\n");
      }
      @fclose($ff);

}
Find:

Code: Select all

   $field_key_phrase   = $cookie_name . $this->encode_me('field_key_phrase');
   $field_key_response = $cookie_name . $this->encode_me('field_key_response');
Add after:

Code: Select all

   $the_key_phrase   = $cookie_name . $this->encode_me('the_key_phrase');
Find:

Code: Select all

   foreach ($key_list as $idx => $valid_responses)         // The passkey phrase was encoded, so we need to find it rather than just accessing it directly (bummer)
Add before:

Code: Select all

   $vopros = request_var($the_key_phrase, '', true);
   put_log( date("d-m-Y H:i:s", time()) . ' Question ->' . $vopros . '  Response ->' . $user_response);
Find:

Code: Select all

   $post_vars[$field_key_phrase] = $this->encode_me($key_phrase);   // Add the key phrase we grabbed to the POST variables
Add after:

Code: Select all

   $post_vars[$the_key_phrase] = $key_phrase;

4040
Registered User
Posts: 104
Joined: Fri Jan 21, 2005 10:29 pm

Re: [RC1] Prime Anti-bot - Anti-spambot Text Verification

Post by 4040 » Mon Apr 13, 2009 6:25 pm

I get this error when I go to access the user registration settings in the ACP:

Fatal error: Cannot redeclare class acp_board in /home/.janeane/chucks888/charles-song.com/theshadowandflame/includes/acp/acp_board.php on line 858


what am i doing wrong?

4040
Registered User
Posts: 104
Joined: Fri Jan 21, 2005 10:29 pm

Re: [RC1] Prime Anti-bot - Anti-spambot Text Verification

Post by 4040 » Mon Apr 13, 2009 6:36 pm

I have added back my back-up files and deleted the new files in an attempt to uninstall the mod, and I get this now when trying to post:
General Error
template->_tpl_load_file(): File ./styles/songsilver/template/prime_captcha_inline.html does not exist or is empty

Why is it trying to load that? Please help!


And I still get the acp error when trying to access any of the board configuration in the ACP.

User avatar
primehalo
Former Team Member
Posts: 2821
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC1] Prime Anti-bot - Anti-spambot Text Verification

Post by primehalo » Mon Apr 13, 2009 9:31 pm

You must have messed up something in your acp_board.php file in order to get that message. It's not something that my MOD would cause.

As for that template message, you must have deleted the file but not removed the statement that includes the file:

Code: Select all

<!-- INCLUDE prime_captcha_inline.html -->
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

User avatar
newbie1981
Registered User
Posts: 23
Joined: Thu Jul 17, 2008 3:36 pm
Location: Netherlands

Re: [RC1] Prime Anti-bot - Anti-spambot Text Verification

Post by newbie1981 » Thu Apr 16, 2009 10:38 am

thanx for this mod. will be installing it soon =)


Dutch translation

prime_captcha.php

Code: Select all

$lang = array_merge($lang, array(
	// ACP
	'PRIME_CAPTCHA_POST'			=> 'Text verificatie voor posts van gasten',
	'PRIME_CAPTCHA_POST_EXPLAIN'	=> 'Vereist anonieme gebruikers een juist antwoord te geven op een bepaalde vraag of instructie om massa posts te voorkomen.',
	'PRIME_CAPTCHA_REG'				=> 'Text verificatie voor registraties',
	'PRIME_CAPTCHA_REG_EXPLAIN'		=> 'Vereist nieuwe gebruikers een juist antwoord te geven op een bepaalde vraag of instructie om massa registraties te voorkomen.',
	'PRIME_CAPTCHA_ENABLE'			=> 'Inschakelen',
	'PRIME_CAPTCHA_TEMPLATE'		=> 'Aparte pagina',
	'PRIME_CAPTCHA_DISABLE'			=> 'Uitschakelen',

	// General
	'PRIME_CAPTCHA_MOD_NAME'		=> 'Prime CAPTCHA',
	'PRIME_CAPTCHA_TITLE'   		=> 'Menselijk Verificatie Systeem',
	'PRIME_CAPTCHA_DESCRIPTION' 	=> 'Voorkomt het insturen van formulieren door automatische SPAM robots.',
	'PRIME_CAPTCHA_INSTRUCTIONS' 	=> 'Geef het juiste antwoord om te bevestigen dat je een mens bent',
	'PRIME_CAPTCHA_INCORRECT'  		=> 'Je menselijke verificatie was incorrect.',
	'PRIME_CAPTCHA_EMPTY'	  		=> 'Je hebt geen menselijk verificatie antwoord gegeven.',
	'PRIME_CAPTCHA_NO_KEY'	  		=> 'Er is geen menselijke verificatie sleutel, wat duidt op een robot submissie.',
	'PRIME_CAPTCHA_SUBMIT'  		=> 'Antwoord doorsturen',
));


prime_captcha_keys.php

Code: Select all

$lang = array_merge($lang, array(
	'PRIME_CAPTCHA_KEYS' => array(

		'Vul hier in "Ik ben mens":'
			=> array('ik ben mens', 'ikbenmens'),

		'Wat is de kleur van een heldere hemel?'
			=> array('blauw'),

		'Wat is het tegenover gestelde van heet?'
			=> array('koud'),

		'Geef de eerste 5 letters van het alfabet:'
			=> array('abcde', 'abcdef', 'a b c d e'),

	),
));

If someone has a better translation, please let me know (send me a PM!)

mastiharifans
Registered User
Posts: 1
Joined: Tue Apr 21, 2009 2:16 pm

Re: [RC1] Prime Anti-bot - Anti-spambot Text Verification

Post by mastiharifans » Tue Apr 21, 2009 2:33 pm

BIG Image

We implemented this MOD on 23 March 2009 .... since when, our daily tally of a dozen spammers has dropped to zero and stayed there.

Easy to implement and equally easy to tweak - we have a single question, based on the forum/website description.

Again, many, many thanks from our Admin/Mod team.

User avatar
newbie1981
Registered User
Posts: 23
Joined: Thu Jul 17, 2008 3:36 pm
Location: Netherlands

Re: [RC1] Prime Anti-bot - Anti-spambot Text Verification

Post by newbie1981 » Wed Apr 22, 2009 11:08 am

I installed the mod and will let you know the results in a couple of days :D

In the past 2 months we've had about 100 spam accounts on our forums. hopefully it will work!!

User avatar
newbie1981
Registered User
Posts: 23
Joined: Thu Jul 17, 2008 3:36 pm
Location: Netherlands

Re: [RC1] Prime Anti-bot - Anti-spambot Text Verification

Post by newbie1981 » Tue Apr 28, 2009 12:17 pm

0 spam accounts so far! THANK YOU!!!!

darmeth
Registered User
Posts: 1
Joined: Sun Mar 30, 2008 2:24 pm

Re: [RC1] Prime Anti-bot - Anti-spambot Text Verification

Post by darmeth » Fri May 01, 2009 11:14 am

Thank you Primehalo. Installed on 3.0.4 with a mod style and absolutely no problems. Fantastic! I hope this gets a Mod approval soon - it's about time.

User avatar
madmartyau
Registered User
Posts: 440
Joined: Sun Sep 12, 2004 12:42 pm
Location: Brisbane,Australia
Name: Marty
Contact:

Re: [RC1] Prime Anti-bot - Anti-spambot Text Verification

Post by madmartyau » Sat May 02, 2009 7:03 am

Nice work!

I have been using a custom profile field to do this but the problem is you need to change it every so often as the bots "learn".

This makes life so much easier.
Call me Grumpy.

Locked

Return to “[3.0.x] Abandoned MODs”