I would think it would integrate the same way the recaptcha did. I will look into it and see if I can get it to work.
I have to get my local server seen from the internet again. Something happened with my WAMP that now I cannot hit it from outside.
After I get that fixed then I will see how easy this keycaptcha will be and will let you know.
Update:
Here is what I came up with and it seems to work. I did notice it does not let the admin bypass the captcha code and I do not see a way around that so as long as you are OK with that here are the steps to make this thing work...
Step 1
Copy the "keycaptcha.php" file from their site to your /includes/ folder.
You will need to edit the top of the file putting in your userid and private key in the places they point out on their site.
Step 2
in your pageheader.php file...
Search for
$site_template->register_vars($array);
insert AFTER
//keycaptcha
if (!class_exists('KeyCAPTCHA_CLASS')) {
// Replace '/home/path_to_keycaptcha_file/' with the real path to keycaptcha.php
include('includes/keycaptcha.php');
}
$kc_o = new KeyCAPTCHA_CLASS();
//end keycaptcha
search for...
"url_captcha_image" => $site_sess->url(ROOT_PATH."captcha.php"),
insert AFTER
"keycaptcha" => $kc_o->render_js(),
in your includes/captcha_utils.php file
search for
$sess_code = trim($site_sess->get_session_var('captcha'));
insert BEFORE
//keycaptcha
if (!class_exists('KeyCAPTCHA_CLASS')) {
// Replace '/home/path_to_keycaptcha_file/' with the real path to keycaptcha.php
include('includes/keycaptcha.php');
}
$kc_o = new KeyCAPTCHA_CLASS();
if ($kc_o->check_result($_POST['capcode'])) {
return true;
}
else {
// A visitor solved KeyCAPTCHA task incorrectly
// Add your code that will generate an error message
}
//end keycaptcha
Now the difficult part. In your templates, on the ones you want to add this keycaptcha code...
You need to place {keycaptcha} on the template where you are wanting it to be displayed...
also, on the template page you will see something like
<input type="hidden" name="action" value="postcomment" />
(value may be different)
insert BEFORE
<input type="hidden" name="capcode" id="capcode" value="false" />
on the line like...
<input type="submit" name="postbutton" value="{lang_post_comment}" class="button" />
(may be different looking depending on page you are editing...
ADD id="postbut"
BEFORE the class="button"
the line would read...
<input type="submit" name="postbutton" value="{lang_post_comment}" id="postbut" class="button" />
and you should be done...
If you are having troubles getting it to work with certain templates, let me know which one and I may have time to take a look.