Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
9 - 1 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
"", 'theme' => 'white', // 'red' | 'white' | 'blackglass' | 'clean' | 'custom' 'lang' => 'de' ); [/quote] my recaptcha.php [quote] defined('XOOPS_ROOT_PATH') or die('Restricted access'); require_once(XOOPS_ROOT_PATH.'/class/captcha/recaptcha/recaptchalib.php'); class XoopsCaptchaRecaptcha extends XoopsCaptchaMethod { function render() { parent::render(); parent::loadConfig('recaptcha'); $form = " var RecaptchaOptions = { theme : '" . $this->config['theme']."', lang : '" . $this->config['lang']."' }; "; $form .= recaptcha_get_html($this->config['publickey']); return $form; } } [/quote] add to xoopscaptcha.php into function verify() [quote] } else if (!empty($_POST["recaptcha_response_field"])) { require_once(XOOPS_ROOT_PATH.'/class/captcha/recaptcha/recaptchalib.php'); require_once(XOOPS_ROOT_PATH.'/class/captcha/config.recaptcha.php'); $resp = recaptcha_check_answer ($config['privatekey'], $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); $is_valid = $resp->is_valid; [/quote] [/quote]" />

Re: Webinstall and reCaptcha
by madDan on 2010/6/21 12:22:04

Regarding Recaptcha

Any reason it is no longer used here?

I would have thought it'd be a nice feature to have as an option as part of the install if you have already registered?

Re: Webinstall and reCaptcha
by hrac on 2010/4/5 8:02:49

Do you mean reCaptcha (by definition) is as follows:

- Only checks for the first word
- Does not check last letter of first word
Re: Webinstall and reCaptcha
by ghia on 2010/4/4 1:40:42

The number of character parameter is for the regular XOOPS captcha and is not used with reCaptcha.
Quote:
But this is not what we want.
It is what it is.
Re: Webinstall and reCaptcha
by hrac on 2010/4/3 9:41:56

Thanks. I install as instructed. It seems to be working but there are some problems:

If you keep num_chars as 4, reCaptcha looks for first 4 letters.

So I set num_chars as 24 instead of 4, but it does not solve problems.

If first word has N letters, and if you write only first N-1 letters of first word (and it does not care of second word) than you will passed by reCaptcha. But this is not what we want.
Re: Webinstall and reCaptcha
by ghia on 2010/4/3 8:42:23

See post #5

Who's Online

258 user(s) are online (196 user(s) are browsing Support Forums)


Members: 0


Guests: 258


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits