1
Kumar
Registration Captcha Usage
  • 2007/1/13 5:08

  • Kumar

  • Just popping in

  • Posts: 61

  • Since: 2005/8/8 1


Anybody know how to use the captcha routine in Frameworks 1.1 with user registration form. I want to avoid the second page whrere the user want to press Finish Button with the captcha in registration page. Please help with an example code.
Thanx

2
TheFinni
Re: Registration Captcha Usage
  • 2007/1/30 18:48

  • TheFinni

  • Just popping in

  • Posts: 75

  • Since: 2003/11/25


Hi Kumar,

As far as jumping over the finish form you will have to work on. I guess you just need to figure out how to save the user from the first registration page.

Regarding your CAPTCHA usage you can add the following to your include/registerform.php:

include_once XOOPS_ROOT_PATH."/Frameworks/captcha/formcaptcha.php";

$reg_form->addElement(new XoopsFormCaptcha('Confirmation Code'));


and then to verify the user input in the register.php:

if(@include_once XOOPS_ROOT_PATH."/Frameworks/captcha/captcha.php") {
                
$xoopsCaptcha XoopsCaptcha::instance();
                if(!
$xoopsCaptcha->verify()) {
                    
$stop .= $xoopsCaptcha->getMessage();
                }
            }

Login

Who's Online

230 user(s) are online (142 user(s) are browsing Support Forums)


Members: 0


Guests: 230


more...

Donat-O-Meter

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

Latest GitHub Commits