6
In the module xfguestbook and in the file xfcreate.php i add in all switch(op) the code:
xoops_load('XoopsCaptcha');
$xoopsCaptcha = XoopsCaptcha::getInstance();
if (!$xoopsCaptcha->verify()) {
$msgstop .= $xoopsCaptcha->getMessage();
}
And in the file form_sign.inc.php the code:
$button_tray->addElement(new XoopsFormCaptcha(), true);
With anonymous user all is ok, but not with register user.
I try add skipmember in config.recatpcha.php, don't work.
I test in new sessions, logout/login and cleaning all cache.
try changing the code in xoopscaptcha.php, recaptcha work in all condition.... registered user, anonymous and all groups.
the problem seems to be at line 112
if (!empty($this->config['skipmember']) && is_object($GLOBALS['xoopsUser'])) {
$this->active = false;
return $this->active;
}
and line 209
} else if (is_object($GLOBALS['xoopsUser']) && ! empty($skipMember)) {
$is_valid = true;
Thank you trabis