Who's Online

We have 204 guests online

Newsletter Subscriber Pro

Subscribe to Mavrosxristoforos.com
news, updates and get discount coupons and more!
Name:
Email:
Mailing Lists:
Mavrosxristoforos.com News
Discounts and more!
Country
How many wheels on a bike?
(ex: 1)

Donate to us!

Currency:
Amount:

Advertisement

LovelyReborns.com
Wonderful Baby Dolls
by Reborn Doll Artist, Wileima Alvarez
Web design and much more
Diamond Media.com
Photos from Greece
Contact me about link exchange and advertising here..!

Ads by Google

 Mavrosxristoforos.com Forum
Welcome Guest   [Register]  [Login]
How to Ask Questions The Smart Way   by  on 2011-11-14 04:30:35
Hello Everybody!   by  on 2009-12-17 10:51:17
Post Reply
 Subject :For those having issues getting reCAPTCHA to work... here is the solut.. 2011-08-22 19:04:19 
KaozDesigns

Guest
Subject :For those having issues getting reCAPTCHA to work... here is the solution.

So I installed this new version thinking "YAY" I get to use reCAPTCHA with my form. I was incorrect. The way this is designed reCAPTCHA could have never worked. The reason it never would have worked is due to the fact that the primary php file for the reCAPTCHA library does not get included. The mod_rapid_contact.php file includes this text:

$resp = recaptcha_check_answer($recaptcha_private, require_once('lib/recaptchalib.php');  

THIS IS WRONG. There is no lib directory. Also there is no recaptchalib.php file.

So in order to fix this go to your Joomla installation directory > modules > mod_rapid_contact

download the mod_rapid_contact.php file to your desktop and edit it using your favorite code editor.

change the line of code above to match this line

$resp = recaptcha_check_answer($recaptcha_private, require_once('libraries/recaptcha/recaptchalib.php');

Now save the file and ftp the file back to your modules folder.

Go to this link and download the reCAPTCHA php libraries from Google.

http://code.google.com/p/recaptcha/downloads/list?q=label:phplib-Latest

Unzip this file to your desktop.

Create a folder in the libraries directory of your Joomla installation and name is recaptcha.

Upload the file recaptchalib.php to this new folder from the file you previously unzipped.

Enable reCAPTCHA authentication in your module in the Joomla Administration backend.

Be sure you have added your public and private keys. You can sign up for keys here:

https://www.google.com/recaptcha/admin/create

if you have any questions you can send me an email at infoRequest@KaozDesigns.com.


Enjoy,

Terry Carter
KaozDesigns.com

IP Logged
Quote Edit
 Subject :Re:For those having issues getting reCAPTCHA to work... here is the so.. 2011-08-22 19:10:14 
mx_admin
Joined: 2011-06-27 10:54:29
Posts: 268
Location
Subject :Re:For those having issues getting reCAPTCHA to work... here is the solution.

Thanks a lot Terry for your post !

As I have mentioned many times, the reCaptcha implementation is made by a user.

He obviously included the library in his template php.

I never got the time to look into this more, but if you wish, I could upload your fixed version of Rapid Contact with ReCaptcha, so that users can find it easier.

Thanks again!

IP Logged
Quote
 Subject :Re:For those having issues getting reCAPTCHA to work... here is the so.. 2011-08-22 19:19:23 
KaozDesigns

Guest
Subject :Re:For those having issues getting reCAPTCHA to work... here is the solution.

Here is a link directly to the download on my site.

http://www.kaozdesigns.com/downloads/reCAPTCHA_Fix.zip

Extract it to your desktop and then upload it contents to your root directory.

This will overwrite your existing mod_rapid_contact.php file so if you customized anything there make a backup of that file.

It will also create a folder inside your libraries folder called recaptcha and copy in the recaptchalib.php file that is needed for reCAPTHCA to work.

If you like my layout and appreciate my code fixes... become a fan on Facebook.

http://www.facebook.com/KaozDesigns

In the next few days I am going to make a few more edits to this code so that if you use the security question instead of reCAPTCHA, or if you use both together it will randomize the security answer so that it is not static.

IP Logged
Quote Edit
 Subject :Re:For those having issues getting reCAPTCHA to work... here is the so.. 2012-01-12 05:51:47 
oliver

Guest
Subject :Re:For those having issues getting reCAPTCHA to work... here is the solution.

hi

I can not find the fleld where I can activate reCaptcha.

Can you help me?


Thanks

Oliver

IP Logged
Quote Edit
 Subject :Re:For those having issues getting reCAPTCHA to work... here is the so.. 2012-01-12 06:30:39 
mx_admin
Joined: 2011-06-27 10:54:29
Posts: 268
Location
Subject :Re:For those having issues getting reCAPTCHA to work... here is the solution.

Hello Oliver.

You probably downloaded the original version.
You should get the ReCaptcha version and if you follow the above instructions, you should be able to make it work properly.

Thank you for your post.

IP Logged
Quote
 Subject :Re:For those having issues getting reCAPTCHA to work... here is the so.. 2012-01-12 08:26:16 
Oliver

Guest
Subject :Re:For those having issues getting reCAPTCHA to work... here is the solution.

I downloaded the Joomla 1.6 version. where can I find the other 1.6 version? 


thx

Oliver

IP Logged
Quote Edit
 Subject :Re:For those having issues getting reCAPTCHA to work... here is the so.. 2012-01-12 08:31:09 
mx_admin
Joined: 2011-06-27 10:54:29
Posts: 268
Location
Subject :Re:For those having issues getting reCAPTCHA to work... here is the solution.

The ReCaptcha version was made by a user and thus is not available on 1.6 / 1.7.
Sorry for that. You can use the normal version, without reCaptcha.

I guarantee it is very secure, if you choose a good question.

Thank you again.

IP Logged
Quote
 Subject :Re:For those having issues getting reCAPTCHA to work... here is the so.. 2012-01-12 08:39:15 
Oliver

Guest
Subject :Re:For those having issues getting reCAPTCHA to work... here is the solution.

ok, thanks for your help anyway...

IP Logged
Quote Edit
 Subject :Re:For those having issues getting reCAPTCHA to work... here is the so.. 2012-02-01 15:18:37 
Dan Heise

Guest
Subject :Re:For those having issues getting reCAPTCHA to work... here is the solution.

I followed your clear instructions but couldn't find the code you site in the mod_rapid_contact.php file. The only code I see similar is the following:

// include the recaptcha library if necessary
if ($enable_recaptcha)
{
require_once('libraries/recaptcha/recaptchalib.php');
$resp = recaptcha_check_answer($recaptcha_private,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
}

As you can see I changed the directory to libraries/ as you su**est but then on the front end I do see the form and the captcha but with an error message along the top of the form:

Notice: Undefined index: recaptcha_challenge_field in /home/sc1211w/public_html/modules/mod_rapid_contact/mod_rapid_contact.php on line 47

Notice: Undefined index: recaptcha_response_field in /home/sc1211w/public_html/modules/mod_rapid_contact/mod_rapid_contact.php on line 48


You can see this on my website at:

http://www.shorechicwedding.com/home/contact-us

Appreciate any help you can give. Thanks

IP Logged
Quote Edit
 Subject :Re:For those having issues getting reCAPTCHA to work... here is the so.. 2012-02-06 19:10:59 
mx_admin
Joined: 2011-06-27 10:54:29
Posts: 268
Location
Subject :Re:For those having issues getting reCAPTCHA to work... here is the solution.

Hello Dan.

You probably have a different PHP version. I visited your site, but I guess you switched to another contact form.

Just for any user that gets into such an error, please post the lines of the PHP file that are reported in the error, so that we can help further on.

Thank you for posting.

IP Logged
Quote
Post Reply
Page #