Support Forums

ReCaptcha

This is a discussion on ReCaptcha within the TemplateCodes forums, part of the Third Party Support category; Just a quick post to say many of the users of templatecodes are using Recpatcha for spam control. However the ...


Go Back   68 Classifieds Forums > Third Party Support > TemplateCodes

Reply
 
Thread Tools Display Modes
Old 10-20-2009, 07:04 AM   #1
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default ReCaptcha

Just a quick post to say many of the users of templatecodes are using Recpatcha for spam control. However the standard red color is pretty dominating and some might say awful.

To give the ReCaptcha a neutral set of colors which are much more befitting you just need to uncomment this piece of code by moving it up above the */

<?php
/*
<script>
var RecaptchaOptions = {
theme : 'clean'
};
</script>


The code sits right at the top of the file in modules/recpatcha/libs/recaptchalib.php . Further styling can also be carried out if necessary:

How to change reCAPTCHA colors - reCAPTCHA Wiki
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 10-26-2009, 02:09 AM   #2
Junior Member
 
Join Date: Oct 2009
Posts: 11
Rep Power: 8
mirway7 is on a distinguished road
Default

it does not work with me

Quote:
Parse error: syntax error, unexpected '<' in C:\Program Files\xampp\htdocs\68c4\modules\recaptcha\libs\rec aptchalib.php on line 2
mirway7 is offline   Reply With Quote
Old 10-26-2009, 11:52 AM   #3
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

Try it on a live server rather than locally and have you signed up with them???
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 10-27-2009, 06:04 AM   #4
Junior Member
 
Join Date: Oct 2009
Posts: 11
Rep Power: 8
mirway7 is on a distinguished road
Default

Quote:
Originally Posted by seymourjames
Try it on a live server rather than locally and have you signed up with them???
yes of course. The module works fine online, but not with your code
mirway7 is offline   Reply With Quote
Old 10-27-2009, 08:40 AM   #5
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

How to change reCAPTCHA colors - reCAPTCHA Wiki .

This is where the code comes from. It works fro me and a few of my customers. You must be doing something wrong (you have taken it out of the commenting haven't you). If you are using xampp then you are not on a live server but a local server setup!!! you cannot get the same behaviour.

It even gives you this change in the actual module download (recaptcha/libs/recaptchalib.php). so if it is wrong then the wiki is wrong, the code supplied by recpatcha is wrong as well.

<?php
/* To make it clear <script>
var RecaptchaOptions = {
theme : 'clean'
};
</script>

* This is a PHP library that handles calling reCAPTCHA.
* - Documentation and latest version
* PHP CAPTCHA Library for reCAPTCHA
* - Get a reCAPTCHA API Key
* http://recaptcha.net/api/getkey
* - Discussion group
* reCAPTCHA | Google Groups
*
* Copyright (c) 2007 reCAPTCHA -- reCAPTCHA: Stop Spam, Read Books
* AUTHORS:
* Mike Crawford
* Ben Maurer
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 10-27-2009, 11:46 AM   #6
Junior Member
 
Join Date: Oct 2009
Posts: 11
Rep Power: 8
mirway7 is on a distinguished road
Default

now I dont have error message but the theme does not change any more

Last edited by mirway7; 10-27-2009 at 12:44 PM.
mirway7 is offline   Reply With Quote
Old 10-27-2009, 03:39 PM   #7
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

You give no details and cannot be helped. Try to give details or what is the point in asking. And once again. If you are not on a live server, it may not work. Who knows what you are doing, what version of 68C you have , a screenshot or a link, etc.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 11-13-2009, 08:50 PM   #8
Customer
 
Join Date: Aug 2008
Location: Canada
Posts: 66
Rep Power: 14
freeze2 is on a distinguished road
Default

Quote:
Originally Posted by seymourjames
The code sits right at the top of the file in modules/recpatcha/libs/recaptchalib.php . Further styling can also be carried out if necessary:
For some reason, this code doesn't show up in my recaptchalib.php file. I downloaded Eric's module from:

68 Classifieds reCaptcha Module ? Eric Barnes

According to the wiki...I should be able to add the code...would this go in the recaptchalib.php file? And if so, where in the file?

Thanks!
__________________
Developer-v4.1.5 | Customized Theme
freeze2 is offline   Reply With Quote
Old 11-14-2009, 04:44 AM   #9
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

OK I see now it is not included in Eric's download but it is part of the Wiki and standard download from ReCaptcha.

Correct. Put it at the top. like this for example

<?php
<script>
var RecaptchaOptions = {
theme : 'clean'
};
</script>

/* bla bla

*/
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 11-14-2009, 09:14 AM   #10
Customer
 
Join Date: Aug 2008
Location: Canada
Posts: 66
Rep Power: 14
freeze2 is on a distinguished road
Default

Thanks...will give it a try
__________________
Developer-v4.1.5 | Customized Theme
freeze2 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
V4.1.x reCaptcha Module bollskis Modules / Plugins / Modifications 2 10-01-2009 03:21 PM
reCaptcha Module Eric Barnes Modification Release 5 12-19-2008 04:58 PM


All times are GMT -4. The time now is 03:33 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0