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
le="color: #000000"><?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)
le="color: #000000"><?php echo "<form action='register.php' method='post'>
and replace with this
le="color: #000000"><?php echo "<form action='register.php' method='post'>"; 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
le="color: #000000"><?php $stop .= implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())."<br />"; }
add this code below
le="color: #000000"><?php if(@include_once XOOPS_ROOT_PATH."/Frameworks/captcha/captcha.php") { $xoopsCaptcha = XoopsCaptcha::instance(); if(! $xoopsCaptcha->verify() ) { $stop .= $xoopsCaptcha->getMessage()."<br />"; } }
4. Last step : refresh/update system/clear templates_c