Page 1 of 1

outside use of phpBB captcha system.

Posted: Wed Apr 22, 2009 7:25 am
by Green Light
Hi,
I would like to use the captcha system that phpBB has for a contact form outside of phpBB.
How would I go about doing this?
Thanks :mrgreen:

Re: outside use of phpBB captcha system.

Posted: Wed Apr 22, 2009 7:27 am
by otsegolectric
Download Captcha or somehow include the phpbb's.

Re: outside use of phpBB captcha system.

Posted: Thu Apr 23, 2009 3:07 am
by ..::House::..
I would like to know this as well.
Any idea's guys?

Re: outside use of phpBB captcha system.

Posted: Thu Apr 23, 2009 3:50 pm
by Nelsaidi
otsegolectric wrote:Download Captcha or somehow include the phpbb's.
Which is what he is asking to do ...

I'd like to know but not too sure.

Re: outside use of phpBB captcha system.

Posted: Thu Apr 23, 2009 7:20 pm
by Desdenova
Green Light wrote:Hi,
I would like to use the captcha system that phpBB has for a contact form outside of phpBB.
How would I go about doing this?
Thanks :mrgreen:
If you're still within the phpBB codebase, but not inside of the actual forum (like a PHP page you've created that runs using phpBB) then you may want to look at the phpbb_confirm_handler class from phpBBModders.net, here.

Note: It's using PHP5 OOP, so that restricts you to only running it on PHP 5 and newer.

Re: outside use of phpBB captcha system.

Posted: Fri Apr 24, 2009 5:46 am
by EXreaction
Check the handle_captcha function in http://userblogmod.googlecode.com/svn/t ... osting.php

A few things need quick modification, like the top section:

Code: Select all

	if ($user->data['user_id'] != ANONYMOUS || !$config['user_blog_guest_captcha'])
	{
		return true;
	}

	blog_plugins::plugin_do_arg('function_handle_captcha', $mode);
But it's basically all ready to be used and pretty simple.

Re: outside use of phpBB captcha system.

Posted: Fri Apr 24, 2009 8:50 pm
by pumpkinkid
If you are trying to use it to validate an outside form, why not just use any of the captchas available online? I personally hate the phpBB default one and switched it with reCaptcha. I have also used reCaptcha for various other forms and sites I have needed to protect from spam bots (Works really well).

There is also one from microsoft that asks you to identify cats in images of pets...