News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

reCAPTCHA for SMF

Started by 青山 素子, December 28, 2007, 12:16:40 PM

Previous topic - Next topic

FragaCampos

I managed to edit it myself. It was missing a }...

It's working great. Thanks a lot for this!

FragaCampos

Allow me to ask this:
if de recpatcha servers are down, what happens to those who try to register during that period?

krick

Quote from: tattooedpierre on May 08, 2009, 02:06:22 PM
I'm using UTF-8 on my forum and when I upload the mod (2.0RC1) I get this:


3. Execute Modification themes/core-20b3.xml Modification parse error
4. Execute Modification themes/core-20b3.xml Modification parse error
5. Execute Modification languages/english.xml Modification parse error
6. Execute Modification languages/english.xml Modification parse error


.. What do you suppose could be the matter?

I'm trying to re-install reCAPTCHA after upgrading to 1.1.9 and I'm also seeing "Modification parse error" messages when trying to install...


benjicadena

#163
I installed recaptcha manually but when a person tries to register for my forum the following error occurs

Fatal error: require() [function.require]: Failed opening required '/home/benjicad/public_html/Sources/recaptchalib.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/benjicad/public_html/Sources/Register.php on line 183

I am using the default template version 1.1.9 How can I fix this?

benjicadena

I finally got it working. Since I had installed it manually by following the parse instructions I was missing the file recaptchalib.php

I downloaded the package to my computer and I uploaded recaptchalib.php to the sources folder and now it's working fine.

krick

Quote from: benjicadena on May 27, 2009, 10:43:10 AM
I finally got it working. Since I had installed it manually by following the parse instructions I was missing the file recaptchalib.php


Yeah, it looks like manual installation is the only way to go for now.

BTW, if you want your registration page to pass W3C validation with reCaptcha installed...

http://validator.w3.org/check?uri=http%3A%2F%2Fhairlossduel.com%2Findex.php%3F%26action%3Dregister

...make sure you make the changes to ./Themes/default/Register.template.php that I list here...

http://www.simplemachines.org/community/index.php?topic=213535.msg1858958#msg1858958

benjicadena

Quote from: krick on May 27, 2009, 02:33:27 PM
Quote from: benjicadena on May 27, 2009, 10:43:10 AM
I finally got it working. Since I had installed it manually by following the parse instructions I was missing the file recaptchalib.php


Yeah, it looks like manual installation is the only way to go for now.

BTW, if you want your registration page to pass W3C validation with reCaptcha installed...

http://validator.w3.org/check?uri=http%3A%2F%2Fhairlossduel.com%2Findex.php%3F%26action%3Dregister

...make sure you make the changes to ./Themes/default/Register.template.php that I list here...

http://www.simplemachines.org/community/index.php?topic=213535.msg1858958#msg1858958

krick, I made the changes and I am still getting validation errors. One thing that I also noticed is that recaptcha is not showing up correctly if I use firefox. I want to use recaptcha but I'm going to have to disable it until I figure it out. I'm afraid I may make things worst if I keep playing around with this. This validator thing just opened up another can of worms for me since is not passing for the home page of my forum either.

krick

Quote from: benjicadena on May 27, 2009, 08:03:49 PM
This validator thing just opened up another can of worms for me since is not passing for the home page of my forum either.

The first thing is to make sure that your forum home page validates first.  Once that's good, try to fix the register page.

Looking at the validation page...

http://validator.w3.org/check?uri=http%3A%2F%2Fhairlossduel.com

The first thing I see is that you have <br> tags that are invalid for XHTML in the section where your google ad code is.  They need to be <br /> instead.  Sometimes, fixing the first bug or two will fix other that are caused by the first ones.  Check out your code for the ad block either in your main template, or whichever mod you're using.

Have you tried using this google ad mod?....

http://custom.simplemachines.org/mods/index.php?mod=255

I don't have it installed at the moment since I uninstalled it for the 1.1.9 upgrade, but it works great (at least it did with 1.1.8) and doesn't have any validation problems.

benjicadena

#168
Quote from: krick on May 27, 2009, 08:16:30 PM
Quote from: benjicadena on May 27, 2009, 08:03:49 PM
This validator thing just opened up another can of worms for me since is not passing for the home page of my forum either.

The first thing is to make sure that your forum home page validates first.  Once that's good, try to fix the register page.

Looking at the validation page...

http://validator.w3.org/check?uri=http%3A%2F%2Fhairlossduel.com

The first thing I see is that you have <br> tags that are invalid for XHTML in the section where your google ad code is.  They need to be <br /> instead.  Sometimes, fixing the first bug or two will fix other that are caused by the first ones.  Check out your code for the ad block either in your main template, or whichever mod you're using.

Have you tried using this google ad mod?....

http://custom.simplemachines.org/mods/index.php?mod=255

I don't have it installed at the moment since I uninstalled it for the 1.1.9 upgrade, but it works great (at least it did with 1.1.8) and doesn't have any validation problems.

Krick, It's working now, as far as passing validation. I do have the Ad mod installed but I'm the one who added the <br> code to it. I modified it like you said <br /> and now it's passing validation. Now the only problem that I have is that when I load the register page with Internet Explorer it still says done but with errors on page. I don't get it because it is passing validation

noelchiew

When someone registers in my forum, this error shows up in my error log:

Undefined index: recaptcha_response_field
File: /home/cravchi7/public_html/forum/Sources/Register.php
Line: 180
?action=register2

Any idea?

krick

Quote from: benjicadena on May 27, 2009, 08:42:43 PM
Now the only problem that I have is that when I load the register page with Internet Explorer it still says done but with errors on page. I don't get it because it is passing validation

Which version of Internet Explorer?  I don't get any errors when I load your register page using IE8.

krick

Quote from: noelchiew on May 28, 2009, 12:31:49 AM
When someone registers in my forum, this error shows up in my error log:

Undefined index: recaptcha_response_field
File: /home/cravchi7/public_html/forum/Sources/Register.php
Line: 180
?action=register2

Any idea?

Is it related to this user's comment from earlier in this thread?...

http://www.simplemachines.org/community/index.php?topic=213535.msg1861637#msg1861637

noelchiew

I've no idea... I'll give it a shot. I've changed it now and will see if the error still comes up when I've a new member sign up :)

Any possibility this is just an error which comes up if the person who is trying to register enters an incorrect answer? In the settings page, should I leave the SMF captcha enabled or disabled when the recaptcha is enabled? I think the mod does disabling so I can just leave it alone right?

青山 素子

It looks like there are still some undefined indexes in the code. These are not bad in themselves, but I consider it to be messy. I'll do my best to make sure the latest code doesn't have any further undefined index issues. Likewise the other issues pointed out.


Also, sorry for my lack of presence in this topic. I'm currently having a really tough work schedule and can barely get the essential project management stuff for SMF done before sleeping at night. In fact, I'm only up now because of an emergency call because one of our European customers is having some issues (nothing like being woken up by the phone to roll back a broken code change the programmers had pushed to the server).
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


noelchiew

Its ok... I think some of the errors and problems are not that critical such that it crashes the site or forum so we can live with it until you have the time to solve the issues :)

benjicadena

Quote from: krick on May 28, 2009, 01:29:21 AM
Quote from: benjicadena on May 27, 2009, 08:42:43 PM
Now the only problem that I have is that when I load the register page with Internet Explorer it still says done but with errors on page. I don't get it because it is passing validation

Which version of Internet Explorer?  I don't get any errors when I load your register page using IE8.

Thanks for your help krick in getting these errors cleared out  :D. I'm using IE7 but if errors are not coming out on IE8 and I passed validation I guest I'm good

sibling chris

on the registration page I am seeing that recaptcha is not picking up the selected theme correctly and there is a javascript error

I can see in the generated source what the error is, its pretty obvious but not sure what to do to fix it


<script>
var RecaptchaOptions = {
   theme : 'white',
};
</script>
<script type="text/javascript"
           src="http://api.recaptcha.net/challenge?k=XXXXXXXXX">
</script>

sibling chris

Quote from: sibling chris on June 01, 2009, 06:12:31 AM
on the registration page I am seeing that recaptcha is not picking up the selected theme correctly and there is a javascript error

I can see in the generated source what the error is, its pretty obvious but not sure what to do to fix it


<script>
var RecaptchaOptions = {
   theme : 'white',
};
</script>
<script type="text/javascript"
           src="http://api.recaptcha.net/challenge?k=XXXXXXXXX">
</script>


fixed

line 138 of Register.template.php remove the comma from the end of the line

Taskman

Just installed and configured 0-9-5-4b (provided public/private key and style), however, it looks like reCAPTCHA refuses to validate whatever input the users insert in the box.

(SMF complains that the text doesn't match the image). ::)

Using version 1.1.9, italian.

青山 素子

Try refreshing the image a few times and try again. I've seen this happen, but only rarely.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Advertisement: