xoops forums

jimmyx

Quite a regular
Posted on: 2007/10/21 14:16
jimmyx
jimmyx (Show more)
Quite a regular
Posts: 338
Since: 2007/7/18
#1

2.0.17.1 - Frameworks Captcha in registration

how to make this guide which is the guide to enable frameworks captcha in registration form for XOOPS 2.016 to work in the latest version XOOPS 2.0.17.1 Final ?

the guide works great in my previous XOOPS version 2016
what i like about this captcha in regsitartion page hack it helps to prevent user to forget to click
the finish buttons which always happened in my site before i use the hack


or is there any better alternative ?

McDonald

Home away from home
Posted on: 2007/10/21 14:27
McDonald
McDonald (Show more)
Home away from home
Posts: 1072
Since: 2005/8/15
#2

Re: 2.0.17.1 - Frameworks Captcha in registration

Maybe the guide "XOOPS Captcha fixes for 2.0.17 and 2.2.5" can help you.

jimmyx

Quite a regular
Posted on: 2007/10/21 14:43
jimmyx
jimmyx (Show more)
Quite a regular
Posts: 338
Since: 2007/7/18
#3

Re: 2.0.17.1 - Frameworks Captcha in registration

great....thanks for the fast response

just one problem ...is there a way to make the captcha field appear in the 2nd page of the registration process like the2016 Guide ? i prefer it to be that way

example : try register here ...http://xoopsforge.com/register.php

complete the details....hit submit..and the captcha field only appear in the 2nd process of registration..don't complete the regsitation..i just want to show an example

jimmyx

Quite a regular
Posted on: 2007/11/12 9:28
jimmyx
jimmyx (Show more)
Quite a regular
Posts: 338
Since: 2007/7/18
#4

Re: 2.0.17.1 - Frameworks Captcha in registration

bump...any idea ?

sato-san

Quite a regular
Posted on: 2007/11/12 10:13
sato-san
sato-san (Show more)
Quite a regular
Posts: 224
Since: 2005/7/1 1
#5

Re: 2.0.17.1 - Frameworks Captcha in registration

Hello @jimmyx,

you can take this.

René

jimmyx

Quite a regular
Posted on: 2007/11/12 11:06
jimmyx
jimmyx (Show more)
Quite a regular
Posts: 338
Since: 2007/7/18
#6

Re: 2.0.17.1 - Frameworks Captcha in registration

Thanks

i've installed it in my site..the captcha appear in 1st page of my registration page..

what i really want is the captcha in 2nd registration page
just like in your site http://www.xoops-magazine.com/register.php

jimmyx

Quite a regular
Posted on: 2007/11/13 16:48
jimmyx
jimmyx (Show more)
Quite a regular
Posts: 338
Since: 2007/7/18
#7

Re: 2.0.17.1 - Frameworks Captcha in registration

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 "<form action='register.php' method='post'>


and replace with this

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
$stop .= implode('<br />'$GLOBALS['xoopsSecurity']->getErrors())."<br />";
    }


add this code below
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

SteffJay

Just popping in
Posted on: 2008/1/23 1:03
SteffJay
SteffJay (Show more)
Just popping in
Posts: 2
Since: 2008/1/21
#8

Re: 2.0.17.1 - Frameworks Captcha in registration

Bloody excelent jimmyx !!!! I have been looking to sort this thing out for ages... Thanks m8

blackrx

Quite a regular
Posted on: 2008/7/29 10:47
blackrx
blackrx (Show more)
Quite a regular
Posts: 227
Since: 2008/2/5 1
#9

Re: 2.0.17.1 - Frameworks Captcha in registration

thanks works in XOOPS 2.0181 too