[RC2] Anti Bot Question

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
DarkArchon
Registered User
Posts: 56
Joined: Thu May 04, 2006 11:22 pm

Re: [RC2] Anti Bot Question

Post by DarkArchon » Sun Jan 27, 2008 10:22 am

I'm sorry if answers to these questions are given, I searched as best I could, but I'm not reading 43 pages of posts.

1) Has this mod been updated to work with 2.0.22?
2) Can someone post an image of what this mod shows in the ACP (a screen shot of the section of the ACP where this mod shows up... I hope that makes since)

stryker23
Registered User
Posts: 3
Joined: Fri Feb 01, 2008 6:27 am

Re: [RC2] Anti Bot Question

Post by stryker23 » Fri Feb 01, 2008 6:29 am

Hello,

Very interested in using your mod. I am getting the following when attempting to install using Easymod:

Critical Error

FIND FAILED: In file [includes/usercp_register.php] could not find:

global $userdata, $template, $lang, $phpbb_root_path, $phpEx;

MOD script line #1183 :: FAQ :: Report

Please assist if possible, thank you.

Cissell
Registered User
Posts: 80
Joined: Sat May 28, 2005 5:26 pm

Re: [RC2] Anti Bot Question

Post by Cissell » Fri Feb 01, 2008 2:34 pm

Cissell wrote:Just installed this mod and it appears to be working good. Now when i go to the User Admin- Management page there is nothing below the Avatar section when i scroll down. What page did I modify that would cause this?

view it here http://nagca.com/jpg/opps.jpg
Is this mod no longer supported???? Could use some help please!!!!!! :cry:
2.0.22

User avatar
dellsystem
Former Team Member
Posts: 3879
Joined: Sat Apr 09, 2005 8:54 pm
Location: Montreal
Name: Wendy
Contact:

Re: [RC2] Anti Bot Question

Post by dellsystem » Fri Feb 01, 2008 8:54 pm

stryker23 wrote:Hello,

Very interested in using your mod. I am getting the following when attempting to install using Easymod:

Critical Error

FIND FAILED: In file [includes/usercp_register.php] could not find:

global $userdata, $template, $lang, $phpbb_root_path, $phpEx;

MOD script line #1183 :: FAQ :: Report

Please assist if possible, thank you.
Just do the edits manually if easymod doesn't work.
Cissell wrote:
Cissell wrote:Just installed this mod and it appears to be working good. Now when i go to the User Admin- Management page there is nothing below the Avatar section when i scroll down. What page did I modify that would cause this?

view it here http://nagca.com/jpg/opps.jpg
Is this mod no longer supported???? Could use some help please!!!!!! :cry:
Check templates/yours/admin/board_config_body.tpl
Former moderator and website team member | My MODs, and more (GitHub)

Cissell
Registered User
Posts: 80
Joined: Sat May 28, 2005 5:26 pm

Re: [RC2] Anti Bot Question

Post by Cissell » Sat Feb 02, 2008 2:19 am

Cissell wrote:
Cissell wrote:Just installed this mod and it appears to be working good. Now when i go to the User Admin- Management page there is nothing below the Avatar section when i scroll down. What page did I modify that would cause this?

view it here http://nagca.com/jpg/opps.jpg
Is this mod no longer supported???? Could use some help please!!!!!! :cry:
Check templates/yours/admin/board_config_body.tpl[/quote]

What am I suppose to look for in config_body.tpl? Not sure what to fix???? This file has not been modified since 9/02/2006.
2.0.22

stryker23
Registered User
Posts: 3
Joined: Fri Feb 01, 2008 6:27 am

Re: [RC2] Anti Bot Question

Post by stryker23 » Sat Feb 02, 2008 6:05 am

Hello again.

Thanks for the advice to do it manually, it took some time but worked in the end. The problem now is that when I attempt to register, I receive this error:

Parse error: syntax error, unexpected ';' in /includes/usercp_register.php on line 70


Lines 42-100

Code: Select all

// Anti Bot Question Mod - Start
include($phpbb_root_path . 'includes/functions_abq.' . $phpEx);
// Anti Bot Question Mod - End


$unhtml_specialchars_match = array('#>#', '#<#', '#"#', '#&#');
$unhtml_specialchars_replace = array('>', '<', '"', '&');

// ---------------------------------------
// Load agreement template since user has not yet
// agreed to registration conditions/coppa
//
function show_coppa()
{
	global $userdata, $template, $lang, $phpbb_root_path, $phpEx, $abq_config, $abq_agreedPart2;

	$template->set_filenames(array(
		'body' => 'agreement.tpl')
	);

	$template->assign_vars(array(
		'REGISTRATION' => $lang['Registration'],
		'AGREEMENT' => $lang['Reg_agreement'],
		"AGREE_OVER_13" => $lang['Agree_over_13'],
		"AGREE_UNDER_13" => $lang['Agree_under_13'],
		'DO_NOT_AGREE' => $lang['Agree_not'],

	);

	$template->pparse('body');

}
//
// ---------------------------------------

$error = FALSE;
$error_msg = '';
$page_title = ( $mode == 'editprofile' ) ? $lang['Edit_profile'] : $lang['Register'];

// Anti Bot Question Mod - Start
$abq_agreedPart2 = '';

if (($abq_config['abq_register']) && ($mode == 'register'))
{
	$sql = 'DELETE FROM ' . ANTI_BOT_QUEST_REGCONFIRM_TABLE . ' 
		WHERE start_time < ' . (time() - (int) $board_config['session_length']) . ' 
		AND session_id <> \'' . $userdata['session_id'] . '\'';
	if (!$db->sql_query($sql))
	{
		message_die(GENERAL_ERROR, 'Could not delete stale anti bot question data', '', __LINE__, __FILE__, $sql);
	}
	$db->sql_freeresult($result);

	$sql = 'SELECT confirm_id 
		FROM ' . ANTI_BOT_QUEST_REGCONFIRM_TABLE . ' 
		WHERE session_id = \'' . $userdata['session_id'] . '\'';
	if (!($result = $db->sql_query($sql)))
	{
Any ideas?

If it helps, the only manual step I was not able to complete, due to the inability to find the original lines was:

Code: Select all

#-----[ FIND ]------------------------------------------------ 
# 
		"U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&agreed=true"),
		"U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true&coppa=true"))

# 
#-----[ REPLACE WITH ]----------------------------------------
# 
		// Anti Bot Question Mod - Start
		"U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&" . (($abq_config['abq_register']) ? $abq_config['agreed_variable_name'] : "agreed") . "=" . (($abq_config['abq_register']) ? $abq_config['agreed_variable_value'] . $abq_agreedPart2 : "true")),
		"U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&" . (($abq_config['abq_register']) ? $abq_config['agreed_variable_name'] : "agreed") . "=" . (($abq_config['abq_register']) ? $abq_config['agreed_variable_value'] . $abq_agreedPart2 : "true") . "&coppa=true"))
		// Anti Bot Question Mod - End

# 
Thanks in advance! Looking forward to the mod, the config page worked just fine.

User avatar
Caboosey
Registered User
Posts: 9
Joined: Mon Jun 09, 2003 1:32 pm
Location: Los Angeles, CA, USA
Contact:

Re: [RC2] Anti Bot Question

Post by Caboosey » Sun Feb 03, 2008 1:29 pm

I found this MOD to be very effective and better than any other anti-spam system for phpBB. You'll like this. You have a lot of customization of questions and such. Some of the images generated are a bit confusing to read and hard to figure out. I had no problems installing it on my phpBB 2.0.22 and been running it since October 1, 2007.
Yamato Network - Web and Business Solutions at your needs!
Burn In My Light
Green Mustard Productions - Are you looking for anime or sci-fi?

Cissell
Registered User
Posts: 80
Joined: Sat May 28, 2005 5:26 pm

Re: [RC2] Anti Bot Question

Post by Cissell » Wed Feb 06, 2008 2:13 pm

Cissell wrote:
Cissell wrote:
Cissell wrote:Just installed this mod and it appears to be working good. Now when i go to the User Admin- Management page there is nothing below the Avatar section when i scroll down. What page did I modify that would cause this?

view it here http://nagca.com/jpg/opps.jpg
Is this mod no longer supported???? Could use some help please!!!!!! :cry:
Check templates/yours/admin/board_config_body.tpl
What am I suppose to look for in config_body.tpl? Not sure what to fix???? This file has not been modified since 9/02/2006.
I still need some help!!!!
2.0.22

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20999
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: [RC2] Anti Bot Question

Post by RMcGirr83 » Wed Feb 06, 2008 3:04 pm

Just installed this on my 2.0.22 test forum with no problems via EasyMod. Well, not no...sql queries setup didn't take, other than that worked/works fine.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

stryker23
Registered User
Posts: 3
Joined: Fri Feb 01, 2008 6:27 am

Re: [RC2] Anti Bot Question

Post by stryker23 » Fri Feb 08, 2008 3:58 am

Bump, anyone have a cure for my problem? I hope I havent stumped the whole forum...

I could use just the first 100 lines of the register sql file for reference.

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20999
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: [RC2] Anti Bot Question

Post by RMcGirr83 » Fri Feb 08, 2008 11:24 am

stryker23 wrote:Bump, anyone have a cure for my problem? I hope I havent stumped the whole forum...

I could use just the first 100 lines of the register sql file for reference.

Code: Select all

   $template->assign_vars(array(
      'REGISTRATION' => $lang['Registration'],
      'AGREEMENT' => $lang['Reg_agreement'],
      "AGREE_OVER_13" => $lang['Agree_over_13'],
      "AGREE_UNDER_13" => $lang['Agree_under_13'],
      'DO_NOT_AGREE' => $lang['Agree_not'],

   );
should be

Code: Select all

   $template->assign_vars(array(
      'REGISTRATION' => $lang['Registration'],
      'AGREEMENT' => $lang['Reg_agreement'],
      "AGREE_OVER_13" => $lang['Agree_over_13'],
      "AGREE_UNDER_13" => $lang['Agree_under_13'],
      'DO_NOT_AGREE' => $lang['Agree_not'])
   );
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Trinny
Registered User
Posts: 2
Joined: Thu Feb 14, 2008 8:19 pm

Re: [RC2] Anti Bot Question

Post by Trinny » Sat Feb 16, 2008 5:31 pm

I'm confident I can get this installed on my own, but I've run into a problem that I'm pretty sure is on my hosting partner's end. When copying up the file admin_anti_bot_question_index.php, it tells me the filename is too long. I've tried shortening it to get it uploaded, then renaming the file on the server with the same results. Any ideas how to work around this? Can the name be shortened? If so, what files must I change the name in? Is there a way to force long names on the server? TIA for your help.

James

ges8529
Registered User
Posts: 30
Joined: Thu Apr 29, 2004 1:12 pm

Re: [RC2] Anti Bot Question

Post by ges8529 » Sun Mar 02, 2008 3:19 pm

I had this working wonderfully with 2.0.22, but now that I've upgraded to 2.0.23 and reinstalled the MOD, it doesn't seem to work. I see all of the configuration options within the Admin CP, but nothing shows up in the footer of my forums and when I try to register, I don't see the questions or CAPTCHA! Visual confirmation is ON, but this is the only variable I've changed.

Is there a file in the upgrade from 2.0.22 to 2.0.23 that needs to be manually tweaked in order to get this MOD working again? The MOD was working wonderfully, but I'm now getting hit with bogus registrations again, and I'm tired of it.

Thanks in advance.

rlasker3
Registered User
Posts: 1
Joined: Thu Apr 17, 2008 4:47 pm

Re: [RC2] Anti Bot Question

Post by rlasker3 » Thu Apr 17, 2008 5:45 pm

Caboosey wrote:I found this MOD to be very effective and better than any other anti-spam system for phpBB. You'll like this. You have a lot of customization of questions and such. Some of the images generated are a bit confusing to read and hard to figure out. I had no problems installing it on my phpBB 2.0.22 and been running it since October 1, 2007.
I was also quite happy with this MOD until about 3 days ago when I got flooded with thousands of Porn posts. Not sure how they are getting past the registration MOD or what I can do to prevent it from here on out.

ges8529
Registered User
Posts: 30
Joined: Thu Apr 29, 2004 1:12 pm

Re: [RC2] Anti Bot Question

Post by ges8529 » Thu Apr 17, 2008 6:09 pm

I've added the RAC mod, turned visual confirmation on, and disabled registrations by open proxy and I have not had any problems. Yay! :D

Post Reply

Return to “[2.0.x] MODs in Development”

Who is online

Users browsing this forum: No registered users and 21 guests