7
ok I've solved this based on skenow 2016 guide..
Guide: to make frameworks captcha appear in 2nd page of registration form in XOOPS 2.0.17.1
1. Install Frameworks
2. open /class/xoopsformloader.php
include_once XOOPS_ROOT_PATH."/Frameworks/captcha/formcaptcha.php";
add this to the last line before ?>
3. Open register.php
Find this code (line 149)
echo "
and replace with this
echo ";
if(@include_once XOOPS_ROOT_PATH."/Frameworks/captcha/formcaptcha.php") {
$cpatcha = new XoopsFormCaptcha();
echo $cpatcha->getCaption().": ".$cpatcha->render();
}
echo "
Go to line 175 find this
$stop .= implode('
', $GLOBALS['xoopsSecurity']->getErrors())."
";
}
add this code below
if(@include_once XOOPS_ROOT_PATH."/Frameworks/captcha/captcha.php") {
$xoopsCaptcha = XoopsCaptcha::instance();
if(! $xoopsCaptcha->verify() ) {
$stop .= $xoopsCaptcha->getMessage()."
";
}
}
4. Last step : refresh/update system/clear templates_c