Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: 青山 素子 on December 28, 2007, 12:16:40 PM

Title: reCAPTCHA for SMF
Post by: 青山 素子 on December 28, 2007, 12:16:40 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=1044)

About
-----
This modification allows you to use reCAPTCHA (http://www.google.com/recaptcha) instead of the built-in Visual Verification system. It supports the SMF 2.0 series.

Portions of the code use the PHP reCAPTCHA API.

This mod and other information can be found at: http://www.animeneko.net/projects/smf/


Features
--------


How to Use
----------
You can enable reCAPTCHA by going to:

Admin -> Configuration -> Security and Moderation -> Anti-Spam

A set of keys are required for operation of reCAPTCHA. A link is provided in the settings to register for a key pair.


2.0 Upgrade Note
----------------
If you are upgrading from a version older than 2.0, there is one major change to be aware of.

Starting with version 2.0, this modification no longer replaces the built-in image verification. It now operates independently of those settings. If you don't want the built-in image verification, make sure to set it to "None".


Known Issues
------------


License
-------
This code is licensed under the terms of the BSD 3-Clause License. SMF code used in this mod is copyright Simple Machines. All original code is copyright Michael Johnson.

The reCAPTCHA PHP library is licensed under the BSD 3-Clause License.


Acknowledgements
----------------
"SMF" and "Simple Machines" are trademarks of Simple Machines.
Title: Re: reCAPTCHA for SMF
Post by: jossanaijr on December 29, 2007, 05:56:50 AM
What's the advantage of this?
Title: Re: reCAPTCHA for SMF
Post by: karlbenson on December 29, 2007, 10:02:18 AM
your helping to digitise books.

When scanning book and trying to use OCR, it is very imperfect and makes tonnes of mistakes.
So reCaptcha are using humans to translate what the letters are, as a byproduct of passing a validation test.
Title: Re: reCAPTCHA for SMF
Post by: Marook on December 29, 2007, 12:33:52 PM
Great Idea ! Never heard before about reCaptcha but really great ! Btw, also great mod ;)
Title: Re: reCAPTCHA for SMF
Post by: karlbenson on December 29, 2007, 12:36:15 PM
So its doing something for a worthy cause at the same time.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on December 29, 2007, 12:57:08 PM
Quote from: karlbenson on December 29, 2007, 10:02:18 AM
When scanning book and trying to use OCR, it is very imperfect and makes tonnes of mistakes.
So reCaptcha are using humans to translate what the letters are, as a byproduct of passing a validation test.

The bonus is that these are proven to have issues with computers trying to OCR them, so they actually are tougher for spam bots than computer-generated CAPTCHA. At least that is the case in theory, and that theory has held up well so far.

Note that as this changes stuff with the default image verification, it will not apply cleanly if you are using another mod that also changes this stuff.

Also, if you have any suggestions on how to improve things or some localized language strings, please PM me with them. I'd like to keep this topic for support, if possible.
Title: Re: reCAPTCHA for SMF
Post by: karlbenson on December 29, 2007, 01:13:56 PM
PM sent*

;)
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on December 29, 2007, 01:28:11 PM
Quote from: karlbenson on December 29, 2007, 01:13:56 PM
It would probably be a good idea to support english utf8

Remember that thing I mentioned about PMing me with the language strings?
Title: Re: reCAPTCHA for SMF
Post by: karlbenson on December 29, 2007, 01:48:08 PM
Sorry.

I've edited my post and forwarded them your way.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on December 29, 2007, 02:10:42 PM
Quote from: karlbenson on December 29, 2007, 01:48:08 PM
Sorry.

I've edited my post and forwarded them your way.

Thanks. I'll try to get an updated release out in the next few days.
Title: Re: reCAPTCHA for SMF
Post by: fiver on January 11, 2008, 02:09:24 AM
I just clicked on the link to recaptcha.net and got this

QuoteProblem loading page
The connection has timed out
The server at recaptcha.net is taking too long to respond.

Does this affect the verification on the forum? Is it dependent on their site?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 11, 2008, 10:58:17 AM
Yes, this does depend on the service at recaptcha.net. I personally haven't noticed any downtime, but of course various factors could influence if you can access the site.

I just checked and recaptcha.net is functioning. If you check and have issues connecting again, there might be something on your local computer or network preventing you from connecting.
Title: Re: reCAPTCHA for SMF
Post by: Aileen on January 13, 2008, 04:47:34 PM
Great mod, Ive been using this in my wordpress but I don't know there is this one for SMF. great job mr. Motokan

Btw
is the text

Sorry, but you're not allowed to register multiple accounts at the same time from the same computer.


Default or through this mod only?

And What is the trigger of this prompt

thanks
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 13, 2008, 07:19:05 PM
Quote from: Aileen on January 13, 2008, 04:47:34 PM
Great mod, Ive been using this in my wordpress but I don't know there is this one for SMF. great job mr. Motokan

Glad you like it, it is fairly new so I'm not surprised you didn't know. If you have any suggestions, let me know.


Quote from: Aileen on January 13, 2008, 04:47:34 PM
Btw
is the text

Sorry, but you're not allowed to register multiple accounts at the same time from the same computer.

Default or through this mod only?

And What is the trigger of this prompt

That is part of the built-in registration system. Basically, once you register an account through the front of the site, your session keeps you from doing another registration. You can close your browser and open it again to kill the session.

If you are an admin and need to register multiple users, you can do so through the admin area.
Title: Re: reCAPTCHA for SMF
Post by: gamerxgirl on January 13, 2008, 08:42:31 PM
Frst off, great job on this mod, I hope I get it working. This is much better than the default CAPTCHA.

I installed this mod and it seems to be giving me problems. It failed when I attempted to install it through the package manager, specifically Themes/default/Register.template.php, probably because I have many mods installed, though I don't think any touch that file, so I applied the edits manually and ended up with a parse error, which I was able to 'fix' and had some strange results. (This is probably because I'm a PHP newbie)

Under Admin -> Registration -> Settings, I end up having an extra textbox and some of the options messed up.
(http://img2.freeimagehosting.net/uploads/3d5e79b053.jpg)

It's very likely that I did something wrong when making the edits manually. My registration page also becomes a little wonky.
Title: Re: reCAPTCHA for SMF
Post by: johnathanamber on January 31, 2008, 10:22:26 AM
Hello everyone!

What changes have to be made to the register.template.php file? I have the same issue where it does not install. All other modifications are fine except for this file.

Cal you please post that has to be done to the register.template.php file?

Thank you and God bless,
Johnathan
Title: Re: reCAPTCHA for SMF
Post by: johnathanamber on February 01, 2008, 03:18:19 PM
Hello everyone,

Please if you do nt mind can you please post the instructions in order to manually update the Register.template.php file?

I am currently getting the following error in the error log:


8: Undefined index: recaptcha_enabled
File: /home/content/t/s/g/tsgcomputers/html/forum/Sources/Register.php
Line: 175


Thank you very much and God bless,
Johnathan
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 01, 2008, 05:42:54 PM
Sorry for being so quiet, it's been hectic at work (you're welcome to debug this mess if you want).

If you can figure out basic XML, look at the contents of the mod archive. The template changes are in their own XML file even. (I usually break things out this way, it's easier to maintain.)

Basic info is that you want to look at the lines in the CDATA section (between the [[ and ]], basically) because that is what is being changed. Search action is important. If it says "after" you want the changes before the search. If it says "before" that means you want the stuff after. If it says "replace", you replace.

If you can't figure it out, I'll put out the source and post a writeup as soon as I get the time.
Title: Re: reCAPTCHA for SMF
Post by: johnathanamber on February 01, 2008, 05:46:45 PM
Motoko-chan,

Thank for the clear description. I attempted to do this update myself and it blew up in my face... boy amd I glad it was literally...

I will attempt again, however if you have the time, just in case it does 'blow-up' can you please post that changes?

Thanks a bunch, can't wait to use your mod.

God bless and thank you,
Johnathan
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 01, 2008, 07:21:50 PM
Just remember that the search position is the opposite of what you want to do with the code (except for replace and end). It might seem backward at first, but it makes sense if you think about it.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 03, 2008, 02:45:04 PM
Text description for the Register.template.php changes.

Please note that other mods that change the image verification system can cause issues.

Find:

if ($context['visual_verification'])
{
echo '
<tr valign="top">


REPLACE with:

if ($context['visual_verification'] || $context['use_recaptcha'])
{
echo '
<tr valign="top">



Find:

<b>', $txt['visual_verification_label'], ':</b>
<div class="smalltext">', $txt['visual_verification_description'], '</div>


REPLACE with:

<b>', $txt['visual_verification_label'], ':</b>';
if ($context['visual_verification'])
echo '<div class="smalltext">', $txt['visual_verification_description'], '</div>';
echo '



Find:

if ($context['use_graphic_library'])
echo '
<img src="', $context['verificiation_image_href'], '" alt="', $txt['visual_verification_description'], '" id="verificiation_image" /><br />';


Add this BEFORE:

if ($context['use_recaptcha'])
{
echo '
<script>
var RecaptchaOptions = {
   theme : \'', empty($modSettings['recaptcha_theme']) ? 'clean' : $modSettings['recaptcha_theme'] , '\',
};
</script>
<script type="text/javascript"
src="http://api.recaptcha.net/challenge?k=', $modSettings['recaptcha_public_key'], '">
</script>

<noscript>
<iframe src="http://api.recaptcha.net/noscript?k=<your_public_key>"
height="300" width="500" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40">
</textarea>
<input type="hidden" name="recaptcha_response_field"
value="manual_challenge">
</noscript>';
}
else
{



Find:

}

// Are there age restrictions in place?


Add this BEFORE:

}



Find:

</tr><tr class="windowbg2" valign="top">
<th width="50%" align="right">
<label for="coppaAge_input">', $txt['admin_setting_coppaAge'], '</label> <span style="font-weight: normal;">(<a href="', $scripturl, '?action=helpadmin;help=coppaAge" onclick="return reqWin(this.href);">?</a>)</span>:


Add this BEFORE:

<tr class="windowbg2">
<th width="50%" align="right">
<label for="recaptchaEnable_check">', $txt['recaptcha_enable'], '</label>:
</th>
<td width="50%" align="left">
<input type="checkbox" name="recaptchaEnable" id="recaptchaEnable_check" ', !empty($modSettings['recaptcha_enabled']) ? 'checked="checked"' : '', ' class="check" />
</td>
</tr><tr class="windowbg2">
<th width="50%" align="right">
<label for="recaptchaTheme">', $txt['recaptcha_theme'], '</label>:
</th>
<td width="50%" align="left">
<select name="recaptchaTheme" id="recaptcha_theme_select">
<option value="clean"', empty($modSettings['recaptcha_theme']) ? ' selected="selected"' : '', '>', $txt['recaptcha_theme_clean'], '</option>
<option value="blackglass"', !empty($modSettings['recaptcha_theme']) && $modSettings['recaptcha_theme'] == "blackglass" ? ' selected="selected"' : '', '>', $txt['recaptcha_theme_blackglass'], '</option>
<option value="red"', !empty($modSettings['recaptcha_theme']) && $modSettings['recaptcha_theme'] == "red" ? ' selected="selected"' : '', '>', $txt['recaptcha_theme_red'], '</option>
<option value="white"', !empty($modSettings['recaptcha_theme']) && $modSettings['recaptcha_theme'] == "white" ? ' selected="selected"' : '', '>', $txt['recaptcha_theme_white'], '</option>
</select>
</td>
</tr><tr class="windowbg2" valign="top">
<th width="50%" align="right">
<label for="recaptchaPublicKey_input">', $txt['recaptcha_public_key'], '</label>:
</th>
<td width="50%" align="left">
<input type="text" name="recaptchaPublicKey" id="recaptchaPublicKey_input" value="', !empty($modSettings['recaptcha_public_key']) ? $modSettings['recaptcha_public_key'] : '', '" size="40" maxlength="40" />
</td>
</tr><tr class="windowbg2" valign="top">
<th width="50%" align="right">
<label for="recaptchaPrivateKey_input">', $txt['recaptcha_private_key'], '</label>:
</th>
<td width="50%" align="left">
<input type="text" name="recaptchaPrivateKey" id="recaptchaPrivateKey_input" value="', !empty($modSettings['recaptcha_private_key']) ? $modSettings['recaptcha_private_key'] : '', '" size="40" maxlength="40" />
</td>
</tr><tr class="windowbg2" valign="top">
<td colspan = "2" align="center">',
$txt['recaptcha_no_key_question'],' <a href="http://recaptcha.net/api/getkey?app=recaptcha_for_smf&amp;domain=', $_SERVER['SERVER_NAME'], '">', $txt['recaptcha_get_key'], '</a>
</td>
</tr><tr class="windowbg2">
<td width="100%" colspan="2" align="center">
<hr />
</td>
Title: Re: reCAPTCHA for SMF
Post by: myaicons on February 05, 2008, 10:55:05 AM
great Mod! it installed perfectly for me...

but is anyone else having the "done but with errors on page" ? (java)

i also get this on my error log:

8: Undefined index: recaptcha_enabled
File: /home/content/html/sforum/Sources/Register.php
Line: 137



Title: Re: reCAPTCHA for SMF
Post by: deadpoeticstar on February 12, 2008, 01:01:34 PM
file is coming back as corrupted or invalid for this release
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 12, 2008, 10:45:23 PM
Versions 0.9 and 0.9.5 both worked fine here. Can you try re-downloading?
Title: Re: reCAPTCHA for SMF
Post by: res6cue on March 20, 2008, 10:18:40 AM
Please update this mod to work with 2.0 Beta 3 and beyond!  I would hate to have to go back to the horrible native SMF image verification!  Thanks!
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 20, 2008, 10:49:49 AM
It will be done as soon as I can find time.

It was quietly updated for 2.0 beta 2, so you could try using the latest posted version and see if it installs with the version_emulate trick.
Title: Re: reCAPTCHA for SMF
Post by: cgoodwin73 on May 29, 2008, 02:47:57 PM
Just upgraded my boss' SMF from 1.1 RC2 to 1.1.5, then applied reCAPTCHA - everything looks good!

Thanks for the effort, Motoko-chan - the plain-language challenge words, plus audio challenge option, will make a big difference to the elderly visitors we serve.

Chris
Title: Re: reCAPTCHA for SMF
Post by: Nick.123 on June 04, 2008, 09:44:14 PM
Anyway to fix text colour on input box so the text will show up on black backgrounds

(http://img171.imagevenue.com/img.php?image=30268_recaptcha_122_882lo.jpg)
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 14, 2008, 02:25:50 PM
Quote from: Nick.123 on June 04, 2008, 09:44:14 PM
Anyway to fix text colour on input box so the text will show up on black backgrounds

The Black Glass reCAPTCHA theme is made for display on dark pages, but if you want to use the default red theme, style the recaptcha_response_field id.

Examples:

/* White text on black background */
#recaptcha_response_field
{
  background-color: #000000;
  color: #ffffff
}

/* Black text on white background */
#recaptcha_response_field
{
  background-color: #ffffff;
  color: #000000
}
Title: Re: reCAPTCHA for SMF
Post by: Mo786 on June 29, 2008, 09:03:38 PM
I couldn't get this to work. My register.template.php failed the test and when I followed your directions of doing it manually and installed the mod, it gave me some error on the registration page. Anyway on fixing this?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 29, 2008, 10:06:42 PM
Are you using a custom template for the registration? What version of SMF?
Title: Re: reCAPTCHA for SMF
Post by: Mo786 on June 29, 2008, 11:25:43 PM
SMF 1.1.5. I'm using a custom theme but it doesn't have its own register.template.php so it uses the default themes.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 30, 2008, 12:13:16 AM
Any other mods that might affect the template?
Title: Re: reCAPTCHA for SMF
Post by: Mo786 on June 30, 2008, 02:07:32 AM
Well the only other mod that probably edited the register.template.php before was the referral mod and thats about it. Nothing else.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 01, 2008, 01:49:18 AM
Attach a copy of the file please and I'll see what I can do to get the code in there. I'm a bit busy with work, but I'll try to fit it in.
Title: Re: reCAPTCHA for SMF
Post by: Mo786 on July 01, 2008, 09:56:03 AM
Here it is.
Title: Re: reCAPTCHA for SMF
Post by: vhs on July 11, 2008, 09:55:21 AM
Hello, is there any chance to add reCaptcha to guest posting and guest searching ?
I think it will be very usefull on forums where guest writing is allowed.

Best regards.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 16, 2008, 05:26:38 PM
786Fighter, here is the file. It applied just fine manually, and there weren't changes from the search that I could see. The only possible thing I can think of is a change in line endings or spacing.

Remember to make a backup of the old file before putting this up.

Quote from: vhs on July 11, 2008, 09:55:21 AM
Hello, is there any chance to add reCaptcha to guest posting and guest searching ?
I think it will be very usefull on forums where guest writing is allowed.

It's a great thought, but I haven't had a chance to extend it yet. If so, it would depend on Visual Verification Options to be installed (for support on guest posts and searches in 1.1). If you don't mind a weaker test, use Visual Verification Options directly.
Title: Re: reCAPTCHA for SMF
Post by: EdwinK on July 25, 2008, 05:08:01 AM
Quote from: Motoko-chan on July 16, 2008, 05:26:38 PM
786Fighter, here is the file. It applied just fine manually, and there weren't changes from the search that I could see. The only possible thing I can think of is a change in line endings or spacing.

Remember to make a backup of the old file before putting this up.

Since I'm haveing the same problems as 786Fighter, thought I would try the same attachment, but no luck :( Using a theme without its own Register template. It is using the defaults one.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 25, 2008, 05:50:04 PM
Before I do another manual edit, a few questions:

Did the mod install cleanly, or did you get an error?
If it installed cleanly, have you properly configured the reCAPTCHA settings? (Public and Private keys, enabled it, etc)
Title: Re: reCAPTCHA for SMF
Post by: p4ppo on July 29, 2008, 06:56:30 AM
Hello!
This is a great add-on, i have it installed also in my vbb forum, but i'm getting some problems with it in SMF, especially because of a translation...

I would like to konw how to operate in this case... i want to change manually the script to have it installed.

When i try to install the mod i have this situation
Type  Action         Description
1.   Do modify ./Sources/ManageRegistration.php                      Installation successfull
2.   Do modify ./Sources/Register.php                               Installation successfull
3.   Do modify ./Themes/default/Register.template.php         Installation successfull
4.   Do modify ./Themes/default/languages/Modifications.english.php       Installation successfull
5.   Do modify ./Themes/default/languages/Modifications.english-utf8.php File skipped
6.   Do modify ./Themes/default/languages/Modifications.english_british.php File skipped
7.   Do modify ./Themes/default/languages/Modifications.english_british-utf8.php     File skipped
8.   Extract file ./Sources/recaptchalib.php


So i presume the mod does not find my "english" files...
How cai i modify it to have it point to the right "italian" language files?

Thank you in advance
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 29, 2008, 10:47:53 AM
Copy the lines the modification added to Modifications.english.php to Modifications.italian.php (or whatever yours happens to be called) and that will work. You can edit those lines to be in Italian if you would like.
Title: Re: reCAPTCHA for SMF
Post by: God Of Mana on August 05, 2008, 03:56:48 PM
Some files needed a manual, and then everything  worked fine.
Title: Re: reCAPTCHA for SMF
Post by: Kenderama on August 18, 2008, 03:56:21 AM
Motoko-chan - first off thanks for this mod. :) Very nice to use, and pretty simple to install.

However I'm getting the same problem as someone last page - reCaptcha shows as a black text on black field, and I can't figure out where to put your code from earlier:

Quote from: Motoko-chan on June 14, 2008, 02:25:50 PM
The Black Glass reCAPTCHA theme is made for display on dark pages, but if you want to use the default red theme, style the recaptcha_response_field id.

Examples:

/* White text on black background */
#recaptcha_response_field
{
  background-color: #000000;
  color: #ffffff
}

/* Black text on white background */
#recaptcha_response_field
{
  background-color: #ffffff;
  color: #000000
}


Does this go in Register.template.php? On my WoW-themed board (uses the default Register.template.php, attached) it has the input field text black on black. If I highlight, text I type shows up.

I'll keep poking at it though. Thanks again for any help. :)
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 18, 2008, 10:42:08 AM
That is CSS. It goes in your theme's CSS file.
Title: Re: reCAPTCHA for SMF
Post by: grknzsy on September 18, 2008, 04:19:14 PM
Caps:



Turkish and Turkish-utf8 translations,

$languagedir/Modifications.turkish.php Dosyasında
Dosyanın Sonuna Ekle:


//reCAPTCHA for SMF
$txt['recaptcha_enable'] = 'reCAPTCHA Görsel Onay Sistemini Kullan';
$txt['recaptcha_theme'] = 'reCAPTCHA Teması';
$txt['recaptcha_theme_clean'] = 'Sade';
$txt['recaptcha_theme_blackglass'] = 'Siyah';
$txt['recaptcha_theme_red'] = 'Kırmızı';
$txt['recaptcha_theme_white'] = 'Beyaz';
$txt['recaptcha_public_key'] = 'reCAPTCHA Genel Anahtar';
$txt['recaptcha_private_key'] = 'reCAPTCHA Özel Anahtar';
$txt['recaptcha_no_key_question'] = 'reCAPTCHA için anahtarınız yok mu?';
$txt['recaptcha_get_key'] = 'reCAPTCHA Anahtarınızı buraya tıklayarak alabilirsiniz.';


$languagedir/Modifications.turkish-utf8.php Dosyasında
Dosyanın Sonuna Ekle:


//reCAPTCHA for SMF
$txt['recaptcha_enable'] = 'reCAPTCHA Gorsel Onay Sistemini Kullan';
$txt['recaptcha_theme'] = 'reCAPTCHA Temasi';
$txt['recaptcha_theme_clean'] = 'Sade';
$txt['recaptcha_theme_blackglass'] = 'Siyah';
$txt['recaptcha_theme_red'] = 'Kirmizi';
$txt['recaptcha_theme_white'] = 'Beyaz';
$txt['recaptcha_public_key'] = 'reCAPTCHA Genel Anahtar';
$txt['recaptcha_private_key'] = 'reCAPTCHA Ozel Anahtar';
$txt['recaptcha_no_key_question'] = 'reCAPTCHA icin anahtariniz yok mu?';
$txt['recaptcha_get_key'] = 'reCAPTCHA Anahtarinizi buraya tiklayarak alabilirsiniz.';


Thanks...
Title: Re: reCAPTCHA for SMF
Post by: Sudhakar Arjunan on November 03, 2008, 11:54:19 AM
Motoko-chan am really very thank full to you.

Without any reasons i have got the registration verification image broke.

Hope i have installed some mod, which forced not to show the verification image.

http://www.simplemachines.org/community/index.php?topic=271903.0

Then i have changed the admin settings to not shows recaptcha.

You know i got more than 20 - 25 invalid registrations within 1 hour.

Then i have found your mod, and now am happy that its working fine.

One bad thing is , i dont know how to fix the earlier problem.
Title: Re: reCAPTCHA for SMF
Post by: genieuk on November 03, 2008, 12:07:57 PM
WOW! I seen another forum with this and wanted to know how they had a better CAPTCHA,

Thanks going to install very soon  :D
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 03, 2008, 12:29:10 PM
Quote from: A.SK on November 03, 2008, 11:54:19 AM
One bad thing is , i dont know how to fix the earlier problem.

The usual issue is that you inserted code or other space at the top of your file. This corrupts the image when it is displayed. If the problem site is the one in your profile, you have a blank line at the top that is likely causing the problem. For further support on the issue, please open a topic in our support board.

Quote from: genieuk on November 03, 2008, 12:07:57 PM
WOW! I seen another forum with this and wanted to know how they had a better CAPTCHA,

It isn't better, it is just different. The built-in image verification is very good, but some people have trouble with it due to server problems or readability issues. This mod offers an alternative.
Title: Re: reCAPTCHA for SMF
Post by: genieuk on November 03, 2008, 12:41:53 PM
Well I know it does the same thing but much better in different ways.

I have installed this and it works perfectly. I love when people bring up old posts. You find some amazing mods hidden deep within the pages  ;D

Thank you Ever So Much  :D

Mathew
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 03, 2008, 01:17:02 PM
Quote from: genieuk on November 03, 2008, 12:41:53 PM
I have installed this and it works perfectly. I love when people bring up old posts. You find some amazing mods hidden deep within the pages 

You can also just browse the SMF Mod Site (http://custom.simplemachines.org/mods/) and look through items there.
Title: Re: reCAPTCHA for SMF
Post by: genieuk on November 03, 2008, 01:24:03 PM
Quote from: Motoko-chan on November 03, 2008, 01:17:02 PM
Quote from: genieuk on November 03, 2008, 12:41:53 PM
I have installed this and it works perfectly. I love when people bring up old posts. You find some amazing mods hidden deep within the pages 

You can also just browse the SMF Mod Site (http://custom.simplemachines.org/mods/) and look through items there.

I know, but so many pages of mods i usually give up after several pages lol. Must say i am really happy with this mod, something i really wanted, obviously we already had one but this is much more up my street. I will never turn back to the original.

Mathew

Title: Re: reCAPTCHA for SMF
Post by: Sudhakar Arjunan on November 03, 2008, 01:57:39 PM
Quote from: Motoko-chan on November 03, 2008, 12:29:10 PM
Quote from: A.SK on November 03, 2008, 11:54:19 AM
One bad thing is , i dont know how to fix the earlier problem.

The usual issue is that you inserted code or other space at the top of your file. This corrupts the image when it is displayed. If the problem site is the one in your profile, you have a blank line at the top that is likely causing the problem. For further support on the issue, please open a topic in our support board.


Yes i understood, i have almost done with a support forum.

http://www.simplemachines.org/community/index.php?topic=271903.0
Title: Re: reCAPTCHA for SMF
Post by: TeaTephi on November 15, 2008, 01:52:01 AM
Hi
Thanks for the Mod
After installing "ARe you human" and "Anti-Bot-Puzzles"  which changed register.template.php
then I tried installing this mod and got test failed, so then I tried your manual edits and now:
Template Parse Error!
There was a problem loading the /Themes/default/Register.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: parse error, unexpected $ in .../Themes/default/Register.template.php on line 867
858:    echo '
859:                // ]]></script>
860:             </td>
861:          </tr>
862:       </table>
863:       <input type="hidden" name="sc" value="', $context['session_id'], '" />
864:    </form>';
865: }
866:
867: ?>
868:
869:



um  one symbol may be the problem "}" was supposed to be added right before.  I actually have all this:

            </tr>';
   }}

   // Start of Anti-bot Registration Puzzles Mod
   echo '<tr valign="top">
            <td width="40%" valign="top">
               <b>'.$txt['puzzle_'.$context['puzzle'][0]].'</b><br />
               '.$txt['puzzle_antibot'].'
            </td>
            <td>
               '. ( empty($context['puzzle'][1]) ? '' : $context['puzzle'][1].'<br />' ) .'
               <input type="text" name="'.$context['puzzle'][2].'" size="30" value="" tabindex="', $context['tabindex']++, '" />
            </td>
      </tr>';
   // End of Anti-bot Registration Puzzles Mod

   // Start of Are You Human? mod
   echo '<tr valign="top">
         <td width="40%" valign="top">
            <b>', $txt['are_you_human'], ':</b>
            <div class="smalltext">', $txt['are_you_human_desc'], '</div>
         </td>
         <td>
            <select name="',$_SESSION['areyouhuman'],'" tabindex="', $context['tabindex']++, '" class="select">
               <option value="1">', $txt['are_you_human_no'], '</option>
               <option value="2">', $txt['are_you_human_unsure'], '</option>
               <option value="3">', $txt['are_you_human_yes'], '</option>
            </select>
         </td>
      </tr>';
   // End of Are You Human? mod

   // Are there age restrictions in place?
Title: Re: reCAPTCHA for SMF
Post by: Arturino on November 15, 2008, 11:56:52 PM
Hi Motoko-chan!
Thanks for the mod, it was really helpful against spambots!
One question:
After installing the mode every day I found many errors in the forum error log, related to recaptcha mod.

Guest       November 14, 2008, 12:40:07
194.165.42.81      3d6e7669da741a3878460dfc9545b0f1
http://www.forumname.com/forum/index.php?action=register2
8: Undefined index: recaptcha_challenge_field
File: /hsphere/local/home/arturino/forumname.com/forum/Sources/Register.php
Line: 184



Here is the line 184 from thr register.php:

      $resp = recaptcha_check_answer($modSettings['recaptcha_private_key'], $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);


Any comments?
Title: Re: reCAPTCHA for SMF
Post by: Kolya on November 16, 2008, 05:00:06 PM
Those are most likely those cases where a bot (or a human) enters the wrong code. Visual Verification Options logs similar errors.
It's uselessly bloating up the error log but that's probably not this mod's fault but due to how verification is implemented in SMF.

Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 16, 2008, 06:03:40 PM
TeaTephi, I can try and help you manually install in that file. Please attach a full copy.

Arturino, it is because it's checking a variable without checking the existence first. It's not a huge error (it's just a warning), but I'll see that it is fixed in a future release.
Title: Re: reCAPTCHA for SMF
Post by: TeaTephi on November 16, 2008, 06:10:28 PM
Thanks so much for taking a look at this for me.  I would love to have this mod.

One is working, the other is the one I tried to edit and got the error mentioned above (the larger file).

If you want to check my forum register page go to  MY SITE  (http://www.shepherdsdisciples.com)
Title: Re: reCAPTCHA for SMF
Post by: blondeamon on November 16, 2008, 09:05:25 PM
"The package you tried to upload either is not a valid package or has become corrupted. "

i use 1.1.7 , what could be the problem?
Title: Re: reCAPTCHA for SMF
Post by: blondeamon on November 18, 2008, 11:59:08 AM
bump
Title: Re: reCAPTCHA for SMF
Post by: Nibogo on November 18, 2008, 06:06:44 PM
spanish_latin:

//reCAPTCHA for SMF
$txt['recaptcha_configure'] = 'Sistema de Verificaci&oacute;n reCAPTCHA';
$txt['recaptcha_configure_desc'] = 'Usar el sistema de Verificaci&oacute; reCAPTCHA. No tienes una llave para reCAPTCHA? <a href="http://recaptcha.net/api/getkey?app=recaptcha_for_smf"> Consigue tu llave para reCAPTCHA aqui</a>.';
$txt['recaptcha_enable'] = 'Usar el sistema de verificaci&oacute;n reCAPTCHA';
$txt['recaptcha_enable_desc'] = '(Esto reemplaza el sistema de verificaci&oacute;n visual con reCAPTCHA)';
$txt['recaptcha_theme'] = 'Tema para reCAPTCHA';
$txt['recaptcha_theme_clean'] = 'Limpio';
$txt['recaptcha_theme_blackglass'] = 'Cristal Negro';
$txt['recaptcha_theme_red'] = 'Rojo';
$txt['recaptcha_theme_white'] = 'Blanco';
$txt['recaptcha_public_key'] = 'reCAPTCHA llave publica';
$txt['recaptcha_private_key'] = 'reCAPTCHA llave privada';
$txt['recaptcha_no_key_question'] = 'No tienes una llave para reCAPTCHA?';
$txt['recaptcha_get_key'] = 'Consigue tu llave para reCAPTCHA aqui.';
 


spanish_latin-utf8:

//reCAPTCHA for SMF
$txt['recaptcha_configure'] = 'Sistema de Verificaci&oacute;n reCAPTCHA';
$txt['recaptcha_configure_desc'] = 'Usar el sistema de Verificaci&oacute; reCAPTCHA. No tienes una llave para reCAPTCHA? <a href="http://recaptcha.net/api/getkey?app=recaptcha_for_smf"> Consigue tu llave para reCAPTCHA aqui</a>.';
$txt['recaptcha_enable'] = 'Usar el sistema de verificaci&oacute;n reCAPTCHA';
$txt['recaptcha_enable_desc'] = '(Esto reemplaza el sistema de verificaci&oacute;n visual con reCAPTCHA)';
$txt['recaptcha_theme'] = 'Tema para reCAPTCHA';
$txt['recaptcha_theme_clean'] = 'Limpio';
$txt['recaptcha_theme_blackglass'] = 'Cristal Negro';
$txt['recaptcha_theme_red'] = 'Rojo';
$txt['recaptcha_theme_white'] = 'Blanco';
$txt['recaptcha_public_key'] = 'reCAPTCHA llave publica';
$txt['recaptcha_private_key'] = 'reCAPTCHA llave privada';
$txt['recaptcha_no_key_question'] = 'No tienes una llave para reCAPTCHA?';
$txt['recaptcha_get_key'] = 'Consigue tu llave para reCAPTCHA aqui.';
 
Title: Re: reCAPTCHA for SMF
Post by: Sudhakar Arjunan on November 19, 2008, 02:35:19 PM
Quote from: Motoko-chan on November 03, 2008, 12:29:10 PM
Quote from: A.SK on November 03, 2008, 11:54:19 AM
One bad thing is , i dont know how to fix the earlier problem.

The usual issue is that you inserted code or other space at the top of your file. This corrupts the image when it is displayed. If the problem site is the one in your profile, you have a blank line at the top that is likely causing the problem. For further support on the issue, please open a topic in our support board.


I have found that, the User Cp mod had made default captcha to broke because of some white spaces in the code.

Now i was using the old default captcha only. But sometimes, i fot the recaptcha error. Even though its not used.

http://sitename.itacumens.com/index.php?action=register2
Apply Filter: Only show the errors with the same message
8: Undefined index: recaptcha_enabled
Apply Filter: Only show the errors from this file
File: /home/sitename/public_html/discuss/Sources/Subs-Editor.php
Line: 1500
Title: Re: reCAPTCHA for SMF
Post by: infocom on November 20, 2008, 05:02:48 AM
Sometimes I enter the wrong letter here and there in the words and it STILL registers me.

If I enter words totally wrong it picks up on this but when I hit Back to re-enter the right text I get the message "Sorry, you're not allowed to register multiple accounts at the same time from the same computer." - so this SMF feature is making it hard for me test it, AND will not allow people to correct the words if they make a mistake.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 20, 2008, 10:04:33 AM
If you read how reCAPTCHA works, you will realize why it lets you. The two words consist of a known word and an unknown word. You must get the known word correct or it will fail. The unknown word is quite unknown, so it won't know if you messed up. Once enough people agree on the unknown word it then goes into rotation as a known word. There is no way to tell which is which short of finding out by accident like you have.

The words shouldn't be corrected if you made a mistake, you'll get completely new words. It's the way that service works. For the multiple-registration part, report that in the main support board.
Title: Re: reCAPTCHA for SMF
Post by: vulcan59 on November 21, 2008, 09:08:15 PM
Hi all,

I installed reCaptcha and today in the error log I saw the following:

QuoteUndefined index: recaptcha_enabled
File: /home/content/html/sforum/Sources/Register.php
Line: 137

I then had a look through the files to see if I made any errors and I couldn't find any. The only mod I've installed is the SMF 1.1.7 security patch update and the Add IP2Location  to Track IP mod and no other.

I note that there is another person here having the same problem (page 2).

Can anyone shed some light on the issue?

Thanks and regards.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 21, 2008, 10:21:51 PM
It's just a small coding error. Enable and disable reCAPTCHA to get rid of it for right now.
Title: Re: reCAPTCHA for SMF
Post by: vulcan59 on November 22, 2008, 01:21:16 AM
Thanks Motoko-chan.
After I disabled recaptcha I cleared the forum log and after I enabled it again I am seeing the following errors in the log:-

Quote8: Undefined index: recaptcha_get_key
File: /mydomain/html/forum/Themes/default/Register.template.php (admin_settings sub template - eval?)
Line: 700

Quote8: Undefined index: recaptcha_no_key_question
File: /mydomain/html/forum/Themes/default/Register.template.php (admin_settings sub template - eval?)
Line: 700

Quote8: Undefined index: recaptcha_private_key
File: /mydomain/html/forum/Themes/default/Register.template.php (admin_settings sub template - eval?)
Line: 693

Quote8: Undefined index: recaptcha_public_key
File: /mydomain/html/forum/Themes/default/Register.template.php (admin_settings sub template - eval?)
Line: 686

Quote8: Undefined index: recaptcha_theme_white
File: /mydomain/html/forum/Themes/default/Register.template.php (admin_settings sub template - eval?)
Line: 681

Quote8: Undefined index: recaptcha_theme_red
File: /mydomain/html/forum/Themes/default/Register.template.php (admin_settings sub template - eval?)
Line: 680

Now this goes on for two pages.

Now what???

Title: Re: reCAPTCHA for SMF
Post by: vulcan59 on November 22, 2008, 01:41:56 AM
Apologies, now I checked again a few minutes later and there are no more errors anymore!!!! ;D

I am hoping that that is the last time I see that error.

Thank you once again.
Title: Re: reCAPTCHA for SMF
Post by: 2072 on November 22, 2008, 01:45:57 AM
I got a problem with my forum theme, it's dark and the reCAPTCA input field is not set to a correct style and so you can't see what you type...

here is my site: http://www.wow-horizon.org/smf/index.php?action=register

another unrelated issue I noticed with GOOGLE Chrome: when you enter a wrong recaptcha and hit 'return' all the fields except for the passwords keep there values and it seems that the hidden challenge code field too... as a result you will never be able to type a matching code since it will be always compared to the first... unless you refresh the page. (I don't know if it's related to Chrom or to your implementation of reCAPTCHA)
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 22, 2008, 01:54:48 AM
Quote from: 2072 on November 22, 2008, 01:45:57 AM
I got a problem with my forum theme, it's dark and the reCAPTCA input field is not set to a correct style and so you can't see what you type...

Add the following style rule to your theme:


.recaptchatable input {
color: #ffffff;
}



Quote from: 2072 on November 22, 2008, 01:45:57 AM
another unrelated issue I noticed with GOOGLE Chrome: when you enter a wrong recaptcha and hit 'return' all the fields except for the passwords keep there values and it seems that the hidden challenge code field too... as a result you will never be able to type a matching code since it will be always compared to the first... unless you refresh the page. (I don't know if it's related to Chrom or to your implementation of reCAPTCHA)

Sounds like a Chrome bug to me. Try the test on their site (http://recaptcha.net/learnmore.html) and see if you get the same behavior.
Title: Re: reCAPTCHA for SMF
Post by: 2072 on November 22, 2008, 03:34:23 AM
in fact I had to add !important ('color: #fff !important;')  to the 'input' color stylesheet of my smf default theme, strange, I couldn't find what was setting the input text color to black...

QuoteSounds like a Chrome bug to me. Try the test on their site and see if you get the same behavior.

nope it's working there but it's not the same since it's using dynamic script instead of a HTTP POST...

I've added this to register.template.php:


var RecaptchaOptions = {
theme : \'', empty($modSettings['recaptcha_theme']) ? 'clean' : $modSettings['recaptcha_theme'] , '\',
lang : \'fr\',
tabindex : \'', $context['tabindex'] , '\',
};


(I've added the lang and the tabindex entries,)
You should implement this and change 'fr' to the correct language depending on user settings :)
Title: Re: reCAPTCHA for SMF
Post by: vulcan59 on November 22, 2008, 04:22:48 PM
Hi Motoko-chan

Okay this morning I had a person register and here is the error log that I saw:

Quote8: Undefined index: recaptcha_enabled
File: /mydomain/html/forum/Sources/Register.php
Line: 179
?action=register2

Quote8: Undefined index: recaptcha_enabled
File: /mydomain/html/forum/Sources/Register.php
Line: 179
?action=register2

and

Quote8: Undefined index: recaptcha_enabled
File: /mydomain/html/forum/Sources/Register.php
Line: 137
?action=register

So now what do I do? Any suggestions?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 22, 2008, 09:40:08 PM
What version of SMF are you using? This weekend is very busy, but I'll try to get in a fix for it.
Title: Re: reCAPTCHA for SMF
Post by: vulcan59 on November 22, 2008, 09:51:26 PM
Quote from: Motoko-chan on November 22, 2008, 09:40:08 PM
What version of SMF are you using? This weekend is very busy, but I'll try to get in a fix for it.

Version 1.1.7 and SMF 1.1.7 update patch and AddIP2 location mods installed and no other mods. Also using ApolloBB theme.  :'(
Title: Re: reCAPTCHA for SMF
Post by: TeaTephi on November 22, 2008, 10:59:34 PM
Hi Motoko-chan
Please don't Forget about me  (http://www.simplemachines.org/community/index.php?topic=213535.msg1801646#msg1801646) :)
Patiently waiting
Tea
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 23, 2008, 03:37:03 AM
TeaTephi, I didn't forget about you. This flood of support just came at a really bad time for me. I have a lot going on at work (I'm a sysadmin and some of my work has to be done outside the office hours too), have new duties as a project manager here, and have a few other projects to support on top of some family issues. I'm really trying to fit stuff in.

Right now, bed. When I wake up, I'll see how quickly I can go through the support issues posted here.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 23, 2008, 10:54:55 PM
TeaTephi, please try the attached.

For everyone else waiting, I'll try to get to you as soon as I can. This weekend turned from a quiet one to me needing to do a bunch of family stuff.
Title: Re: reCAPTCHA for SMF
Post by: TeaTephi on November 23, 2008, 11:33:56 PM
Motoko-chan you did it!

It works great!  Even my googlebots mod is working now!  You must have the magic touch.

Thanks a million.  Hope your work load lightens up for you.

Tea
Title: Re: reCAPTCHA for SMF
Post by: Zepia1 on November 23, 2008, 11:54:18 PM
I just installed this mod, got my keys and everything seems fine, but people can create new accounts, even though they type the captcha right it shows that it's not right, I even tried to do one myself and it didn't work!

Any help on this?
Title: Re: reCAPTCHA for SMF
Post by: TeaTephi on November 24, 2008, 12:12:36 AM
Did you get the key?  You have to go to their website and get a long number/letter public key, and put it in your admin settings under registration.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 24, 2008, 01:20:48 AM
Make sure the key is correct. I recommend a direct copy/paste. Also, try requesting a new image after the first one loads and see if that helps.
Title: Re: reCAPTCHA for SMF
Post by: Zepia1 on November 25, 2008, 12:49:53 AM
I got it working, I guess i copied an extra space off the keys or something.
Title: Re: reCAPTCHA for SMF
Post by: unleashedmaniac on November 28, 2008, 02:47:29 PM
I'm having a problem with the installation and I have not seen it discussed in the thread.   I'm pretty new to SMF, so it might be a simple fix.

When I installed reCAPTCHA, it said that it installed ok and when I spot checked the updates in the ManageRegistration.php, Register.php, etc., files, they seem to be correct.

The problem I'm having is that when I got to ADMIN > REGISTRATION > SETTINGS, the section where you enter your public/private keys, none of the form fields are labeled. (See attached photo.)

(http://www.freeimagehosting.net/image.php?ed63411157.jpg)
Click to enlarge.

Also, I uninstalled reCAPTCHA and installed the "Anti-Spam Verification Questions" mod and got the same thing, just a bunch of form fields, but no labels. (See attached photo.)

(http://www.freeimagehosting.net/image.php?184d4aa092.jpg)
Click to enlarge.

I'm running SMF 1.1.7 with mod "SMF 1.0.15 / 1.1.7 Update".  Theme style Autumn.

Thanks for the help.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 28, 2008, 02:48:51 PM
Check the language you are using. You might be using the UTF-8 English files, and the strings might not have been installed.
Title: Re: reCAPTCHA for SMF
Post by: vulcan59 on November 28, 2008, 02:55:56 PM
Hi Motoko-chan,

Apologies for asking again. Any updates yet? I am still getting the errors I mentioned earlier everytime someone registers. Everything works okay except that I keep getting the same re-captcha errors:

QuoteUndefined index: recaptcha_enabled
File: /mydomain/html/forum/Sources/Register.php
Line: 137
?action=register
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 28, 2008, 03:06:45 PM
Sorry, I haven't found time to make the code updates yet.
Title: Re: reCAPTCHA for SMF
Post by: unleashedmaniac on November 28, 2008, 03:16:04 PM
Quote from: Motoko-chan on November 28, 2008, 02:48:51 PM
Check the language you are using. You might be using the UTF-8 English files, and the strings might not have been installed.

How do I check the languages that I'm using?  I went to Admin > Server Settings > and under Default forum language it just says "English"?

Title: Re: reCAPTCHA for SMF
Post by: vulcan59 on November 28, 2008, 03:31:06 PM
Quote from: Motoko-chan on November 28, 2008, 03:06:45 PM
Sorry, I haven't found time to make the code updates yet.

No worries. Will wait.

Thanks.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 28, 2008, 03:47:07 PM
unleashedmaniac, do you have more than one language you can select?
Title: Re: reCAPTCHA for SMF
Post by: unleashedmaniac on November 28, 2008, 04:15:58 PM
Quote from: Motoko-chan on November 28, 2008, 03:47:07 PM
unleashedmaniac, do you have more than one language you can select?

Nope, English is the only item in the select box.
Title: Re: reCAPTCHA for SMF
Post by: cynicle on November 29, 2008, 04:11:30 AM
I'm having the same problem as Zepia1, the reCAPTURE verification box is showing up on the registration screen but no matter how many times I try (I have tried at least 30 individual images) I recieve the error "The letters you typed don't match the letters that were shown in the picture.".

I installed the package (0.9.5.3) everything went smoothly and then manually added your code to register.template.php (as I am not using the defaut theme) and that too seemed to go smoothly.
I enabled reCAPTCHA in the registration settings and copy and pasted my Keys making sure there were no spaces at the beginning or end.

I have looked over it many times and cannot see why I keep getting these problems (I'm guessing either the default image verification check is still functioning or the server is responding with the wrong correct answers for reCAPTURE). Any help would be great!

Thanks
Title: Re: reCAPTCHA for SMF
Post by: cynicle on November 29, 2008, 04:12:46 AM
I have attached the file Register.template.php which I modified manually.
Title: Re: reCAPTCHA for SMF
Post by: Blinker on December 01, 2008, 02:03:43 AM
Nice mode, thanks.

Quick question: I've changed the box colour to "black glass" to suit my dark theme. Problem is it only shows the correct colouring in Firefox and Seamonkey. IE still shows the default yellow, red and white box.

Any ideas?

Oh, one more thing - I added your

.recaptchatable input {
color: #ffffff;
}

to my dark theme stylesheet and the text now shows up white in IE (with the default colours) but it's still black (invisible) on the darker black glass colouring in FF and seamonkey.

Any ideas?
Title: Re: reCAPTCHA for SMF
Post by: ~kev~ on December 14, 2008, 08:13:20 PM
Great modification, I have it installed on 2 sites.

But on one site, in admin control panel - Registration - settings - all of the Recaptcha lines are blank.  Just like the problem that unleashedmaniac is having.  I have only one langauge file installed and only 2 other modifications.  The install did not report any errors.
Title: Re: reCAPTCHA for SMF
Post by: cynicle on December 14, 2008, 10:04:30 PM
Got it working with new keys, thanks heaps system is awesome.
Title: Re: reCAPTCHA for SMF
Post by: unleashedmaniac on December 15, 2008, 11:07:19 AM
Quote from: ~kev~ on December 14, 2008, 08:13:20 PM
Great modification, I have it installed on 2 sites.

But on one site, in admin control panel - Registration - settings - all of the Recaptcha lines are blank.  Just like the problem that unleashedmaniac is having.  I have only one langauge file installed and only 2 other modifications.  The install did not report any errors.


Kev, I still have not found a resolution to my problem either. 

Title: Re: reCAPTCHA for SMF
Post by: PeeaichpeeBB on December 18, 2008, 09:43:11 AM
Quote from: karlbenson on December 29, 2007, 10:02:18 AM
your helping to digitise books.

When scanning book and trying to use OCR, it is very imperfect and makes tonnes of mistakes.
So reCaptcha are using humans to translate what the letters are, as a byproduct of passing a validation test.

?? that makes no sense at all, besides, the procedure will be so noisy, there will be tons of errors to sift through
Title: Re: reCAPTCHA for SMF
Post by: farzad on December 18, 2008, 10:47:44 AM
Quote from: unleashedmaniac on November 28, 2008, 04:15:58 PM
Quote from: Motoko-chan on November 28, 2008, 03:47:07 PM
unleashedmaniac, do you have more than one language you can select?

Nope, English is the only item in the select box.

when i changed my language to English or English-UTF8 this fixed my installation problem.  just fyi.

I had to chmod Settings.php to 777 - change the language then chmod Settings.php back to 755

hope this helps
Title: Re: reCAPTCHA for SMF
Post by: ~kev~ on December 20, 2008, 12:07:26 AM
I got the problem fixed.  I reverted back to the default template, the recaptcha settings where then visible.  Made the changes I needed, then reverted back to the custom template.  And everything worked.
Title: Re: reCAPTCHA for SMF
Post by: gianko82 on December 23, 2008, 07:40:53 AM
Hi,
First of All, thanks for this mod, I think it's I need to front the always increasin number of spambotswhich are resistering to my forum. Unfortunately I haven't tried it yet because of an installation error in Register.template.php.
Maybe some ather MOD that I have already installed? But I don't think that the Mods That I have can affect the Register template.
there's my register template file, can you help me? thanks
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on December 27, 2008, 10:58:40 PM
Everyone having issues with the errors in the error log, please uninstall 0.9.5.3 and install 0.9.5.4 (uploaded just now). It resolves those issues.
Title: Re: reCAPTCHA for SMF
Post by: gianko82 on December 27, 2008, 11:07:35 PM
I have always the same installation error in the Register.template.php  :( ::)
(smf 1.1.7)
Title: Re: reCAPTCHA for SMF
Post by: gianko82 on December 28, 2008, 01:14:04 PM
Quote from: gianko82 on December 27, 2008, 11:07:35 PM
I have always the same installation error in the Register.template.php  :( ::)
(smf 1.1.7)
OOK I found the bug... I had "custom profile field" mod with some fields shown in the registration... so they changed my register template... I went to search manually the "to be edited" parts of the template and I installed it!
Now I'm waiting to get a reCaptcha Key... the site seems to be too slow  ::)
Title: Re: reCAPTCHA for SMF
Post by: vulcan59 on December 28, 2008, 05:44:11 PM
Hi Motoko-chan,

I carried out a manual mod since I couldn't un-install the previous installation and I am glad to report that there are no more problems.   :)

Thanks so much.

Happy New year
Title: Re: reCAPTCHA for SMF
Post by: Ferkel on December 30, 2008, 09:48:51 AM
Hello to all!
I've install this great plug-in.
It works fine in Firefox, Safari, Opera, Chrome browsers, but did not work in IE 6/7 ? :-[
Is it possible to resolve some how?
Thank you!

P.S. My forum's registration URL (http://forum.seat-club.kiev.ua/index.php?action=register)
Title: Re: reCAPTCHA for SMF
Post by: krick on December 30, 2008, 02:56:38 PM
I'm having issues with my site's color scheme.  For some reason, the reCAPTCHA input box has black text and it's almost unreadable.  Is there something I can change in my CSS to fix this?

Also, on IE7, it ignores my choice of reCAPTCHA theme and always uses the red one.

EDIT:  one more thing...  My page doesn't validate cleanly...
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.tankadin.com%2Findex.php%3Foption%3Dcom_smf%26Itemid%3D39%26action%3Dregister


My registration page...
http://www.tankadin.com/index.php?option=com_smf&Itemid=39&action=register

Here's what each reCAPTCHA theme looks like...




Title: Re: reCAPTCHA for SMF
Post by: krick on December 30, 2008, 04:48:00 PM
I figured out how to fix the edit box color.
You have to force it in the SMF theme style.css file...


#recaptcha_response_field
{
       background-color: white !important;
       color: black !important;
}


The other problems are still present...

1) IE7 not using chosen reCAPTCHA theme

2) html validation errors

EDIT: I've managed to fix some of the validation errors by editing Register.template.php, but I'm having trouble getting the last few without breaking the template parser.  I'll keep hacking on it.
Title: Re: reCAPTCHA for SMF
Post by: krick on December 30, 2008, 07:39:47 PM
I think I've fixed all the validation errors (changes are in red)...

Quote
if ($context['use_recaptcha'])
{
  echo '
        <script type="text/javascript">
          var RecaptchaOptions = {
            theme : \'', empty($modSettings['recaptcha_theme']) ? 'clean' : $modSettings['recaptcha_theme'] , '\',
          };
        </script>
       
        <script type="text/javascript"
          src="http://api.recaptcha.net/challenge?k=', $modSettings['recaptcha_public_key'], '">
        </script>

        <noscript>
            <iframe src="http://api.recaptcha.net/noscript?k=', $modSettings['recaptcha_public_key'], '"
              height="300" width="500" frameborder="0"></iframe><br />
            <textarea name="recaptcha_challenge_field" rows="3" cols="40">
            </textarea>
            <input type="hidden" name="recaptcha_response_field"
              value="manual_challenge" />
        </noscript>
      </td>
    </tr>
';
}
Title: Re: reCAPTCHA for SMF
Post by: vulcan59 on December 31, 2008, 03:25:37 PM
Hi Motoko-chan,

I've installed and using reCaptcha with no errors whatsoever. However, I have a question.

It was brought about by krick's reCaptcha theme pics. Mine does not look like that. Infact it looks "normal". I've attached an image.

What should the reCaptcha theme look like after the mod is installed?
Title: Re: reCAPTCHA for SMF
Post by: krick on December 31, 2008, 03:32:49 PM
Quote from: vulcan59 on December 31, 2008, 03:25:37 PM
Hi Motoko-chan,

I've installed and using reCaptcha with no errors whatsoever. However, I have a question.

It was brought about by krick's reCaptcha theme pics. Mine does not look like that. Infact it looks "normal". I've attached an image.

What should the reCaptcha theme look like after the mod is installed?



You need to "turn it on"...



Note that I probably should set the default SMF visual verification to "Disabled".  I didn't notice that until I made the screen shot.  That might have been the source of some of my html validation errors previously.

It would be nice if when you installed reCapcha, it replaced the default visual verification controls in the settings screen.  Or at least made it clear that it is a one-or-the-other situation so dummies like me don't mistakenly leave them both enabled.
Title: Re: reCAPTCHA for SMF
Post by: vulcan59 on December 31, 2008, 05:10:45 PM
Ahh ha. Thanks krick. So simple and I overlooked it.

Best regards and Happy New Year.

Cheers.
Title: Re: reCAPTCHA for SMF
Post by: Gargoyle on December 31, 2008, 07:26:34 PM
Quote from: Motoko-chan on December 27, 2008, 10:58:40 PM
Everyone having issues with the errors in the error log, please uninstall 0.9.5.3 and install 0.9.5.4 (uploaded just now). It resolves those issues.

Is there a manual update I could do... I had to install this manually and would like the errors I get to stop.. So maybe just an idea of what was changed would work out for me...

Thanks!
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on December 31, 2008, 09:24:17 PM
Quote from: krick on December 31, 2008, 03:32:49 PM
Note that I probably should set the default SMF visual verification to "Disabled".  I didn't notice that until I made the screen shot.  That might have been the source of some of my html validation errors previously.

It would be nice if when you installed reCapcha, it replaced the default visual verification controls in the settings screen.  Or at least made it clear that it is a one-or-the-other situation so dummies like me don't mistakenly leave them both enabled.

You don't want to disable SMF's built-in, it will disable both, IIRC (i'd have to check to be 100% sure). In fact, you shouldn't have needed that table closing code. Are you using a modified or custom theme?


Quote from: Gargoyle on December 31, 2008, 07:26:34 PM
Is there a manual update I could do... I had to install this manually and would like the errors I get to stop.. So maybe just an idea of what was changed would work out for me...

If you are using 1.1.x, just search ManageRegistration for 'recaptcha_enable' and change to 'recaptcha_enabled'.

I changed quite a bit for the 2.0 stuff, so I'd need to run a diff for that.
Title: Re: reCAPTCHA for SMF
Post by: krick on January 01, 2009, 01:31:31 AM
Quote from: Motoko-chan on December 31, 2008, 09:24:17 PM
Quote from: krick on December 31, 2008, 03:32:49 PM
Note that I probably should set the default SMF visual verification to "Disabled".  I didn't notice that until I made the screen shot.  That might have been the source of some of my html validation errors previously.

It would be nice if when you installed reCapcha, it replaced the default visual verification controls in the settings screen.  Or at least made it clear that it is a one-or-the-other situation so dummies like me don't mistakenly leave them both enabled.

You don't want to disable SMF's built-in, it will disable both, IIRC (i'd have to check to be 100% sure). In fact, you shouldn't have needed that table closing code. Are you using a modified or custom theme?

I've got the SMF default visual verification turned off and I just successfully registered a test user with no issues.  Just to be sure, I deliberately typed the visual verification words wrong the first time to make sure that it was actually using the reCaptcha...





I'm using a custom theme, but the only source files that are modified for my theme are:

Display.template.php
index.php
index.template.php
style.css

My theme uses the default theme's copy of Register.template.php
Title: Re: reCAPTCHA for SMF
Post by: krick on January 01, 2009, 03:05:40 AM
In order to rule out any user error on my part, or conflicts with themes or other mods, I did a fresh SMF 1.1.7 installation, left the default theme, and only installed reCAPTCHAforSMF_0-9-5-4.tar.gz.

I did four tests, exercising every combination of captcha/reCAPTCHA verification, illustrated here...

Test 1 - no captcha


Test 2 - smf captcha


Test 3 - reCAPTCHA


Test 4 - smf captcha AND reCAPTCHA


HTML Validation Restults:
Test1 - no errors
Test2 - no errors
Test3 - 18 errors
Test4 - 18 errors

Here's the link to the registration page for test4:
http://testsmfrecaptcha.tankadin.com/smf/index.php?action=register

Here's the W3 Validator results for test4:
http://validator.w3.org/check?uri=http%3A%2F%2Ftestsmfrecaptcha.tankadin.com%2Fsmf%2Findex.php%3Faction%3Dregister

So, the only time when the html doesn't validate is when I've got the reCAPTCHA box checked.
Title: Re: reCAPTCHA for SMF
Post by: vulcan59 on January 01, 2009, 03:58:38 PM
FWIW, same here. I've got the visual verification disabled and reCaptcha enable and I had a new user register with no errors whatsoever.
Title: Re: reCAPTCHA for SMF
Post by: Gargoyle on January 01, 2009, 06:25:54 PM
Quote from: Motoko-chan on December 31, 2008, 09:24:17 PM
Quote from: Gargoyle on December 31, 2008, 07:26:34 PM
Is there a manual update I could do... I had to install this manually and would like the errors I get to stop.. So maybe just an idea of what was changed would work out for me...

If you are using 1.1.x, just search ManageRegistration for 'recaptcha_enable' and change to 'recaptcha_enabled'.

I changed quite a bit for the 2.0 stuff, so I'd need to run a diff for that.

Worked perfectly thank you!
Title: Re: reCAPTCHA for SMF
Post by: mkress on January 02, 2009, 04:37:58 AM
this line in code:
if($_POST["recaptcha_response_field"]) //Check the input if this exists, if it doesn't, then the user didn't fill it out.
should be changed to:
if(isset($_POST["recaptcha_response_field"])) //Check the input if this exists, if it doesn't, then the user didn't fill it out.

otherwise it will give an PHP-WARNING in some circumstances..
Title: Re: reCAPTCHA for SMF
Post by: Blinker on January 02, 2009, 11:02:17 PM
I mentioned this earlier in this thread and it's the same issue that krick is having:

IE7 will NOT use the selected reCAPTCHA theme!

It defaults to the original with red, yellow and white.

My selected theme is Black Glass as I use a dark background theme and it suits it way more. Seamonkey & FF display the correct theme but I haven't had a chance to test Opera, Chrome or others. IE definitely doesn't want to comply!!!

Any ideas, or would this request be better sent to the reCAPTCHA team?
Title: Re: reCAPTCHA for SMF
Post by: Gargoyle on January 04, 2009, 11:19:18 AM
8: Undefined index: recaptcha_challenge_field
File: /Sources/Register.php
Line: 183

I am getting this error presently. Like mentioned above I had to manually install this so if possible a manual fix would be appreciated.

Thanks!
Title: Re: reCAPTCHA for SMF
Post by: SoKoOLz on January 16, 2009, 08:27:08 PM
Hi,

Thank you for making this mod.
However, Ive been having been getting some issues after installing this mod.

It seems all the installation process was fine, but after I've finished the installation, I will only see the sections of the mod inside the admin page but i don't see al the text and captions of the mod.

Quote
   Type     Action     Description
1.    Execute Modification    ./Sources/ManageRegistration.php    Test successful
2.    Execute Modification    ./Sources/Register.php    Test successful
3.    Execute Modification    .\Themes\default/Register.template.php    Test successful
4.    Execute Modification    .\Themes\default/languages/Modifications.english.php    Test successful
5.    Execute Modification    .\Themes\default/languages/Modifications.english-utf8.php    Test successful
6.    Execute Modification    .\Themes\default/languages/Modifications.english_british.php    Skipping file
7.    Execute Modification    .\Themes\default/languages/Modifications.english_british-utf8.php    Skipping file
8.    Extract File    ./Sources/recaptchalib.php    

This is how it looks like:


Please help.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 16, 2009, 10:13:27 PM
Try checking Modifications.English.php and see if the language strings are below the ?>. If they are, move them above that. Short of that, try switching to plain English from English-UTF8 (although the mod should handle that language).
Title: Re: reCAPTCHA for SMF
Post by: SoKoOLz on January 16, 2009, 11:09:19 PM
Quote from: Motoko-chan on January 16, 2009, 10:13:27 PM
Try checking Modifications.English.php and see if the language strings are below the ?>. If they are, move them above that. Short of that, try switching to plain English from English-UTF8 (although the mod should handle that language).
First of all, Thanks for the quick reply.
I have looked into the file you mentioned, everything seems to be ok (all above ?>).

So then I've tried chaing the default language to English-UTF-8 and it seems to be working after that, but all my other mods will not display the caption and text.
So now I copy all the contents in Modification.English to Modification.English-utf-8 instead and every seems to be working perfectly.

I just don't know why it is so hard to install the mod on my board, I've been getting a lot of this problems before.

Thanks very much.
Title: Re: reCAPTCHA for SMF
Post by: Mraza on January 22, 2009, 04:52:37 PM
oh man when i download this it contain only one file names changlog    what i am missing
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 22, 2009, 06:57:20 PM
Quote from: mraza on January 22, 2009, 04:52:37 PM
oh man when i download this it contain only one file names changlog    what i am missing

Sounds like your download broke partway through. Try downloading again using a different browser or computer.
Title: Re: reCAPTCHA for SMF
Post by: Mraza on January 22, 2009, 07:47:13 PM
Quote from: Motoko-chan on January 22, 2009, 06:57:20 PM

Sounds like your download broke partway through. Try downloading again using a different browser or computer.

thanks man i just downloaded with other browser and manually installed where were you before.....many thanks ;)
Title: Re: reCAPTCHA for SMF
Post by: happyfeet on February 04, 2009, 02:35:47 PM
I found this mod to be one of the best add-ins for SMF. Great Job!

I am using the Custom Forms mod for a membership application form. As I allow unregistered guests to complete the form, I am beginning to be plagued with spambots. I am curious if reCaptcha can be added to my custom form? If so, how?

Link to Custom Form mod:

http://www.simplemachines.org/community/index.php?topic=248871.0

Link to reCaptcha PHP page:

http://recaptcha.net/plugins/php

I have posted the same question in the Custom Form mod, but figured I would ask here as well. Any help is greatly appreciated :)
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 04, 2009, 03:18:11 PM
The best option would be to look at how it is added to the search code and template pages (as there were no checks on it in 1.1) and follow similarly for your custom form.
Title: Re: reCAPTCHA for SMF
Post by: agentok on February 11, 2009, 06:45:20 PM
hello when will there be an update for rc1??
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 12, 2009, 03:37:54 AM
As soon as I have a chance to see what needs to be done. Try installing with the package manager faking that it is beta 4. If that works, then you are fine. If it doesn't work, you'll need to wait until I get a chance to update, or you go about that yourself.
Title: Re: reCAPTCHA for SMF
Post by: mmka2 on February 17, 2009, 07:40:05 AM
Its not working on 1.1.8 - writing - could not open socket
Help!!!
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 17, 2009, 10:55:52 AM
Where are you seeing that message? During install? On what should be the display? On completing everything and submitting the form?
Title: Re: reCAPTCHA for SMF
Post by: mmka2 on February 18, 2009, 02:00:49 AM
Everything working in install....
but when i want to register... i write 20-30 times... 100% correctly and every time i saw white page where were writing: Could not open socket.
When i return captcha to standart - its working....
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 18, 2009, 02:56:56 AM
Because of the way reCAPTCHA works (it's an external service), it requires that the fsockopen() function can be used to talk to the service. If your host has disabled the function, or your webserver cannot communicate with the reCAPTCHA API server (api.recaptcha.net), then you'll see that error.

Basically, you'll need to check with your host and find out if they have disabled fsockopen().


Edit: Thinking about it, if the host has disabled that function but somehow allows cURL functions (and has that module enabled - so, maybe a 0.0001% chance of that being the case), the calls could be rewritten with that in mind. However, that would require rewriting some parts of the recaptchalib.php file - likely not a minor edit.
Title: Re: reCAPTCHA for SMF
Post by: mmka2 on February 19, 2009, 02:39:15 AM
Thanks for explanation...
Title: Re: reCAPTCHA for SMF
Post by: mmka2 on February 20, 2009, 10:38:22 AM
One more question....
Is it working on 2.0 RC1?
http://custom.simplemachines.org/mods/index.php?mod=1044
there no 2.0 RC1 (only beta 4)
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 20, 2009, 11:04:40 AM
Yes, it will work. In the package listing, follow the "Advanced" link and change the RC1 to "Beta 4".. You can then install without issues.

I'll have packages that will install directly up soon, but the method above has been tested and works fine.
Title: Re: reCAPTCHA for SMF
Post by: mmka2 on February 20, 2009, 11:27:02 AM
I ll wait for mod that install without "anything to do"... ;)
Title: Re: reCAPTCHA for SMF
Post by: forace on February 22, 2009, 06:45:51 AM
I have only one comment about install script:

core.xml on line 70-72 searches for:

}

// Are there age restrictions in place?


in Register.template.php however i have installed  Anti-bot Registration Puzzles Mod which put itself between "}" and comment.


My question is: isn't it better to relay on some code before "}" ?


For example:

<a href="', $context['verificiation_image_href'], ';sound" onclick="return reqWin(this.href, 400, 120);">', $txt['visual_verification_sound'], '</a> | <a href="', $scripturl, '?action=register" onclick="refreshImages(); return false;">', $txt['visual_verification_request_new'], '</a>

That is the end of

"if ($context['use_graphic_library'])"

in register.template so if i understood mode properly this "}" should come at the end of that block ?


Sory for my bad english.
Title: Re: reCAPTCHA for SMF
Post by: HR on April 01, 2009, 09:11:06 AM
Im using Beta4 and just had the same issue crop up undefined index recaptcha_challenge_field but there are no such entriews in the lang files.
Title: Re: reCAPTCHA for SMF
Post by: Realinfo on April 02, 2009, 07:51:54 AM
3.   Execute Modification   .\Themes\default/Register.template.php   Test failed

I have 1.1.8 smf.............
Title: Re: reCAPTCHA for SMF
Post by: JoshieDaMan on April 03, 2009, 02:10:22 PM
The register template filed here too and plus the custom theme don't even have register.template so that uses the default theme register template.
Title: Re: reCAPTCHA for SMF
Post by: Realinfo on April 04, 2009, 10:38:49 AM
So How can I slove that problem.......... I got too many spammer daily................
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on April 04, 2009, 11:58:06 AM
You will likely need to manually apply those changes. If you have a different modification that also alters registration, it is likely the exact edit point was changed just enough that the installer is confused.
Title: Re: reCAPTCHA for SMF
Post by: Bulqr4eto on April 19, 2009, 06:18:49 AM
Ok I did the manual install and I get this when I go to the register page

Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.


How can I fix it ?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on April 19, 2009, 01:00:13 PM
Undo the template changes you made, confirm it works again, then re-do the changes very carefully. You likely missed a single quote or semi-colon.
Title: Re: reCAPTCHA for SMF
Post by: Bulqr4eto on April 20, 2009, 06:14:16 AM
I did everything and I think the problem is from here, Im using SMF 2.0 RC1...

Where I have to find


<input type="text" name="', $verify_id, '_vv[code]" value="', !empty($verify_context['text_value']) ? $verify_context['text_value'] : '', '" size="30" tabindex="', $context['tabindex']++, '" />
</div>';


And add after


}


But the problem is that I dont have

</div>';

I have only this

else
echo '
<img src="', $verify_context['image_href'], ';letter=1" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '_1" />
<img src="', $verify_context['image_href'], ';letter=2" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '_2" />
<img src="', $verify_context['image_href'], ';letter=3" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '_3" />
<img src="', $verify_context['image_href'], ';letter=4" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '_4" />
<img src="', $verify_context['image_href'], ';letter=5" alt="', $txt['visual_verification_description'], '" id="verification_image_', $verify_id, '_5" />';
if (WIRELESS)
echo '<br />
<input type="text" name="', $verify_id, '_vv[code]" value="', !empty($verify_context['text_value']) ? $verify_context['text_value'] : '', '" size="30" tabindex="', $context['tabindex']++, '" />';
else
echo '
<div class="smalltext" style="margin: 4px 0 8px 0;">
<a href="', $verify_context['image_href'], ';sound" id="visual_verification_', $verify_id, '_sound" rel="nofollow">', $txt['visual_verification_sound'], '</a> / <a href="#" id="visual_verification_', $verify_id, '_refresh">', $txt['visual_verification_request_new'], '</a><br /><br />
', $txt['visual_verification_description'], ':<br />
<input type="text" name="', $verify_id, '_vv[code]" value="', !empty($verify_context['text_value']) ? $verify_context['text_value'] : '', '" size="30" tabindex="', $context['tabindex']++, '" />
</div>';
}
else
{
Title: Re: reCAPTCHA for SMF
Post by: crendot on May 05, 2009, 04:06:26 AM
hallo, i have to say that i like your mod very much

but now i have a question:
can someone tell me where i can edit the text on the left side?

i want

Visual Verification:

changed into

Visual Verification:
Type the words with space between them

thanks

ps.: sry for the bad english but i am not a native
Title: Re: reCAPTCHA for SMF
Post by: jnix on May 05, 2009, 06:35:28 AM
This looks great thanks. But I'm having problems getting it working.

Using SMF v1.1.8

Package seems to have installed fine - showing in installed packages list.
But going to Admin>Registration>Settings, I can't see the recaptcha settings (screenshot attached)

Looking at my ManageRegistration.php file - the various reCaptcha lines are in there:

// Update the actual settings.
updateSettings(array(
'registration_method' => (int) $_POST['registration_method'],
'notify_new_registration' => isset($_POST['notify_new_registration']) ? 1 : 0,
'send_welcomeEmail' => isset($_POST['send_welcomeEmail']) ? 1 : 0,
'password_strength' => (int) $_POST['password_strength'],
'disable_visual_verification' => isset($_POST['visual_verification_type']) ? (int) $_POST['visual_verification_type'] : 0,

'recaptcha_enabled' => isset($_POST['recaptchaEnable']) ? 1 : 0,
'recaptcha_theme' => !empty($_POST['recaptchaTheme']) ? $_POST['recaptchaTheme'] : '',
'recaptcha_public_key' => !empty($_POST['recaptchaPublicKey']) ? $_POST['recaptchaPublicKey'] : '',
'recaptcha_private_key' => !empty($_POST['recaptchaPrivateKey']) ? $_POST['recaptchaPrivateKey'] : '',
'coppaAge' => (int) $_POST['coppaAge'],
'coppaType' => empty($_POST['coppaType']) ? 0 : (int) $_POST['coppaType'],
'coppaPost' => $_POST['coppaPost'],
'coppaFax' => !empty($_POST['coppaFax']) ? $_POST['coppaFax'] : '',
'coppaPhone' => !empty($_POST['coppaPhone']) ? $_POST['coppaPhone'] : '',
));


FYI I have previously had the Custom Profile Field Mod installed, but I've (apparently) removed it - it is in my list of installed packages but with "Apply mod" next to it.

Any ideas much appreciated

Title: Re: reCAPTCHA for SMF
Post by: candidosa2 on May 06, 2009, 09:43:55 PM
thank you
next time when update dot forget portuguese ( portuguese_pt and portuguese_brazilian )
Title: Re: reCAPTCHA for SMF
Post by: Tiribulus on May 06, 2009, 10:06:37 PM
Quote from: jnix on May 05, 2009, 06:35:28 AM
This looks great thanks. But I'm having problems getting it working.

Using SMF v1.1.8

Package seems to have installed fine - showing in installed packages list.
But going to Admin>Registration>Settings, I can't see the recaptcha settings (screenshot attached)

Looking at my ManageRegistration.php file - the various reCaptcha lines are in there:

// Update the actual settings.
updateSettings(array(
'registration_method' => (int) $_POST['registration_method'],
'notify_new_registration' => isset($_POST['notify_new_registration']) ? 1 : 0,
'send_welcomeEmail' => isset($_POST['send_welcomeEmail']) ? 1 : 0,
'password_strength' => (int) $_POST['password_strength'],
'disable_visual_verification' => isset($_POST['visual_verification_type']) ? (int) $_POST['visual_verification_type'] : 0,

'recaptcha_enabled' => isset($_POST['recaptchaEnable']) ? 1 : 0,
'recaptcha_theme' => !empty($_POST['recaptchaTheme']) ? $_POST['recaptchaTheme'] : '',
'recaptcha_public_key' => !empty($_POST['recaptchaPublicKey']) ? $_POST['recaptchaPublicKey'] : '',
'recaptcha_private_key' => !empty($_POST['recaptchaPrivateKey']) ? $_POST['recaptchaPrivateKey'] : '',
'coppaAge' => (int) $_POST['coppaAge'],
'coppaType' => empty($_POST['coppaType']) ? 0 : (int) $_POST['coppaType'],
'coppaPost' => $_POST['coppaPost'],
'coppaFax' => !empty($_POST['coppaFax']) ? $_POST['coppaFax'] : '',
'coppaPhone' => !empty($_POST['coppaPhone']) ? $_POST['coppaPhone'] : '',
));


FYI I have previously had the Custom Profile Field Mod installed, but I've (apparently) removed it - it is in my list of installed packages but with "Apply mod" next to it.

Any ideas much appreciated

It's been a while since I set this up so I don't remember the exact sequence, but you did get your keys and install them right?
Title: Re: reCAPTCHA for SMF
Post by: jnix on May 08, 2009, 09:24:41 AM
I don't get the link to obtain keys - as the fields don't show up in my admin screen.
Title: Re: reCAPTCHA for SMF
Post by: Tiribulus on May 08, 2009, 10:31:32 AM
Quote from: jnix on May 08, 2009, 09:24:41 AM
I don't get the link to obtain keys - as the fields don't show up in my admin screen.

Yeah, forget my last post, I wasn't thinking clearly :) I'm sure it's a simple edit required somewhere. I've had tons of these kinds of situations with various mods and always figure em out, but with something like registration you're better off with somebody more knowledgeable helping you out. If it were me I'd look at the manual install routine for some clues. The answer has to be there. This mod has a relatively simple install and is theme independent.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on May 08, 2009, 11:06:50 AM
Do you see things properly if you switch to the default theme?
Title: Re: reCAPTCHA for SMF
Post by: 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?
Title: Re: reCAPTCHA for SMF
Post by: jnix on May 12, 2009, 05:29:23 AM
Quote from: Motoko-chan on May 08, 2009, 11:06:50 AM
Do you see things properly if you switch to the default theme?

Yes - the relevant fields do show up when using default theme.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on May 12, 2009, 12:27:33 PM
Your custom theme probably has a different template for that part of the admin area, which isn't reading those settings properly.
Title: Re: reCAPTCHA for SMF
Post by: ɔɔɔɔɔɔuɥoɾ on May 14, 2009, 12:50:36 PM
Thanks for the mod, nice.


recaptcha is not showing on my registration page at all.

It installed perfectly on sme 2 RC1 and i have created the keys for my domain and entered all the data, made sure its enabled and all other anti spam methods are disabled and nothing...

EDIT:

got it working, left the integrated one enabled, it replaces it so integrated one must be enabled too :)
Title: Re: reCAPTCHA for SMF
Post by: Leemy on May 17, 2009, 03:46:47 PM
When I try to upload the tar.gz it says
The package you tried to upload either is not a valid package or has become corrupted.
I cant upload just the .tar either
Title: Re: reCAPTCHA for SMF
Post by: FragaCampos on May 18, 2009, 11:46:50 AM
Hello there.
First of all, thank you very much for this mod.

I tried to install it, but i got an error on register.template.php. I also tried to install it manually via "Manual Install Instructions for SMF " but to no avail.
Can someone take a peek into my register.template.php?
Thanks in advance.
Title: Re: reCAPTCHA for SMF
Post by: FragaCampos on May 18, 2009, 06:00:26 PM
I managed to edit it myself. It was missing a }...

It's working great. Thanks a lot for this!
Title: Re: reCAPTCHA for SMF
Post by: FragaCampos on May 19, 2009, 05:40:36 PM
Allow me to ask this:
if de recpatcha servers are down, what happens to those who try to register during that period?
Title: Re: reCAPTCHA for SMF
Post by: krick on May 27, 2009, 02:29:22 AM
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...

Title: Re: reCAPTCHA for SMF
Post by: benjicadena on May 27, 2009, 08:24:59 AM
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?
Title: Re: reCAPTCHA for SMF
Post by: 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

I downloaded the package to my computer and I uploaded recaptchalib.php to the sources folder and now it's working fine.
Title: Re: reCAPTCHA for SMF
Post by: 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
Title: Re: reCAPTCHA for SMF
Post by: benjicadena on May 27, 2009, 08:03:49 PM
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.
Title: Re: reCAPTCHA for SMF
Post by: 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.
Title: Re: reCAPTCHA for SMF
Post by: benjicadena on May 27, 2009, 08:42:43 PM
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
Title: Re: reCAPTCHA for SMF
Post by: 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?
Title: Re: reCAPTCHA for SMF
Post by: 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.
Title: Re: reCAPTCHA for SMF
Post by: krick on May 28, 2009, 01:34:32 AM
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
Title: Re: reCAPTCHA for SMF
Post by: noelchiew on May 28, 2009, 03:09:11 AM
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?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on May 28, 2009, 03:25:01 AM
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).
Title: Re: reCAPTCHA for SMF
Post by: noelchiew on May 28, 2009, 03:42:47 AM
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 :)
Title: Re: reCAPTCHA for SMF
Post by: benjicadena on May 28, 2009, 09:17:23 AM
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
Title: javascript error on registration page
Post by: 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>
Title: Re: javascript error on registration page
Post by: sibling chris on June 02, 2009, 10:06:47 AM
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
Title: Re: reCAPTCHA for SMF
Post by: Taskman on June 07, 2009, 10:29:55 AM
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.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 07, 2009, 12:10:48 PM
Try refreshing the image a few times and try again. I've seen this happen, but only rarely.
Title: Re: reCAPTCHA for SMF
Post by: noelchiew on June 13, 2009, 04:02:59 PM
Quote from: Gargoyle on January 04, 2009, 11:19:18 AM
8: Undefined index: recaptcha_challenge_field
File: /Sources/Register.php
Line: 183

I am getting this error presently. Like mentioned above I had to manually install this so if possible a manual fix would be appreciated.

Thanks!

Quote from: HR on April 01, 2009, 09:11:06 AM
Im using Beta4 and just had the same issue crop up undefined index recaptcha_challenge_field but there are no such entriews in the lang files.

I'm getting the same error in my error log. I don't believe I see any replies or answers to these 2 person's posts. What does this error mean?

By the way if I want to update from 0.9.5.4a to 0.9.5.4b, do I just run the latter or I've to uninstall 0.9.5.4a first?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 14, 2009, 02:27:24 AM
Quote from: noelchiew on June 13, 2009, 04:02:59 PM
I'm getting the same error in my error log. I don't believe I see any replies or answers to these 2 person's posts. What does this error mean?

It's due to not checking if the variable is set before looking at it. It's harmless, but I don't like seeing it either so I'll be hopefully fixing it in the next bugfix release.

Specifically, that value won't be set if the field in the reCAPTCHA box was left blank. This usually means a human didn't see it, a bot skipped it, or a bot is trying to submit form values directly to the registration form.


Quote from: noelchiew on June 13, 2009, 04:02:59 PM
By the way if I want to update from 0.9.5.4a to 0.9.5.4b, do I just run the latter or I've to uninstall 0.9.5.4a first?

The only difference between the two is that the b release will install on 2.0 RC1-1 without the emulation string. No code was changed. If things are working, don't mess with it. Number changes indicate code changes so you only need to worry about those.
Title: Re: reCAPTCHA for SMF
Post by: noelchiew on June 14, 2009, 03:26:15 AM
Ok thanks for the clarifications! :)
Title: Re: reCAPTCHA for SMF
Post by: JoeB on June 14, 2009, 10:29:23 AM
Error with 1.1.9

1. Execute Modification ./Sources/ManageRegistration.php Test successful
2. Execute Modification ./Sources/Register.php Test successful
3. Execute Modification ./Themes/default/Register.template.php Test failed  
4. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
6. Execute Modification ./Themes/default/languages/Modifications.english_british.php Test successful
7. Execute Modification ./Themes/default/languages/Modifications.english_british-utf8.php Skipping file

---

I tried to install it anyway but end with this message:
Parse error: syntax error, unexpected $end in .../Themes/default/Register.template.php on line 843

834:    echo '
835:                // ]]></script>
836:             </td>



please advice me
Title: Re: reCAPTCHA for SMF
Post by: jantonio112 on June 18, 2009, 06:59:16 PM
t is possible to install recaptcha response to Post

Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 18, 2009, 07:55:08 PM
Quote from: jantonio112 on June 18, 2009, 06:59:16 PM
t is possible to install recaptcha response to Post

Yes, it is on SMF 2.0. With SMF 2.0, it takes the place of the built-in image verification.

This is not currently supported in SMF 1.1 because it would require adding additional capability beyond the scope of the modification. I was thinking of a special package that works along with Visual Verification Options, but have not had the motivation to write it.
Title: Re: reCAPTCHA for SMF
Post by: jantonio112 on June 18, 2009, 08:18:36 PM
ok thanks
Title: Re: reCAPTCHA for SMF
Post by: Quarks on July 05, 2009, 10:42:10 PM
Greetings friends.  :)
I just installed reCAPTCHA on one of my SMF forums (1.1.9) that is heavily bombarded by spam bots. If it solves the problem magnificently you will know because I wont post in this thread again, so no news is good news.

thanks
Title: Re: reCAPTCHA for SMF
Post by: jnix on July 09, 2009, 08:59:00 AM
Quote from: Motoko-chan on May 12, 2009, 12:27:33 PM
Your custom theme probably has a different template for that part of the admin area, which isn't reading those settings properly.

Just to say thanks a lot - have got it working now (yes, had a custom template which I hadn't changed).
Title: Re: reCAPTCHA for SMF
Post by: ThePro on July 09, 2009, 11:16:02 PM
Getting this error:

Fatal error: Call to undefined function recaptcha_check_answer() in /home/thepro/public_html/theproweb.co.cc/forums/Sources/Register.php on line 184

when trying to register with recaptcha on
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 09, 2009, 11:26:46 PM
Did you install manually? If so, you need to copy recaptchalib.php to the Sources directory.
Title: Re: reCAPTCHA for SMF
Post by: ThePro on July 10, 2009, 10:43:47 PM
i installed using package manager.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 11, 2009, 02:30:02 PM
The only thing I can think is that either the recaptchalib.php file isn't in the Sources directory, or the require for it isn't in Sources/Register.php.
Title: Re: reCAPTCHA for SMF
Post by: joshposh on July 19, 2009, 04:40:52 PM
Quote from: JoeB on June 14, 2009, 10:29:23 AM
Error with 1.1.9

1. Execute Modification ./Sources/ManageRegistration.php Test successful
2. Execute Modification ./Sources/Register.php Test successful
3. Execute Modification ./Themes/default/Register.template.php Test failed  
4. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
6. Execute Modification ./Themes/default/languages/Modifications.english_british.php Test successful
7. Execute Modification ./Themes/default/languages/Modifications.english_british-utf8.php Skipping file

Same here with version 1.1.10 :(
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 19, 2009, 10:30:46 PM
What other modifications or changes have you done? I have tested on a clean 1.1.10 install (well, not clean - it had my other mods on it) for confirmation before I bumped compatibility on the mod page, and it installed cleanly.
Title: Re: reCAPTCHA for SMF
Post by: joshposh on July 19, 2009, 10:45:48 PM
Ihave these packages installed:

Gravatar
Aeva ~ Auto-Embed Video & Audio
AJAX Instant Quick Reply
Country Flags
Twitter Field
Todays Birthday
Hide "Logged" and IP Image
Spoiler Tag
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 21, 2009, 11:33:32 PM
The Country Flags modification is changing the code point that this modification is depending on. You'll probably want to make the single failed edit manually. You can find instructions by going to the mod download page and choosing to view the manual installation instructions.
Title: Re: reCAPTCHA for SMF
Post by: Bernard T. on July 25, 2009, 08:11:30 PM
Motoko-chan, just wanted to thank you for this great addition to standard ("cracked") captcha...
Now, why don't you point guys by reCAPTCHA.net to list your Mod under "Plugins" in http://recaptcha.net/resources.html - it surely would also promote SMF to the world...  ;)


P.S. One functional suggestion: As described here http://wiki.recaptcha.net/index.php/I18n it would be good to add a custom translated string for the text in reCAPTCHA window... I did the dirty one only by changing:

if ($context['use_recaptcha'])
{
echo '
<script type="text/javascript">
var RecaptchaOptions = {
theme : \'', empty($modSettings['recaptcha_theme']) ? 'clean' : $modSettings['recaptcha_theme'] , '\',
};
</script>


with


if ($context['use_recaptcha'])
{
echo '<script type="text/javascript">
var RecaptchaOptions = { 
theme : \'', empty($modSettings['recaptcha_theme']) ? 'clean' : $modSettings['recaptcha_theme'] , '\',
custom_translations : { instructions_visual : "Here is my new text:"}
};
</script>
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 25, 2009, 08:48:43 PM
Quote from: Bernard T. on July 25, 2009, 08:11:30 PM
Motoko-chan, just wanted to thank you for this great addition to standard ("cracked") captcha...
Now, why don't you point guys by reCAPTCHA.net to list your Mod under "Plugins" in http://recaptcha.net/resources.html - it surely would also promote SMF to the world...  ;)

I've contacted the folks running reCAPTCHA four times about this, and they still haven't done anything. I've kinda given up.


Quote from: Bernard T. on July 25, 2009, 08:11:30 PM
One functional suggestion: As described here http://wiki.recaptcha.net/index.php/I18n it would be good to add a custom translated string for the text in reCAPTCHA window...

I'll look into that.
Title: Re: reCAPTCHA for SMF
Post by: Bernard T. on July 25, 2009, 08:56:44 PM
Quote from: Motoko-chan on July 25, 2009, 08:48:43 PM
I've contacted the folks running reCAPTCHA four times about this, and they still haven't done anything. I've kinda given up.

Sad to hear that... I will write them now, maybe I'll have a little more luck ;)

Quote from: Motoko-chan on July 25, 2009, 08:48:43 PM
I'll look into that.

Great, thanks!
Title: Re: reCAPTCHA for SMF
Post by: Bernard T. on July 25, 2009, 09:33:13 PM
While searching for the rest of the strings to translate (yes, "great" documentation from guys at reCAPTCHA team  :( ) I found this one, it lists all translations, hope it helps You too: http://groups.google.com/group/recaptcha/browse_thread/thread/6993d80198797333
Title: Re: reCAPTCHA for SMF
Post by: OutofOrder on August 06, 2009, 07:06:38 PM
Thanks for this mod.
I translated this to spanish, since it's not too much and my forum needed it anyway.
Add at the end of Modifications.spanish.php

//reCAPTCHA for SMF
$txt['recaptcha_configure'] = 'Sistema de Verificac&oacute;n reCAPTCHA';
$txt['recaptcha_configure_desc'] = 'Usar el Sistema de Verificación reCAPTCHA. &iquest;No tienes una clave para usar reCAPTCHA? <a href="http://recaptcha.net/api/getkey?app=recaptcha_for_smf">Obt&eacute;n tu clave reCAPTCHA aqu&iacute;</a>.';
$txt['recaptcha_enabled'] = 'Usar el Sistema de Verificaci&oacute;n reCAPTCHA';
$txt['recaptcha_enable_desc'] = '(Esto reemplazar&aacute; el sistema de verificaci&oacute;n visual interno por reCAPTCHA)';
$txt['recaptcha_theme'] = 'Visualiaci&oacute;n de reCAPTCHA';
$txt['recaptcha_theme_clean'] = 'Limpio';
$txt['recaptcha_theme_blackglass'] = 'Vidrio Negro';
$txt['recaptcha_theme_red'] = 'Rojo';
$txt['recaptcha_theme_white'] = 'Blanco';
$txt['recaptcha_public_key'] = 'Clave P&uacute;blica reCAPTCHA';
$txt['recaptcha_private_key'] = 'Clave Privada reCAPTCHA';
$txt['recaptcha_no_key_question'] = '&iquest;No tienes una clave de reCAPTCHA?';
$txt['recaptcha_get_key'] = 'Obt&eacute;n tu clave de reCAPTCHA aqu&iacute;.';


Also, it would be nice if there was a bot-check when posting messages.
Title: Re: reCAPTCHA for SMF
Post by: ɔɔɔɔɔɔuɥoɾ on August 11, 2009, 12:20:55 PM
Thanks for the great mod :)

Im getting this error in the error log.

Quote
http://www.requestiso.com/index.php?action=register2
8: Undefined index: recaptcha_response_field
File: *********/*****/*****/Sources/Subs-Editor.php
Line: 1462

Any Idea's thanks in advanced
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 11, 2009, 12:37:27 PM
Have you made sure to install the most recent version of this modification?
Title: Re: reCAPTCHA for SMF
Post by: ɔɔɔɔɔɔuɥoɾ on August 11, 2009, 12:38:42 PM
Well I only see one available for download, so im pretty sure its the latest version
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 11, 2009, 01:35:05 PM
Looks like non-authors can only see the "active" package. If there is an undefined index in 0.9.6, and in one of the supported themes, I'll need to look into it. I thought all had been cleared in the latest release.
Title: Re: reCAPTCHA for SMF
Post by: FragaCampos on August 11, 2009, 07:24:53 PM
Lately i've been receiving the following log error:

8: Undefined index: recaptcha_response_field
Ficheiro: /xxxx/Sources/Register.php
Line: 190

I wonder if it's the same error mentioned by johncccccc...
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 11, 2009, 07:58:09 PM
Probably. I'll look into it. I know it's noisy, but it's not a huge concern, it should only happen when the reCAPTCHA box isn't filled in. That would mean a failed registration attempt by a bot.
Title: Re: reCAPTCHA for SMF
Post by: FragaCampos on August 12, 2009, 06:20:04 PM
Quote from: Motoko-chan on August 11, 2009, 07:58:09 PM
Probably. I'll look into it. I know it's noisy, but it's not a huge concern, it should only happen when the reCAPTCHA box isn't filled in. That would mean a failed registration attempt by a bot.

That's what i thought.
Still, if you can solve this in a next version, it would be nice ;D
Title: Re: reCAPTCHA for SMF
Post by: ltdeta on August 21, 2009, 09:13:16 AM
SMF 1.1.10

mod works fine but i have one problem

the background from the inputbox is black and the entred text too
only if i mark the typed text it is white (and readable)

Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 21, 2009, 10:54:52 AM
It's because of the stylesheet reCAPTCHA itself uses. If you read back in this topic, you'll find the solution for that particular issue.
Title: Re: reCAPTCHA for SMF
Post by: ltdeta on August 21, 2009, 11:15:07 AM
thanks,
i copy the css definition into the style.css now it works

* White text on black background */
#recaptcha_response_field
{
  background-color: #000000;
  color: #ffffff
}

/* Black text on white background */
#recaptcha_response_field
{
  background-color: #ffffff;
  color: #000000
}
Title: Re: reCAPTCHA for SMF
Post by: stageducky on August 29, 2009, 07:14:33 PM
When I tried to install this mod. I get this error:

Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


Execute Modification ./Themes/default/Register.template.php Test failed

Version of SMF is 1.1.10
I don't have another spam mod install.

Mod Name Version 
1. Change_All_Subjects 1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
2. Colorized Membergroups 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
3. SMF Gallery Lite 1.8.3  [ Apply Mod ] [ List Files ] [ Delete ] 
4. NoFollow All Links 1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
5. Bookmarks 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
6. SMF 1.0.16 / 1.1.8 Update 1.0   [ List Files ] [ Delete ] 
7. RSS Feed Icon 1.1  [ Apply Mod ] [ List Files ] [ Delete ] 
8. MCLegendII 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
9. Easy Edit Meta Data 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
10. Referrals Mod 2.0.1   [ Uninstall ] [ List Files ] [ Delete ] 
11. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0   [ List Files ] [ Delete ] 
12. Admin Lock Thread 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
13. Contact Page 1.1  [ Apply Mod ] [ List Files ] [ Delete ] 
14. Colorize Boards 2.2   [ Uninstall ] [ List Files ] [ Delete ] 
15. Language Drop 1.0  [ List Files ] [ Delete ] 
16. SMF 1.0.14 / 1.1.6 Update 1.0   [ List Files ] [ Delete ] 
17. Auto Embed Video Clips 2.2   [ Uninstall ] [ List Files ] [ Delete ] 
18. SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
19. Copy Topics 1.3   [ Uninstall ] [ List Files ] [ Delete ] 
20. Social Bookmarks 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
21. reCAPTCHA for SMF 0.9.6  [ Apply Mod ] [ List Files ] [ Delete ] 
22. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0   [ List Files ] [ Delete ] 
23. SMF 1.0.14 / 1.1.6 Update 1.0   [ List Files ] [ Delete ] 
24. Add Sitepreviews 1.31   [ Uninstall ] [ List Files ] [ Delete ] 
25. SMF Links 1.6.7  [ Apply Mod ] [ List Files ] [ Delete ] 
26. Auto Email Inactive Ordinary Users 1.6   [ Uninstall ] [ List Files ] [ Delete ] 
27. Admin Notepad 1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
28. Ad Managment 2.3   [ Uninstall ] [ List Files ] [ Delete ] 
29. SMF 1.0.15 / 1.1.7 Update 1.0   [ List Files ] [ Delete ] 
30. nCode Image Resizer 1.0 

Anyone can help me to install this without manual fixes? Thanks
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 29, 2009, 09:10:57 PM
One of those modifications likely modified the registration page. You can force install, but you then need to make the changes manually to that one file.
Title: Re: reCAPTCHA for SMF
Post by: fmsllc on September 09, 2009, 04:43:31 PM
thanks for this. I use to use phpbb and I was hacked, so I appreciate all of the active participation and support by everyone who uses SMF, regardless of what our sites are about. Now if I could just figure out how to set up my server securely so I can allow folks to upload avatars and attachments without worrying about hacker attacks. I also run wordpress blogs on my server.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on September 09, 2009, 06:03:19 PM
Quote from: fmsllc on September 09, 2009, 04:43:31 PM
Now if I could just figure out how to set up my server securely so I can allow folks to upload avatars and attachments without worrying about hacker attacks. I also run wordpress blogs on my server.

Can't help on WordPress (update to 2.8.4 if you haven't already) security, but just a quick off-topic response to your question.

For uploads and avatars, the safest thing is to move your attachments directory outside your web root. SMF can still read and display the files, but nobody can access them directly. This does trade off a little speed and load (SMF has to do all the file displaying) for security.

Also see our online manual, specifically the section: How do I make my forum safer against hacker attacks? (http://docs.simplemachines.org/index.php?topic=463)
Title: Re: reCAPTCHA for SMF
Post by: plusev on September 13, 2009, 02:25:45 AM
Quote from: ltdeta on August 21, 2009, 11:15:07 AM
thanks,
i copy the css definition into the style.css now it works

* White text on black background */
#recaptcha_response_field
{
  background-color: #000000;
  color: #ffffff
}

/* Black text on white background */
#recaptcha_response_field
{
  background-color: #ffffff;
  color: #000000
}


I tried the edit in my css and it does not respond in FF or IE 7/8.
Title: Need Help with Code
Post by: MaryLouW on September 16, 2009, 12:08:10 AM
I hope I'm posting this in the right place.  Earlier this week, I had to move my forum from one host to another because my original host closed its doors. In doing so, I decided to register a domain name for my forum rather than having it as a folder on my site.  It seemed all was going well until someone tried to register but could not. Apparently, the matched keys are for my original site.  This is the message I get:



So, I thought maybe I could just uninstall the reCAPTCHA and worry about it later.  When I attempted to uninstall, I got the following messages:



So, my question is, how do I fix this?  Is the site name somewhere embedded in the code where I can change it?  I am at a loss and am unhappy because I cannot have any new members until this is solved.

Can someone please help?



Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on September 16, 2009, 12:27:59 AM
MaryLouW, you don't need to touch the modification, just go to recaptcha.net, sign in, and add a site. You'll get a new set to keys to replace the ones you entered for the old domain.

plusev, not sure what I can do to help, it's a CSS issue with your theme. You can try adding the "!important" modifier to the rules and see if that helps.
Title: Re: reCAPTCHA for SMF
Post by: plusev on September 16, 2009, 12:39:21 AM
Quoteplusev, not sure what I can do to help, it's a CSS issue with your theme. You can try adding the "!important" modifier to the rules and see if that helps.

Yes - !important worked. Thx much :)
Title: Re: reCAPTCHA for SMF
Post by: MaryLouW on September 16, 2009, 01:14:20 AM
Okay, I got a new set of keys for that domain but now where do I go from there.  I don't understand their instructions and it's been so long since I installed this that I'm just not sure what I'm doing.  I can't uninstall it because I get errors if I try.
Title: Re: reCAPTCHA for SMF
Post by: plusev on September 16, 2009, 01:34:13 AM
Security and Moderation > Anti-Spam > then enter your keys and you're good to go.
Title: Re: reCAPTCHA for SMF
Post by: MaryLouW on September 16, 2009, 03:15:17 AM
Thanks a million for the help!!!  I wasn't sure what you meant but I figured it had to be something somewhere in the admin panel..  and I finally found it! 

I put in the new numbers and it worked like a charm!!!   Thanks again, I do appreciate the help, very much!!!
Title: Re: reCAPTCHA for SMF
Post by: deciph3red on September 16, 2009, 07:21:27 PM
Are any file modifications required?

I have instaled on SMF 1.1.10 with no issues, and have the settings now, but read on the site i needed to make php code changes.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on September 16, 2009, 07:24:18 PM
If you install the modification through the package manager it will make all the needed changes for you.
Title: Re: reCAPTCHA for SMF
Post by: MaryLouW on September 16, 2009, 07:27:43 PM
I didn't have to modify anything at all... the package manager took care of everything for me.  I no longer get those X-Rated "users" (bots)... and it's very nice!!!
Title: Re: reCAPTCHA for SMF
Post by: yenidagci on September 17, 2009, 09:41:33 AM
Quote from: (PirMuhammed) on September 18, 2008, 04:19:14 PM
Caps:



Turkish and Turkish-utf8 translations,

$languagedir/Modifications.turkish.php Dosyasında
Dosyanın Sonuna Ekle:


//reCAPTCHA for SMF
$txt['recaptcha_enable'] = 'reCAPTCHA Görsel Onay Sistemini Kullan';
$txt['recaptcha_theme'] = 'reCAPTCHA Teması';
$txt['recaptcha_theme_clean'] = 'Sade';
$txt['recaptcha_theme_blackglass'] = 'Siyah';
$txt['recaptcha_theme_red'] = 'Kırmızı';
$txt['recaptcha_theme_white'] = 'Beyaz';
$txt['recaptcha_public_key'] = 'reCAPTCHA Genel Anahtar';
$txt['recaptcha_private_key'] = 'reCAPTCHA Özel Anahtar';
$txt['recaptcha_no_key_question'] = 'reCAPTCHA için anahtarınız yok mu?';
$txt['recaptcha_get_key'] = 'reCAPTCHA Anahtarınızı buraya tıklayarak alabilirsiniz.';


$languagedir/Modifications.turkish-utf8.php Dosyasında
Dosyanın Sonuna Ekle:


//reCAPTCHA for SMF
$txt['recaptcha_enable'] = 'reCAPTCHA Gorsel Onay Sistemini Kullan';
$txt['recaptcha_theme'] = 'reCAPTCHA Temasi';
$txt['recaptcha_theme_clean'] = 'Sade';
$txt['recaptcha_theme_blackglass'] = 'Siyah';
$txt['recaptcha_theme_red'] = 'Kirmizi';
$txt['recaptcha_theme_white'] = 'Beyaz';
$txt['recaptcha_public_key'] = 'reCAPTCHA Genel Anahtar';
$txt['recaptcha_private_key'] = 'reCAPTCHA Ozel Anahtar';
$txt['recaptcha_no_key_question'] = 'reCAPTCHA icin anahtariniz yok mu?';
$txt['recaptcha_get_key'] = 'reCAPTCHA Anahtarinizi buraya tiklayarak alabilirsiniz.';


Thanks...

Thank you my brother..
Title: Re: reCAPTCHA for SMF
Post by: Matthew K. on September 20, 2009, 11:49:44 PM
Hey there, never really had a problem installing this mod on previous forums of mine.

I am currently trying to get it installed on a forum of mine (version 1.1.10) and for some reason it's just not working.

I will attach my Register.template.php, ManageRegistration.template.php and Sources/Register.php if you could help me through this i'd appreciate it, trying to finish up my registration process.

Thanks,
Labradoodle-360
Title: Re: reCAPTCHA for SMF
Post by: shadeofdawn on September 21, 2009, 08:53:48 PM
So i have this longstanding issue of the ftp not working. I need to modify the permissions manually. Which files does it need permissions for in order for me to install?

Thanks.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on September 21, 2009, 11:59:37 PM
Labradoodle-360, sorry but I simply don't have time to manually modify your files. Check the modification's page to get manual install instructions.

shadeofdawn, the manual install instructions will show you the files. They are slightly different between 2.0 and 1.1, so you'll get faster info by checking those instructions.
Title: Re: reCAPTCHA for SMF
Post by: shadeofdawn on September 22, 2009, 12:13:55 AM
You know i never realised that. Thats really helpful. Thanks a lot!
Title: Re: reCAPTCHA for SMF
Post by: Matthew K. on September 22, 2009, 11:49:50 AM
Quote from: Motoko-chan on September 21, 2009, 11:59:37 PM
Labradoodle-360, sorry but I simply don't have time to manually modify your files. Check the modification's page to get manual install instructions.

shadeofdawn, the manual install instructions will show you the files. They are slightly different between 2.0 and 1.1, so you'll get faster info by checking those instructions.

Already tried manually installing, got me where I am. Still no use.

I guess i'll redirect my question to Coding Discussion.

Thanks anyways.
Title: Re: reCAPTCHA for SMF
Post by: collins465 on September 22, 2009, 07:03:26 PM
i tried to install, it but some test failed :

Execute Modification  ./Themes/default/Register.template.php  Test failed
Title: Re: reCAPTCHA for SMF
Post by: plusev on September 22, 2009, 11:07:49 PM
Do the edit.
Title: Re: reCAPTCHA for SMF
Post by: Gargoyle on September 23, 2009, 12:57:14 PM
Quote from: Motoko-chan on December 31, 2008, 09:24:17 PM
Quote from: Gargoyle on December 31, 2008, 07:26:34 PM
Is there a manual update I could do... I had to install this manually and would like the errors I get to stop.. So maybe just an idea of what was changed would work out for me...

If you are using 1.1.x, just search ManageRegistration for 'recaptcha_enable' and change to 'recaptcha_enabled'.

I changed quite a bit for the 2.0 stuff, so I'd need to run a diff for that.

So sorry I missed this.... Worked perfectly...

Thank you!
Title: Re: reCAPTCHA for SMF
Post by: miranon on October 03, 2009, 07:57:55 PM
Can the reCAPTCHA also work when sending pm's and guests posts?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on October 03, 2009, 09:06:41 PM
If you are using the SMF 2.0 code, it will replace everywhere the standard image verification will go. If on 1.1, it will only replace on the registration verification image (the only place in 1.1 that has it).
Title: Re: reCAPTCHA for SMF
Post by: miranon on October 04, 2009, 10:43:51 AM
Quote from: Motoko-chan on October 03, 2009, 09:06:41 PM
If you are using the SMF 2.0 code, it will replace everywhere the standard image verification will go. If on 1.1, it will only replace on the registration verification image (the only place in 1.1 that has it).

I use SMF 1.1 and i want to have the reCAPTCHA system for sending pm's and guest posting.

I have found this code for pm's but it doesn't work, recaptcha is showing up but when i solve the captcha and click send, it takes me back to my message without any errors and replaces recaptcha with the regular smf captcha. The message isnt sent at all.

Please help me to find the problem with the code:

Quote from: Duncan85 on May 24, 2009, 07:09:12 AM
First of all install that mod

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

after that make these changes

./Sources/ModSettings.php

Code (find) Select

// Reporting of personal messages?
array('check', 'enableReportPM'),


Code (replace with) Select

// Reporting of personal messages?
array('check', 'enableReportPM'),
array('check', 'recaptcha_enabled'),
array('select', 'recaptcha_theme', array('Clean' => 'Clean', 'Black Glass' => 'Black Glass', 'Red' => 'Red', 'White' => 'White')),
array('text', 'recaptcha_public_key','40'),
array('text', 'recaptcha_private_key','40'),



in Sources/PersonalMessage.php

Code (find) Select

$_SESSION['visual_verification_code'] .= $character_range[array_rand($character_range)];
}


Code (replace with) Select

$_SESSION['visual_verification_code'] .= $character_range[array_rand($character_range)];
}
$context['use_recaptcha'] = !empty($modSettings['recaptcha_enabled']) && ($modSettings['recaptcha_enabled'] == 1 && !empty($modSettings['recaptcha_public_key']) && !empty($modSettings['recaptcha_private_key'])) && $user_info['posts'] < $modSettings['pm_posts_verification'] ;
if ($context['use_recaptcha'])
{
// Disable the built-in visual verification if we are using reCAPTCHA
$context['visual_verification'] = FALSE;
}


in ./Themes/default/PersonalMessage.template.php

Code (find) Select

if ($context['visual_verification'])
{
echo '
<tr>
<td align="right" valign="top">
<b>', $txt['pm_visual_verification_label'], ':</b>
</td>
<td>';
if ($context['use_graphic_library'])
echo '
<img src="', $context['verificiation_image_href'], '" alt="', $txt['pm_visual_verification_desc'], '" /><br />';
else
echo '
<img src="', $context['verificiation_image_href'], ';letter=1" alt="', $txt['pm_visual_verification_desc'], '" />
<img src="', $context['verificiation_image_href'], ';letter=2" alt="', $txt['pm_visual_verification_desc'], '" />
<img src="', $context['verificiation_image_href'], ';letter=3" alt="', $txt['pm_visual_verification_desc'], '" />
<img src="', $context['verificiation_image_href'], ';letter=4" alt="', $txt['pm_visual_verification_desc'], '" />
<img src="', $context['verificiation_image_href'], ';letter=5" alt="', $txt['pm_visual_verification_desc'], '" /><br />';
echo '
<a href="', $context['verificiation_image_href'], ';sound" onclick="return reqWin(this.href, 400, 120);">', $txt['pm_visual_verification_listen'], '</a><br /><br />
<input type="text" name="visual_verification_code" size="30" tabindex="', $context['tabindex']++, '" />
<div class="smalltext">', $txt['pm_visual_verification_desc'], '</div>
</td>
</tr>';
}


Code (replace with) Select

if ($context['visual_verification'] || $context['use_recaptcha'])
{
echo '
<tr>
<td align="right" valign="top">
<b>', $txt['pm_visual_verification_label'], ':</b>
</td>
<td>';

if ($context['use_recaptcha'])
{
echo '
<script>
var RecaptchaOptions = {
   theme : \'', empty($modSettings['recaptcha_theme']) ? 'clean' : $modSettings['recaptcha_theme'] , '\',
};
</script>
<script type="text/javascript"
src="http://api.recaptcha.net/challenge?k=', $modSettings['recaptcha_public_key'], '">
</script>

<noscript>
<iframe src="http://api.recaptcha.net/noscript?k=', $modSettings['recaptcha_public_key'], '"
height="300" width="500" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40">
</textarea>
<input type="hidden" name="recaptcha_response_field"
value="manual_challenge">
</noscript>';
}
else
{
if ($context['use_graphic_library'])
echo '
<img src="', $context['verificiation_image_href'], '" alt="', $txt['pm_visual_verification_desc'], '" /><br />';
else
echo '
<img src="', $context['verificiation_image_href'], ';letter=1" alt="', $txt['pm_visual_verification_desc'], '" />
<img src="', $context['verificiation_image_href'], ';letter=2" alt="', $txt['pm_visual_verification_desc'], '" />
<img src="', $context['verificiation_image_href'], ';letter=3" alt="', $txt['pm_visual_verification_desc'], '" />
<img src="', $context['verificiation_image_href'], ';letter=4" alt="', $txt['pm_visual_verification_desc'], '" />
<img src="', $context['verificiation_image_href'], ';letter=5" alt="', $txt['pm_visual_verification_desc'], '" /><br />';
echo '
<a href="', $context['verificiation_image_href'], ';sound" onclick="return reqWin(this.href, 400, 120);">', $txt['pm_visual_verification_listen'], '</a><br /><br />
<input type="text" name="visual_verification_code" size="30" tabindex="', $context['tabindex']++, '" />
<div class="smalltext">', $txt['pm_visual_verification_desc'], '</div>
</td>
</tr>';
}
}



PS: It can be enabled via AdminCP -> Features and Options -> Use reCAPTCHA Verification System

Thanks!

Maybe someone know how to enable recaptcha for guest posting in SMF 1.1?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on October 04, 2009, 02:08:28 PM
Sorry, I don't really have time to troubleshoot code outside the scope of this modification. If you just want something that will add a verification on guest activities, check out Visual Verification Options.
Title: Re: reCAPTCHA for SMF
Post by: MrDby on October 04, 2009, 03:01:58 PM
3.     Execute Modification     ./Themes/default/Register.template.php     Test failed
Title: Re: reCAPTCHA for SMF
Post by: miranon on October 04, 2009, 03:06:03 PM
Quote from: Motoko-chan on October 04, 2009, 02:08:28 PM
Sorry, I don't really have time to troubleshoot code outside the scope of this modification. If you just want something that will add a verification on guest activities, check out Visual Verification Options.

The problem is that the default visual verification system doesn't work on my forum. So I'm searching for an alternative now for guest posting and sending pm's.

Maybe someone else can help?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on October 04, 2009, 03:39:43 PM
Quote from: miranon on October 04, 2009, 03:06:03 PM
The problem is that the default visual verification system doesn't work on my forum.

Link to your site, please.
Title: Re: reCAPTCHA for SMF
Post by: Mayhem30 on October 15, 2009, 02:11:04 PM
I have a small issue with this mod.

It appears you don't have to be 100% accurate when entering in the verification letters.

It showed me : humble sharp

I entered in : humble shape

And it accepted it as the right words and continued with registration. Is this normal?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on October 15, 2009, 03:00:14 PM
Quote from: Mayhem30 on October 15, 2009, 02:11:04 PM
It appears you don't have to be 100% accurate when entering in the verification letters.

It showed me : humble sharp

I entered in : humble shape

And it accepted it as the right words and continued with registration. Is this normal?

Yes, it can be. Likely, humble was the test word. For more, read up on how the ReCaptcha system works.
Title: Re: reCAPTCHA for SMF (on posts for guests question)
Post by: Anarchology on October 22, 2009, 04:53:45 PM
Hi,

I've got a somewhat related question about using reCaptcha on SMF forums, but instead of on the Registration page, the reCaptcha to only show up for Guest posting. I've been working with the reCaptcha trying to properly incorporate it into the post page, but running into some road blocks.

Apologies for cross-thread posting, but its probably easier than copy pasting all of my toying with this idea...
http://www.simplemachines.org/community/index.php?topic=340832.0

I'm wondering if the Mod creator can maybe shed some incite. Also, this might be an idea for either an addon to this current mod or a completely new one! ;D
Title: Re: reCAPTCHA for SMF
Post by: ɔɔɔɔɔɔuɥoɾ on October 22, 2009, 05:04:09 PM
I believe it should, all the settings related to the default SMF captcha screen apply to the reCAPTCHA now :)
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on October 22, 2009, 06:54:22 PM
Quote from: Anarchology on October 22, 2009, 04:53:45 PM
I've got a somewhat related question about using reCaptcha on SMF forums, but instead of on the Registration page, the reCaptcha to only show up for Guest posting. I've been working with the reCaptcha trying to properly incorporate it into the post page, but running into some road blocks.

This functionality exists in SMF 2.0. This modification only replaces the default SMF Image Verification where it displays by default. Since IV isn't in the post or search forms in the 1.1 code, this modification won't show up there.


Quote from: Anarchology on October 22, 2009, 04:53:45 PM
I'm wondering if the Mod creator can maybe shed some incite. Also, this might be an idea for either an addon to this current mod or a completely new one! ;D

If you are using the SMF 1.1 branch, look at Visual Verification Options (http://custom.simplemachines.org/mods/index.php?mod=734), which integrates the default SMF Image Verification into guest posts and searches. I have thought about a modification that will extend that to support this mod, but haven't had the time.
Title: Re: reCAPTCHA for SMF
Post by: Mayhem30 on October 29, 2009, 09:57:22 PM
There is nothing to indicate to the users that they have to enter the 2 words above to complete the registration.

Could you please advice me how to add this in?
Title: Re: reCAPTCHA for SMF
Post by: Srinib on October 31, 2009, 03:24:47 PM
i have a question regarding this mod.
this captcha verification appears only at the time of registration or also while posting and replying for a post?
Title: Re: reCAPTCHA for SMF
Post by: Mayhem30 on October 31, 2009, 09:56:58 PM
I'm using the mod and it only shows on registration.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on October 31, 2009, 10:55:33 PM
Quote from: Srinib on October 31, 2009, 03:24:47 PM
i have a question regarding this mod.
this captcha verification appears only at the time of registration or also while posting and replying for a post?

Quote from: Mayhem30 on October 31, 2009, 09:56:58 PM
I'm using the mod and it only shows on registration.

Please read at least the last few posts before posting. I answered those questions right above you:


Quote from: Motoko-chan on October 22, 2009, 06:54:22 PM
Quote from: Anarchology on October 22, 2009, 04:53:45 PM
I've got a somewhat related question about using reCaptcha on SMF forums, but instead of on the Registration page, the reCaptcha to only show up for Guest posting. I've been working with the reCaptcha trying to properly incorporate it into the post page, but running into some road blocks.

This functionality exists in SMF 2.0. This modification only replaces the default SMF Image Verification where it displays by default. Since IV isn't in the post or search forms in the 1.1 code, this modification won't show up there.


Quote from: Anarchology on October 22, 2009, 04:53:45 PM
I'm wondering if the Mod creator can maybe shed some incite. Also, this might be an idea for either an addon to this current mod or a completely new one! ;D

If you are using the SMF 1.1 branch, look at Visual Verification Options (http://custom.simplemachines.org/mods/index.php?mod=734), which integrates the default SMF Image Verification into guest posts and searches. I have thought about a modification that will extend that to support this mod, but haven't had the time.
Title: Re: reCAPTCHA for SMF
Post by: smartmouse on November 09, 2009, 11:51:41 AM
Does this plugin still work?
Today i discover it stopped to work because i can't write in the captcha box.
Please check it...
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 09, 2009, 12:07:37 PM
Yes, it should still work for the versions of SMF it has been tested with.
Title: Re: reCAPTCHA for SMF
Post by: smartmouse on November 10, 2009, 01:34:23 PM
Quote from: Motoko-chan on November 09, 2009, 12:07:37 PM
Yes, it should still work for the versions of SMF it has been tested with.

Thank you for your reply! Please can you check it on my site?
http://www.mo*eywa*tersforum.com/index.php?action=register

* = n
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 10, 2009, 01:42:23 PM
I see it showing just fine. The text is there, but it's the same color as the background. Using a different reCAPTCHA theme might solve it. There is also a solution posted earlier in this topic to fix the input textbox color.
Title: Re: reCAPTCHA for SMF
Post by: smartmouse on November 10, 2009, 04:16:29 PM
Quote from: Motoko-chan on November 10, 2009, 01:42:23 PM
I see it showing just fine. The text is there, but it's the same color as the background. Using a different reCAPTCHA theme might solve it. There is also a solution posted earlier in this topic to fix the input textbox color.

Do you mean this solution?
http://www.simplemachines.org/community/index.php?topic=213535.msg2222899#msg2222899


PS: How to change reCAPTCHA theme?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 10, 2009, 04:24:57 PM
Quote from: smartmouse on November 10, 2009, 04:16:29 PM
Do you mean this solution?
http://www.simplemachines.org/community/index.php?topic=213535.msg2222899#msg2222899

Yes. That should still work.

Quote from: smartmouse on November 10, 2009, 04:16:29 PM
PS: How to change reCAPTCHA theme?

Same page where you enter the keys.
Title: Re: reCAPTCHA for SMF
Post by: king kratos on November 11, 2009, 02:19:07 AM
Any chance you are working on updating this for RC2? I love this mod and it is much better than the built in system.

Kratos
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 11, 2009, 02:27:26 AM
I'm in a bit of a busy period right now, but I do plan to update things as soon as I can.

There is a chance it might work if you emulate versions as it doesn't change any template files in 2.0.
Title: Re: reCAPTCHA for SMF
Post by: king kratos on November 11, 2009, 02:33:14 AM
Well, I don't see the version emulator in my packages section anymore. If I were to manually install this, it could possible work? I haven't looked at what files it changes.

*Kratos thinks that he should probably go look at the code before sticking his foot in his mouth.....

I'll check that out and see what happens.

Kratos
Title: Re: reCAPTCHA for SMF
Post by: king kratos on November 11, 2009, 03:28:39 AM
I got it set up and it works great! Here are some changes that need to be made to the package to make the package manager work properly:
First: The third line of this code does not exist in RC2 so, just remove the third line and it will work.
./Sources/ManageSettings.php

// Clever Thomas, who is looking sheepy now? Not I, the mighty sword swinger did say. array('title', 'setup_verification_questions'), array('title', 'setup_verification_questions_desc', 'class' => 'windowbg'),

Remove third line to look like this:

// Clever Thomas, who is looking sheepy now? Not I, the mighty sword swinger did say. array('title', 'setup_verification_questions'),


Second: This line has additional code added to it, so the second code I post for this is what needs to be used.
./Themes/default/GenericControls.template.php

<input type="text" name="', $verify_id, '_vv[code]" value="', !empty($verify_context['text_value']) ? $verify_context['text_value'] : '', '" size="30" tabindex="', $context['tabindex']++, '" /> </div>';

This is what needs to be used to find the correct spot to place the correct code:

<input type="text" name="', $verify_id, '_vv[code]" value="', !empty($verify_context['text_value']) ? $verify_context['text_value'] : '', '" size="30" tabindex="', $context['tabindex']++, '" class="input_text" />
</div>';


Everything else worked properly for the "find" and "replace/add before/add after". The only thing that is not working properly is the alignment of the reCaptcha box on all pages except the custom form mod. It is aligned left instead of centered. It shows up centered on the custom form mod. I have attached three screen shots to show you this. The first is on the registration page, and the second is on the custom form mod (for guests), and the third is on the search page (for guests).

If you could give me some pointers about the alignment of the box, I would be very appreciative. I have looked, but just cannot seem to figure it out.

Thank you,
Kratos
Title: Re: reCAPTCHA for SMF
Post by: smartmouse on November 11, 2009, 01:23:58 PM
Quote
Quote from: smartmouse on November 10, 2009, 04:16:29 PMPS: How to change reCAPTCHA theme?
Same page where you enter the keys.
I found it... but it did not work with my dark theme :(

Quote
Quote from: smartmouse on November 10, 2009, 04:16:29 PMDo you mean this solution?
http://www.simplemachines.org/community/index.php?topic=213535.msg2222899#msg2222899
Yes. That should still work.
It worked! Thank you!
Title: Re: reCAPTCHA for SMF
Post by: Aoife on November 13, 2009, 06:51:55 AM
Is this  being updated for SMF 2.0 RC2?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 13, 2009, 10:35:46 AM
Please at least read the last page or two before asking your question, I might have already answered it:

Quote from: Motoko-chan on November 11, 2009, 02:27:26 AM
I'm in a bit of a busy period right now, but I do plan to update things as soon as I can.

There is a chance it might work if you emulate versions as it doesn't change any template files in 2.0.
Title: Re: reCAPTCHA for SMF
Post by: vbgamer45 on November 14, 2009, 03:08:32 PM
Thanks for the mod! This is one of the mods that I can't live without and use it on all my sites
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 14, 2009, 09:30:42 PM
Quote from: king kratos on November 11, 2009, 03:28:39 AM
The only thing that is not working properly is the alignment of the reCaptcha box on all pages except the custom form mod. It is aligned left instead of centered. It shows up centered on the custom form mod. I have attached three screen shots to show you this. The first is on the registration page, and the second is on the custom form mod (for guests), and the third is on the search page (for guests).

If you could give me some pointers about the alignment of the box, I would be very appreciative. I have looked, but just cannot seem to figure it out.

Thank you,
Kratos

To match the centered verification image, add the following at the end of css/index.css:


/* Make the reCAPTCHA dialog centered to match the positioning of the built-in verification */
.centertext #recaptcha_table
{
margin: 0 auto !important;
}


I'm working on updating to RC2 right now, and that will be included in the updated pack when it is uploaded.
Title: Re: reCAPTCHA for SMF
Post by: PalmBeachPreps on November 14, 2009, 10:24:36 PM
QuoteI'm working on updating to RC2 right now, and that will be included in the updated pack when it is uploaded.
Great to hear, I can't wait to get this up and running on my forum again!
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 14, 2009, 10:26:37 PM
2.0 RC2 compatible version is now posted. Updated for Curve and dropped support for older 2.0 versions. No other changes made.
Title: Re: reCAPTCHA for SMF
Post by: dr.wills on November 14, 2009, 10:31:12 PM
I think reCaptcha is the absolute protection from spammer, isn't it?

Does anyone know any incident that recaptcha fails to protect?

I think you should put it as a default feature in smf ;)
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 15, 2009, 01:04:18 AM
There are Indian (the country) shops where low-paid workers crack these things (full API for spambots to use), so it's not perfect protection. If you are a small site, you are probably under the radar, but higher-profile sites are still in danger. When one can buy several thousand completely accurate solutions for a few dollars, it's really economical to bypass this type of hurdle.

reCAPTCHA will probably never be in by default because it is an external service. The developers try to keep SMF from depending on outside services, something I agree with.
Title: Re: reCAPTCHA for SMF
Post by: PalmBeachPreps on November 15, 2009, 02:58:00 AM
Thank you.  Effortless install!
Title: Re: reCAPTCHA for SMF
Post by: Mystiquo on November 15, 2009, 04:41:11 AM
can i change the word "Type the two word" in Italian version? how can i do insert line middle in the word for up difficulty?
Thanks
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 15, 2009, 12:26:52 PM
Quote from: Mystiquo on November 15, 2009, 04:41:11 AM
can i change the word "Type the two word" in Italian version? how can i do insert line middle in the word for up difficulty?
Thanks

reCAPTCHA doesn't support Italian currently. You'd need to do a whole custom reCAPTCHA theme to add your own language strings.

You can't put any lines in the image, it's served from an external service.
Title: Re: reCAPTCHA for SMF
Post by: Mystiquo on November 15, 2009, 12:59:07 PM
how can i do insert line middle in the word for up difficulty?
Title: Re: reCAPTCHA for SMF
Post by: king kratos on November 15, 2009, 01:19:39 PM
Quote from: Mystiquo on November 15, 2009, 12:59:07 PM
how can i do insert line middle in the word for up difficulty?

Quote from: Motoko-chan on November 15, 2009, 12:26:52 PM
Quote from: Mystiquo on November 15, 2009, 04:41:11 AM
can i change the word "Type the two word" in Italian version? how can i do insert line middle in the word for up difficulty?
Thanks

reCAPTCHA doesn't support Italian currently. You'd need to do a whole custom reCAPTCHA theme to add your own language strings.

You can't put any lines in the image, it's served from an external service.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 15, 2009, 02:00:16 PM
Quote from: Mystiquo on November 15, 2009, 12:59:07 PM
how can i do insert line middle in the word for up difficulty?

Not possible. It's a service and generated automatically.
Title: Re: reCAPTCHA for SMF
Post by: Mystiquo on November 15, 2009, 05:31:38 PM
ok thanks for all scuse me, but im not speak english first i don't understand very well
but how can i do whole custom reCAPTCHA theme ?       
but it is also possible that I put only Italian words?
I will have the line in words randomly or never?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 15, 2009, 05:54:19 PM
Quote from: Mystiquo on November 15, 2009, 05:31:38 PM
but how can i do whole custom reCAPTCHA theme ?       

http://recaptcha.net/apidocs/captcha/client.html

Read sections "Look & Feel Customization" and "Custom Theming".

Quote from: Mystiquo on November 15, 2009, 05:31:38 PM
but it is also possible that I put only Italian words?

Languages other than what the service supports must use a custom theme. All reCAPTCHA challenge words will be English or used in an English-language book.


Quote from: Mystiquo on November 15, 2009, 05:31:38 PM
I will have the line in words randomly or never?

It depends on what the service does.
Title: Re: reCAPTCHA for SMF
Post by: id820 on November 17, 2009, 12:09:06 PM
 hey great mod, but i cant see the mod options on adm pannel, im using a custom theme, called loner, i tried uploading the defualt/language/modifications to the loner languages folder but still not working, can anyone help me please? thanks
Title: Re: reCAPTCHA for SMF
Post by: Beagleboys on November 18, 2009, 10:56:30 AM
Italian translation:
(insert this code in modification.italian.php in the theme/language directory before the "?>" code)

//reCAPTCHA for SMF
$txt['recaptcha_configure'] = 'Sistema di Verifica reCAPTCHA';
$txt['recaptcha_configure_desc'] = 'Usa il sistema di verifica reCAPTCHA. Non hai una chiave per reCAPTCHA? <a href="http://recaptcha.net/api/getkey?app=recaptcha_for_smf"> Ottieni qui la tua chiave reCAPTCHA!</a>.';
$txt['recaptcha_enabled'] = 'Usa il sistema di verifica reCAPTCHA';
$txt['recaptcha_enable_desc'] = '(Questo sostituiirà il tuo sistema di verifica con reCAPTCHA)';
$txt['recaptcha_theme'] = 'Tema reCAPTCHA';
$txt['recaptcha_theme_clean'] = 'Clean';
$txt['recaptcha_theme_blackglass'] = 'Black Glass';
$txt['recaptcha_theme_red'] = 'Red';
$txt['recaptcha_theme_white'] = 'White';
$txt['recaptcha_public_key'] = 'reCAPTCHA Public Key';
$txt['recaptcha_private_key'] = 'reCAPTCHA Private Key';
$txt['recaptcha_no_key_question'] = 'Non hai una chiave per reCAPTCHA?';
$txt['recaptcha_get_key'] = 'Ottieni qui la tua chiave reCAPTCHA!';


just a question to the author: is possible to translate also the captcha module itself? i mean:
when it says: "insert two words here:"
i need it to say: "scrivi qui le due parole:"
Title: Re: reCAPTCHA for SMF
Post by: id820 on November 18, 2009, 01:00:55 PM
Quote from: id820 on November 17, 2009, 12:09:06 PM
hey great mod, but i cant see the mod options on adm pannel, im using a custom theme, called loner, i tried uploading the defualt/language/modifications to the loner languages folder but still not working, can anyone help me please? thanks

nvm, fixed i just erased teh cache
Title: Re: reCAPTCHA for SMF
Post by: CrankyOldguy on November 20, 2009, 01:44:52 PM
Folks, the reCaptcha mod is no longer a deterrent to the spambot...

3 different forums that I'm on have just recently had spambots register.  All 3 forums had reCaptcha installed.  When I googled a string in the bot's signature line, I saw 50,000 similar posts yesterday.  Today that same search yields 53,000 posts.

It's not just SMF it's cracked, I'm seeing it on every forum package (phpBB, vBulletin, Invision, etc.)  I looked at a double-handful of Google results for the 'bot post, and nearly all of them had reCaptcha, only a few had the forum's default captcha.

Here we go again.  >:(  Now I'm off to find a NEW method to defeat automated posts.
Title: Re: reCAPTCHA for SMF
Post by: imrich on November 20, 2009, 01:49:40 PM
Quote from: CrankyOldguy on November 20, 2009, 01:44:52 PM
Folks, the reCaptcha mod is no longer a deterrent to the spambot...

3 different forums that I'm on have just recently had spambots register.  All 3 forums had reCaptcha installed.  When I googled a string in the bot's signature line, I saw 50,000 similar posts yesterday.  Today that same search yields 53,000 posts.

It's not just SMF it's cracked, I'm seeing it on every forum package (phpBB, vBulletin, Invision, etc.)  I looked at a double-handful of Google results for the 'bot post, and nearly all of them had reCaptcha, only a few had the forum's default captcha.

Here we go again.  >:(  Now I'm off to find a NEW method to defeat automated posts.

Yes, one of my forums that had reCAPTCHA was hit by a spambot just in the past few days.

Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 20, 2009, 01:59:34 PM
Indeed, it's not as effective as it used to be. There are actual companies in India with real humans that offer "text processing" services which are really just CAPTCHA-breaking operations. They provide an API for software to use, and charge a few dollars per thousand correct answers. Check out the article Inside India's CAPTCHA solving economy (http://blogs.zdnet.com/security/?p=1835).

I highly recommend using SMF 2.0's question/answer system, or the backport of this feature, Anti-Spam Verification Questions (http://custom.simplemachines.org/mods/index.php?mod=1516). Yes, that does work with 1.1.10. With this solution, you get a fully custom system that will stop all automated attacks and slow down humans.
Title: Re: reCAPTCHA for SMF
Post by: dr.wills on November 20, 2009, 05:41:14 PM
What I recommend is that, you have to use recaptcha in combination with several question in your forum language, for example
my forum is vietnamese, so I use recaptcha + vietnamese questions

bot can't solve recaptcha that easily
real human Indian just can't read my language.

You will be quite safe
Title: Re: reCAPTCHA for SMF
Post by: Tiribulus on November 20, 2009, 06:51:42 PM
Quote from: akai1412 on November 20, 2009, 05:41:14 PM
What I recommend is that, you have to use recaptcha in combination with several question in your forum language, for example
my forum is vietnamese, so I use recaptcha + vietnamese questions

bot can't solve recaptcha that easily
real human Indian just can't read my language.

You will be quite safe

Don't take this the wrong way, but while that may work for Vietnamese I'm pretty sure English sites won't be helped by this  :)
Title: Re: reCAPTCHA for SMF
Post by: Beagleboys on November 21, 2009, 06:04:49 AM
Quote from: Tiribulus on November 20, 2009, 06:51:42 PM
Quote from: akai1412 on November 20, 2009, 05:41:14 PM
What I recommend is that, you have to use recaptcha in combination with several question in your forum language, for example
my forum is vietnamese, so I use recaptcha + vietnamese questions

bot can't solve recaptcha that easily
real human Indian just can't read my language.

You will be quite safe

Don't take this the wrong way, but while that may work for Vietnamese I'm pretty sure English sites won't be helped by this  :)
put error in the phrase. wrong grammar and bad written word will help.
also if akismet get upgraded for smf2.0... we will solve the problem
Title: Re: reCAPTCHA for SMF
Post by: c-o-d-e on November 28, 2009, 10:12:18 PM
This is a good mod, how do you center it? Is it possible for you to edit this mod so you can add the security questions too. As I believe you cant use the security questions ASWELL as this mod.
Title: Re: reCAPTCHA for SMF
Post by: king kratos on November 28, 2009, 10:51:43 PM
Quote from: c-o-d-e on November 28, 2009, 10:12:18 PM
This is a good mod, how do you center it? Is it possible for you to edit this mod so you can add the security questions too. As I believe you cant use the security questions ASWELL as this mod.

I believe that the recaptcha picture being centered is being worked on currently.

I am using the security questions alongside this mode with no problems whatsoever.

Kratos
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 29, 2009, 10:09:37 AM
In the latest release, it should be centered in all instances where it makes sense. If you find a page where it should behave different, please post which page it is.

In 2.0 at least, you can use the security questions in addition to this. I'm not sure about the backported feature for 1.1.
Title: Re: reCAPTCHA for SMF
Post by: c-o-d-e on November 29, 2009, 10:58:24 AM
I am using 2.0, and I have turned on security questions, but they don't come up when I use recaptcha.
Title: Re: reCAPTCHA for SMF
Post by: Rome on December 20, 2009, 11:45:20 PM
I installed this mod, and now not only does it not work, but I can no longer log in. The login field tells me I haven't entered a username.
Title: Re: reCAPTCHA for SMF
Post by: demonoid on January 13, 2010, 07:17:47 PM
HI!
This mod works fine until someone fill in all info, mail etc and then click register. Then shows blank page and says "Could Not Open Socket".
How that problem can be fixed would you be so kind to explain.
Thanks.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 13, 2010, 08:18:19 PM
Quote from: demonoid on January 13, 2010, 07:17:47 PM
This mod works fine until someone fill in all info, mail etc and then click register. Then shows blank page and says "Could Not Open Socket".
How that problem can be fixed would you be so kind to explain.

You'll need to talk to your host about this. It means that the server your site is on cannot talk to the reCAPTCHA service to verify the entry.
Title: Re: reCAPTCHA for SMF
Post by: demonoid on January 13, 2010, 08:26:55 PM
Quote from: Motoko-chan on January 13, 2010, 08:18:19 PM
Quote from: demonoid on January 13, 2010, 07:17:47 PM
This mod works fine until someone fill in all info, mail etc and then click register. Then shows blank page and says "Could Not Open Socket".
How that problem can be fixed would you be so kind to explain.

You'll need to talk to your host about this. It means that the server your site is on cannot talk to the reCAPTCHA service to verify the entry.

Talked to them now, and they said this:
"You have to allow connections the IP address of the host to which is trying to connect the module reCAPTCHA. You can do this from the Outgoing Connections Manager section in the Control Panel. Everything should be fine then."

And now I dont know to what IP is trying to connect and stuff ... :S

Thanks for such fast answer.
Title: Re: reCAPTCHA for SMF
Post by: chetanmadaan on January 14, 2010, 05:36:07 PM
i installed this mod but not working.

can someone help.

even if we enter right characters... it's gonna say now.

http://www.xflagfootball.com/mb/index.php?action=register
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 14, 2010, 06:32:03 PM
I've seen this happen on occasion, it seems to be a disconnect with the remote service. Ensure both of your keys are entered correctly, there should be no spaces at the end (this is common if you copy/pasted the keys from the reCAPTCHA website).

Beyond that, I haven't been able to reproduce the issue consistently, and haven't seen it happen on anything I manage in quite some time.
Title: Re: reCAPTCHA for SMF
Post by: ret on January 16, 2010, 02:16:01 AM
My forum is having issues with PM spam. I was really hopeful this mod might also integrate with the "Post count under which users must enter code when sending personal messages" option in Basic Features, but sadly not.

Has anyone done this, or are there plans to add this to the mod in the future?

cheers
RET
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 16, 2010, 11:33:45 AM
ret, what version of SMF? I'm guessing one of the 2.0 releases but i want to be sure.
Title: Re: reCAPTCHA for SMF
Post by: ret on January 16, 2010, 07:42:14 PM
Hi Motoko-chan.

Still running 1.1.10 (http://www.fefcholden.org.au/forum/index.php).

Thanks for the quick reply.

cheers
RET
Title: Re: reCAPTCHA for SMF
Post by: Natovr on January 19, 2010, 10:59:04 AM
Hi, I've recently installed this reCAPTCHA package on a forum which uses SMF version 1.1.11, yet the "Admin > Registration > Settings" screen stays default.. no additional text boxes or any other changes. I also tried the addon recently suggested:
http://custom.simplemachines.org/mods/index.php?mod=1516
Still no change... what could be wrong? :-\
Title: Re: reCAPTCHA for SMF
Post by: Goad on January 19, 2010, 02:50:18 PM
i have this installed...but i was still getting spammers. so i tried to register without typing in the characters, but i still was able to register  >:(
Title: Re: reCAPTCHA for SMF
Post by: asciident on January 21, 2010, 03:14:44 AM
Quote from: c-o-d-e on November 29, 2009, 10:58:24 AM
I am using 2.0, and I have turned on security questions, but they don't come up when I use recaptcha.

This for me too. I guess I will temporarily go back to using SMF's captcha along with the security question. I cannot see an easy way to make them both show up.
Title: Re: reCAPTCHA for SMF
Post by: panthrax on January 24, 2010, 09:33:47 PM
Hi, I'm having problems getting this installed. The only thing I'm getting in the options area are a check box and text boxes. A couple pages back a guy said he was getting the same thing, and cleared the cache to fix it, but I wasn't running a cache before, and after turning it on, I can't turn it back off. Any ideas how to fix this?

Please see this image for what I'm seeing:

img62.imageshack.us/my.php?image=optionso.png
Title: Re: reCAPTCHA for SMF
Post by: societyofrobots on February 03, 2010, 12:24:49 AM
FYI: reCAPTCHA stopped the spam bots for about a year. But since late 2009 they have now figured out a way to bypass this mod.

I got 5 new fake registrations per day until I installed Anti-Bot Registration Puzzles in tandem.
Title: Re: reCAPTCHA for SMF
Post by: FragaCampos on February 06, 2010, 11:11:52 AM
This mod is no longer working  :( :(
I just need to type something in the recaptcha box and the registration is accepted  :o

Help?
Title: Re: reCAPTCHA for SMF
Post by: drzflow15 on February 10, 2010, 05:29:47 PM
i installed the recaptcha mod and when i activate it for registration, no matter what the user puts even if is the right code in the image the reCaptcha says the code doesn't match the code on the picture?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 10, 2010, 11:34:47 PM
drzflow15, make sure the keys you put in are correct. Often, there will be a space at the end that shouldn't be there when you copy the keys.
Title: Re: reCAPTCHA for SMF
Post by: chluaid on February 15, 2010, 05:56:28 PM
Hi, I've just installed reCAPTCHA for the first time and the only result is 5 new pages in the error log and a few blank fields in Admin > Registration > Settings. My board is 1.1.11

Any suggestions?


Screenshot: http://www.bitey.com/images/settings.png
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 15, 2010, 06:56:55 PM
chluaid, looks like missing language strings. Are you running a UTF language variant? What happens if you switch your language to default English?
Title: Re: reCAPTCHA for SMF
Post by: chluaid on February 15, 2010, 07:14:17 PM
Thanks for the quick response!
If you mean Server Settings > Core Config > Default Forum Language, yes it's set to English. I'm using an outdated theme though, could that have anything to do with it?
Title: Re: reCAPTCHA for SMF
Post by: GJSchaller on February 27, 2010, 10:44:31 AM
Hello,

I'm running SMF 1.1.11 connected to a Joomla install using JFusion.  My Joomla site has a form plugin that uses reCAPTCHA for spam prevention, and it works well (I have the keys already, and haven't had any spam submissions since I installed it).

I was able to install this mod in my SMF, and it appeared normally on the Registration page.  However, it looks like when it was calling the reCAPTCHA APIs, it was conflicting with the API calls made by the Joomla plugin earlier on the page.  I tried commenting out a majority of the calls, and it then stopped giving the PHP errors, but at that point, no matter what I put in the reCAPTCHA field, SMF would insist that the letters didn't match.

I realize this may be a lost cause due to the Joomla integration, but am hoping there's a way to modify the API calls to work with the plugin that is also using it.  Motoko-sensei, I'd be willing to let you take a peek at the code on my site if you would like.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 27, 2010, 01:41:54 PM
Sorry, but I really don't have the time to support multi-integration like you are using. My best guess is that if you are wrapping the forum, the form input is being overridden by the implementation on the Joomla! side. The form input values can't be easily changed since they are being generated by the reCPATHCA service itself.
Title: Re: reCAPTCHA for SMF
Post by: GJSchaller on February 27, 2010, 02:37:30 PM
No worries - that's enough of a hint that I can talk to the author of the plugin, and see if they can update it.  Thank you!
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 02, 2010, 06:53:25 PM
Quote from: Goad on January 19, 2010, 02:50:18 PM
i have this installed...but i was still getting spammers. so i tried to register without typing in the characters, but i still was able to register  >:(

Sorry, I can't reproduce this with the latest version of the modification on SMF 2.0 RC2.


I also recall an older post where this was preventing the security questions from showing. I cannot reproduce this either.
Title: Re: reCAPTCHA for SMF
Post by: nicole_2008 on March 10, 2010, 08:18:49 AM
Hey :D

Is a version for RC3 going to be released? just asking as the RC2 one has stopped working for me since upgrading :(

Thanks
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 10, 2010, 11:49:08 AM
Yes, but not right now. I'm currently running late for work.
Title: Re: reCAPTCHA for SMF
Post by: Greymalkin on March 10, 2010, 01:13:52 PM
Does this mod apply only to registration or does it also generate a captcha image for posting?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 10, 2010, 02:04:29 PM
Quote from: Greymalkin on March 10, 2010, 01:13:52 PM
Does this mod apply only to registration or does it also generate a captcha image for posting?

It replaces the image verification where SMF displays it. For 1.1, this is registration only. For 2.0, it is also in the other areas that the image verification shows, including guest posts and new posters - if you are using that feature.
Title: Re: reCAPTCHA for SMF
Post by: meko me on March 12, 2010, 03:52:38 AM
please update rc3 please :)
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 12, 2010, 10:21:02 AM
I do have a job and other obligations, so I just haven't found the time to update yet. The more people ask, the less motivated I will be to update anytime soon.
Title: Re: reCAPTCHA for SMF
Post by: Bugo on March 14, 2010, 08:15:42 AM
Please add russian translation => these files in attachments.
Title: Re: reCAPTCHA for SMF
Post by: Aoife on March 14, 2010, 08:32:34 AM
Just wanted to say thank you for this addon and for the update!   ;D
Title: Re: reCAPTCHA for SMF
Post by: Greymalkin on March 14, 2010, 06:01:55 PM
Quote from: Motoko-chan on March 10, 2010, 02:04:29 PM
It replaces the image verification where SMF displays it. For 1.1, this is registration only. For 2.0, it is also in the other areas that the image verification shows, including guest posts and new posters - if you are using that feature.

Excellent, sounds perfect. :)

I've hit a snag trying to install it with my custom theme, though.  When I try to pull up the parsing instructions for 2.0 RC 2 it says it's not supported for that version.  And, when I try to use the RC3 instructions for index.css edits (the only ones I need to make), I'm directed to "?> at the end of the file" but there's no ?> there. 

Help, please? :)
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 14, 2010, 06:27:05 PM
Stick the CSS changes at the end of the file. The mod parser displays it as looking for a ?> at the end of the file, but it doesn't actually do that for CSS files.
Title: Re: reCAPTCHA for SMF
Post by: Greymalkin on March 14, 2010, 08:04:35 PM
Okay, it's installed.  Unfortunately, no image is appearing (just a question mark in a little blue box).  My theme doesn't have a GenericControls.template file.  Should I copy the one from the default theme, and will that fix the problem?

EDIT:  duh.  Helps if I turn it on.  Nevermind and thanks. :)
Title: Re: reCAPTCHA for SMF
Post by: wlchase on March 15, 2010, 06:46:37 PM
Sooo.... I started to install the new version, and my board told me there was no uninstall for the old one. I cracked out the editor and did my best to revert the changes manually.  Then it wouldn't install the new version, so I go back and follow the manual installation instructions.

I have 2 issues now. One is no biggie, the "Use reCaptcha" text next to the selection box to enable it is missing. The selection box is there and works.

The bigger issue, which I confess I never tried before today, is that if I try to register, and try the spoken text, it never seems to match the written text.

Thanks for any help.
Bill

Sorry, SMF 1.1.11, reCaptcha 0.9.8
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 15, 2010, 07:05:35 PM
Quote from: wlchase on March 15, 2010, 06:46:37 PM
Sooo.... I started to install the new version, and my board told me there was no uninstall for the old one. I cracked out the editor and did my best to revert the changes manually.  Then it wouldn't install the new version, so I go back and follow the manual installation instructions.

There haven't been any major changes for 1.1 in the newest versions. If you're running a very old version, the uninstall won't work unless you emulate an older SMF version.


Quote from: wlchase on March 15, 2010, 06:46:37 PM
I have 2 issues now. One is no biggie, the "Use reCaptcha" text next to the selection box to enable it is missing. The selection box is there and works.

The text should be in the language files, unless you are using a language not translated yet.


Quote from: wlchase on March 15, 2010, 06:46:37 PM
The bigger issue, which I confess I never tried before today, is that if I try to register, and try the spoken text, it never seems to match the written text.

That is correct. The spoken words will be different from the written words.
Title: Re: reCAPTCHA for SMF
Post by: Denvious on March 16, 2010, 12:04:02 PM
Hello there,

Just managed to get recaptcha working on my forums. Great mod, except i have a small problem. The captcha image is floating to the left of the verification box.
Im running smf 2.0RC3 atm, and i'm wondering if there is currently a method to center the captcha. I've attempted to center it using the css file associated with the theme but it doesn't seem to work. Any hints?

Thanks
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 16, 2010, 02:27:00 PM
Denvious, link to the forum please.
Title: Re: reCAPTCHA for SMF
Post by: Denvious on March 19, 2010, 05:40:32 AM
Ive sent you a pm with the link Motoko-chan.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 19, 2010, 07:33:23 PM
Denvious, add the following CSS rule to index.css:


#recaptcha_area
{
    margin: auto;
}
Title: Re: reCAPTCHA for SMF
Post by: jay.clark on March 19, 2010, 09:18:34 PM
Quote from: jossanaijr on December 29, 2007, 05:56:50 AM
What's the advantage of this?

Dunno what the advantage is for SMF, however I checked out the reCaptcha website and got the PHP code.

I have a number of html forms on my sites to obtain user input and suggestions, and frankly was getting tired of the spam replies that were flooding in.

I implemented the reCaptcha stuff, and was able to come up with a single php file that.
1. Gathers the input
2. Validates the input
3. Uses reCaptcha to prevent the spam bots from filling in the blanks
4. Sends multiple emails with the contents of the user input
5. Sends the user a thank you email

Pretty slick, and the number of spam submission has gone to zero

jayr
Title: Re: reCAPTCHA for SMF
Post by: Denvious on March 20, 2010, 09:25:14 PM
Thanks Motoko-Chan, it worked =D.

Oh and to simplify how i fixed it, i just went into the Forum themes folder (because im using a different theme), and went into the css file. Then added Motoko-chan's code into the css file.

Thanks again!

Denvious
Title: How do I unpack
Post by: jman on April 09, 2010, 12:00:41 AM
Hello, how do i unpack and install this mod on my forum,
seeing it is in tar.gz format, is there a there a .zip version,
'cause i cant open it.

Thanks
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on April 09, 2010, 01:49:41 AM
Just install it through the package manager.
Title: Re: reCAPTCHA for SMF
Post by: jman on April 09, 2010, 09:14:22 AM
Thanks. ive done it and its working
Title: Re: reCAPTCHA for SMF
Post by: adamcanada on April 09, 2010, 10:02:57 PM
I am trying to install the newest version of this plugin on 2.0, RC2 but it says it doesn't support this version?
Title: Re: reCAPTCHA for SMF
Post by: flapjack on April 09, 2010, 10:20:06 PM
try emulate RC2 with Advanced options on your Packages screen
Title: Re: reCAPTCHA for SMF
Post by: adamcanada on April 09, 2010, 10:34:51 PM
I took out RC2 and just put 2.0, same error
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on April 09, 2010, 10:51:54 PM
The newest version supports 2.0 RC3. It will also probably support RC2, but I can't guarantee this. You should upgrade to RC3 anyway because of numerous security issues that were fixed.
Title: Re: reCAPTCHA for SMF
Post by: Tasoli on April 20, 2010, 03:43:47 PM
Greetings,

I am trying to install this mod and am getting the error

"3.     Execute Modification     ./Themes/default/Register.template.php     Test failed"

Any ideas what would cause this? Maybe another mod? Here are my forum details:

Version Information:
Forum version: SMF 1.1.11 (more detailed)
Current SMF version: SMF 1.1.11
PHP version: 5.2.8
MySQL version: 5.0.67.d7-ourdelta-log
Server version: Apache
GD version: bundled (2.0.34 compatible)

and here is a list of my installed mods (just in case it is known that one doesn't work with this one, I scanned this topic and didn't see one but maybe one of you knows of one from personal experience)

1.     Custom Copyright     1.2     [ Uninstall ]
2.    Redirection Boards    2.01    [ Uninstall ]
3.    Auto Merge Double Post    1.3    [ Uninstall ]
4.    Google Analytics Code    1.1    [ Uninstall ]
5.    Admin Ban Button in Post    1.1    [ Uninstall ]
6.    Ip to Country    1.3    [ Uninstall ]
7.    Book of Unknown Action    1.0    [ Uninstall ]
8.    Board Viewers Mod    1.2    [ Uninstall ]
9.    New In Topic View    1.1    [ Uninstall ]
10.    Maximum RSS News    1.0    [ Uninstall ]
11.    Ban List    2.0    [ Uninstall ]
12.    SMF Staff Page    1.7    [ Uninstall ]
13.    Aeva Media    1.1b    [ Uninstall ]
14.    Anti-Spam Verification Questions    1.02    [ Uninstall ]
15.    Stop Spammer    2.3.7    [ Uninstall ]
16.    Spam Me Not Mod    1.02    [ Uninstall ]
17.    Pretty URLs    1.0    [ Uninstall ]
18.    Color And BgColor BBCode Bar    3.3.1    [ Uninstall ]
19.    dQuoteSelection    2.4    [ Uninstall ]
20.    Spoiler Tag    0.7.2    [ Uninstall ]
21.    Tagging System    2.2.1    [ Uninstall ]
22.    Message index like vbulletin    0.1    [ Uninstall ]
23.    Akismet Spam Blocking    1.2 Beta 2    [ Uninstall ]
24.    Anti Bot: Captcha Clock    2.2    [ Uninstall ]

Thank you in advance,
Tasoli
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on April 20, 2010, 06:01:55 PM
It's probably one of the other modifications, most likely Anti-Spam Verification Questions as it would modify the registration template as well. You'll need to apply that part manually if you want to install this modification.
Title: Re: reCAPTCHA for SMF
Post by: Meister GN006 on April 20, 2010, 06:47:50 PM
I have no experience with php, but it has fallen on me to keep our gaming website up and running. I got sick and tired of having to manually approve each and every account via admin account due to all the spam we were getting so I made the move from phpbb3 to SMF and immediately tried to get ReCaptcha working immediately. This works just dandy with the default forum theme, but unfortunately its not even close to our website theme. I tried to make the font small so I didnt have a giant post with all the errors I'm getting. Any help would be greatly appreciated after scouring these boards for the last 2 hours I haven't found anything remotely helpful.

My Registration --> Settings --> ReCaptcha area looks exactly like chluaid's window in reply #308 (http://www.simplemachines.org/community/index.php?topic=213535.msg2502665#msg2502665) back on 02/15/2010. Like him I am only using english & not english-utf8 file.

Undefined index: recaptcha_get_key
File: /home/username/public_html/forums/Themes/wow-dk119v1/Register.template.php (admin_settings sub template - eval?)
Line: 699


Undefined index: recaptcha_no_key_question
File: /home/username/public_html/forums/Themes/wow-dk119v1/Register.template.php (admin_settings sub template - eval?)
Line: 699


Undefined index: recaptcha_private_key
File: /home/username/public_html/forums/Themes/wow-dk119v1/Register.template.php (admin_settings sub template - eval?)
Line: 692


Undefined index: recaptcha_public_key
File: /home/username/public_html/forums/Themes/wow-dk119v1/Register.template.php (admin_settings sub template - eval?)
Line: 685


Undefined index: recaptcha_theme_white
File: /home/username/public_html/forums/Themes/wow-dk119v1/Register.template.php (admin_settings sub template - eval?)
Line: 680


Undefined index: recaptcha_theme_red
File: /home/username/public_html/forums/Themes/wow-dk119v1/Register.template.php (admin_settings sub template - eval?)
Line: 679


Undefined index: recaptcha_theme_blackglass
File: /home/username/public_html/forums/Themes/wow-dk119v1/Register.template.php (admin_settings sub template - eval?)
Line: 678



Undefined index: recaptcha_theme_clean
File: /home/username/public_html/forums/Themes/wow-dk119v1/Register.template.php (admin_settings sub template - eval?)
Line: 677


Undefined index: recaptcha_theme
File: /home/username/public_html/forums/Themes/wow-dk119v1/Register.template.php (admin_settings sub template - eval?)
Line: 673


Undefined index: recaptcha_enabled
File: /home/username/public_html/forums/Themes/wow-dk119v1/Register.template.php (admin_settings sub template - eval?)
Line: 666
Title: Re: reCAPTCHA for SMF
Post by: Tasoli on April 20, 2010, 09:22:24 PM
Quote from: Motoko-chan on April 20, 2010, 06:01:55 PM
It's probably one of the other modifications, most likely Anti-Spam Verification Questions as it would modify the registration template as well. You'll need to apply that part manually if you want to install this modification.

Thanks for your quick reply. If I were to uninstall all other mods I have that modify the registration template, do you think that my problem would go away? I don't use those mods anyways as they don't look good.
Title: Re: reCAPTCHA for SMF
Post by: Kob Ob Ob on April 20, 2010, 11:14:45 PM
Hi,

  I just installed this mod, everything look good and work perfectly with Google Chrome and FireFox. But with IE, I've got the Error. The recaptcha theme could not work and no input box for recaptcha, I have to click on get new word to get the new word and input box will show. The IE say this error



Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; yie8)
Timestamp: Wed, 21 Apr 2010 02:16:01 UTC


Message: Expected identifier, string or number
Line: 182
Char: 8
Code: 0
URI: http://www.aaaaaaaaaa.com/forum/index.php?action=register


Message: 'document.forms.creator.regSubmit' is null or not an object
Line: 128
Char: 3
Code: 0
URI: http://www.marchlover.com/forum/index.php?action=register



Thank,

Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on April 21, 2010, 03:08:46 AM
Quote from: benoeb on April 20, 2010, 06:47:50 PM
This works just dandy with the default forum theme, but unfortunately its not even close to our website theme. I tried to make the font small so I didnt have a giant post with all the errors I'm getting. Any help would be greatly appreciated after scouring these boards for the last 2 hours I haven't found anything remotely helpful.

Assuming you are using 1.1 series. If you are using 2.0, then please let me know.

If your custom theme has a different registration remplate, You'll need to apply the changes to your theme manually.


Quote from: Tasoli on April 20, 2010, 09:22:24 PM
Thanks for your quick reply. If I were to uninstall all other mods I have that modify the registration template, do you think that my problem would go away? I don't use those mods anyways as they don't look good.

Yes, that is very likely.


Quote from: Kob Ob Ob on April 20, 2010, 11:14:45 PM
I just installed this mod, everything look good and work perfectly with Google Chrome and FireFox. But with IE, I've got the Error. The recaptcha theme could not work and no input box for recaptcha, I have to click on get new word to get the new word and input box will show.

It looks like you are using a custom theme. Does it work with the default SMF theme?
Title: Re: reCAPTCHA for SMF
Post by: Meister GN006 on April 21, 2010, 11:19:17 AM
Quote from: Motoko-chan on April 21, 2010, 03:08:46 AM
Assuming you are using 1.1 series. If you are using 2.0, then please let me know.

If your custom theme has a different registration remplate, You'll need to apply the changes to your theme manually.
My apologies for not specifying, Yes our forums are running 1.1.11 for SMF. I really dont have any skills with PHP, I was more less the guy who had to keep our site up and running once the previous guy flaked out and decided he was bored. Could you point me to any place that I might gain the knowledge I'll need to edit this theme and get it working properly with ReCaptcha?
Title: Re: reCAPTCHA for SMF
Post by: sight|i|picture on April 23, 2010, 10:21:55 AM
Looks like the reCaptcha site is down for maintenance : https://admin.recaptcha.net/recaptcha/sites/
Title: Re: reCAPTCHA for SMF
Post by: nax on April 27, 2010, 11:10:24 AM
reCaptcha has been taken over by Google you may need to migrate your sites go to https://admin.recaptcha.net/recaptcha/sites/
Title: Re: reCAPTCHA for SMF
Post by: pointalk on May 01, 2010, 08:08:59 PM
When type wrong word and click Back, but two words are still in table.
How to fix?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on May 02, 2010, 01:16:46 AM
That's a browser thing, not an easy way to fix without adding extra stuff I'd rather not play with.
Title: Re: reCAPTCHA for SMF
Post by: societyofrobots on May 04, 2010, 09:49:59 AM
Just an FYI, the spammers have gotten around the reCAPTCHA like 6 months ago. Its obvious they are using automated tools to do all the registration work, and a human to solve the CAPTCHA as the last step.

I think something needs to be done to reCAPTCHA to slow them down and make it not worth their time . . . like a 10 second timer that counts down before letters are displayed or something.
Title: Re: reCAPTCHA for SMF
Post by: Arantor on May 04, 2010, 09:51:00 AM
Quote from: societyofrobots on May 04, 2010, 09:49:59 AM
Just an FYI, the spammers have gotten around the reCAPTCHA like 6 months ago. Its obvious they are using automated tools to do all the registration work, and a human to solve the CAPTCHA as the last step.

I think something needs to be done to reCAPTCHA to slow them down and make it not worth their time . . . like a 10 second timer that counts down before letters are displayed or something.

I think you'd have to take that up with Google, to be honest, as the new owners of reCAPTCHA.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on May 04, 2010, 12:37:19 PM
Quote from: Arantor on May 04, 2010, 09:51:00 AM
Quote from: societyofrobots on May 04, 2010, 09:49:59 AM
Just an FYI, the spammers have gotten around the reCAPTCHA like 6 months ago. Its obvious they are using automated tools to do all the registration work, and a human to solve the CAPTCHA as the last step.

I think something needs to be done to reCAPTCHA to slow them down and make it not worth their time . . . like a 10 second timer that counts down before letters are displayed or something.

I think you'd have to take that up with Google, to be honest, as the new owners of reCAPTCHA.

Correct, there's not much I can control on that side.
Title: Re: reCAPTCHA for SMF
Post by: societyofrobots on May 06, 2010, 09:38:00 AM
Quote from: Arantor on May 04, 2010, 09:51:00 AM
Quote from: societyofrobots on May 04, 2010, 09:49:59 AM
Just an FYI, the spammers have gotten around the reCAPTCHA like 6 months ago. Its obvious they are using automated tools to do all the registration work, and a human to solve the CAPTCHA as the last step.

I think something needs to be done to reCAPTCHA to slow them down and make it not worth their time . . . like a 10 second timer that counts down before letters are displayed or something.

I think you'd have to take that up with Google, to be honest, as the new owners of reCAPTCHA.

hmmmm fat chance on that one . . . a fourth of all spam accounts I get use a gmail address . . .
Title: Re: reCAPTCHA for SMF
Post by: Arantor on May 06, 2010, 09:40:57 AM
*shrug*

Fact remains that Google now own reCAPTCHA and it's not in their interest to have too much spam on it because they're the ones who have to cope with the load.
Title: Re: reCAPTCHA for SMF
Post by: Bugo on May 17, 2010, 06:14:49 AM
Russian translation
Title: Re: reCAPTCHA for SMF
Post by: MegaByte on May 29, 2010, 07:43:16 PM
So I have a huge amount of what appears to be bots registering accounts on my forums.  The almost never post anything, just leave links in their signatures (which I've blocked).  But I'd like to block the registrations in the first place, so I tried using this mod.  However, it seems that you can still request the old captcha and respond resulting in a successful registration, bypassing the mod (and if you try to disable the regular verification, it disables the mod as well).  Can the mod disable the built-in system?
Title: Re: reCAPTCHA for SMF
Post by: ~DS~ on May 30, 2010, 01:06:47 PM
Moto, just got this in the error logs.

8: Undefined index: recaptcha_enabled
File: /home/******/public_html/forum.com/Themes/default/GenericControls.template.php
Line: 350
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on May 30, 2010, 01:43:06 PM
Quote from: MegaByte on May 29, 2010, 07:43:16 PM
However, it seems that you can still request the old captcha and respond resulting in a successful registration, bypassing the mod (and if you try to disable the regular verification, it disables the mod as well).  Can the mod disable the built-in system?

Hm, that shouldn't be possible. If reCAPTCHA is enabled, it should check for it and error out if it doesn't match. What version of SMF is this? Did you have to do any manual installation?


Quote from: Dismal Shadow on May 30, 2010, 01:06:47 PM
Moto, just got this in the error logs.

8: Undefined index: recaptcha_enabled
File: /home/******/public_html/forum.com/Themes/default/GenericControls.template.php
Line: 350


What SMF version?
Title: Re: reCAPTCHA for SMF
Post by: ~DS~ on May 30, 2010, 02:21:42 PM
SMF 2.0 RC3
Title: Re: reCAPTCHA for SMF
Post by: Kurakama on May 30, 2010, 08:30:21 PM
In a fresh RC3 works fine for me

thanks for this great mod
Title: Re: reCAPTCHA for SMF
Post by: MegaByte on May 30, 2010, 09:03:57 PM
Quote from: Motoko-chan on May 30, 2010, 01:43:06 PM
Quote from: MegaByte on May 29, 2010, 07:43:16 PM
However, it seems that you can still request the old captcha and respond resulting in a successful registration, bypassing the mod (and if you try to disable the regular verification, it disables the mod as well).  Can the mod disable the built-in system?
Hm, that shouldn't be possible. If reCAPTCHA is enabled, it should check for it and error out if it doesn't match. What version of SMF is this? Did you have to do any manual installation?
SMF 2.0RC3 (PostgreSQL).  I just did the automatic installation, and it appears to be working fine at the surface.  However, I was still getting spambot registrations, so I checked the request logs, and the normal captcha was still being requested and answered.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on May 30, 2010, 11:36:02 PM
Quote from: MegaByte on May 30, 2010, 09:03:57 PM
SMF 2.0RC3 (PostgreSQL).  I just did the automatic installation, and it appears to be working fine at the surface.  However, I was still getting spambot registrations, so I checked the request logs, and the normal captcha was still being requested and answered.

I'll look into it as soon as I get a chance. I've been very time-constrained of late.
Title: Re: reCAPTCHA for SMF
Post by: MegaByte on May 31, 2010, 12:14:29 AM
For the moment, I've just blocked the captcha request URL at the HTTP server level, which seems to be a sufficient work-around.
Title: Re: reCAPTCHA for SMF
Post by: amko_sa on June 11, 2010, 07:46:34 PM
I have a little problem with dark theme for smf.When I try recaptcha and input recaptcha text in field below picture I don't see text that I am type because my theme is dark and text that I am write is black. How to solve this? I am try all recaptcha picture (red, black, glass...) but with same problem.

Example:


Thanks for great mod.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 11, 2010, 08:18:52 PM
amko_sa, this has been asked several times already, go read the older pages on this topic.
Title: Re: reCAPTCHA for SMF
Post by: uninvited13th on June 19, 2010, 03:32:58 AM
Parse error: syntax error, unexpected '}' in /www/sqweebs.org/u/n/i/uninvited/htdocs/Sources/Load.php(1980) : eval()'d code on line 156
Template Parse Error!
There was a problem loading the /Themes/default/Register.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected '}'


whats the problem??
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 19, 2010, 04:42:11 AM
The problem is that there is a } where there shouldn't be. That's about all the error you posted tells me.

Did you manually install the modification?
Title: Re: reCAPTCHA for SMF
Post by: uninvited13th on June 19, 2010, 06:17:28 AM
Quote from: Motoko-chan on June 19, 2010, 04:42:11 AM
The problem is that there is a } where there shouldn't be. That's about all the error you posted tells me.

Did you manually install the modification?

Yes, i installed it manually.. Where should i remove that '}' ?
Title: Re: reCAPTCHA for SMF
Post by: uninvited13th on June 22, 2010, 07:32:11 AM
Hello? Anyone?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 22, 2010, 01:32:35 PM
I can't really tell you since I don't know what's in the file. I suggest you look over what manual modification you made and confirm it looks okay.
Title: Re: reCAPTCHA for SMF
Post by: uninvited13th on June 22, 2010, 06:49:37 PM
Quote from: Motoko-chan on June 22, 2010, 01:32:35 PM
I can't really tell you since I don't know what's in the file. I suggest you look over what manual modification you made and confirm it looks okay.

Okay thanks, solved now..
Title: Re: reCAPTCHA for SMF
Post by: uninvited13th on June 26, 2010, 01:26:06 AM
is this compatible with 2.0rc3?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 26, 2010, 03:29:57 AM
Quote from: uninvited13th on June 26, 2010, 01:26:06 AM
is this compatible with 2.0rc3?

Did you bother to check the modification download page? There is a whole list of confirmed-compatible versions there.
Title: Re: reCAPTCHA for SMF
Post by: GohighVoltage on July 11, 2010, 11:16:03 PM
Ok,  when I try to register with Recaptcha, and purposely put in the wrong text,   I get a blank screen that says:
Could not open socket

And if I put in the right words, I still get:
Could not open socket
Title: Re: reCAPTCHA for SMF
Post by: GohighVoltage on July 11, 2010, 11:25:42 PM
Ok,  I made sure that there was no spaces on the end of my keys,  and now it works about 50% of the time, and the other 50% shows Could Not open socket
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 12, 2010, 12:08:57 AM
That error means that it can't connect to the external service. Either your web host is blocking the connection on purpose, blocking it accidentally, the connection between your server and the reCAPTCHA server is flaky, or the reCAPTCHA server is having issues.
Title: Re: reCAPTCHA for SMF
Post by: kaamaru on July 29, 2010, 03:55:21 PM
I was testing it out, and I found that you didn't have to get if completely correct. If you got the od letter wrong it would sell let you register. Is that meant to happen??
Title: Re: reCAPTCHA for SMF
Post by: ɔɔɔɔɔɔuɥoɾ on July 29, 2010, 05:12:31 PM
Quote from: Calumks on July 29, 2010, 03:55:21 PM
I was testing it out, and I found that you didn't have to get if completely correct. If you got the od letter wrong it would sell let you register. Is that meant to happen??
As a matter of fact yes, it is supposed to happen, that's how reCAPTCHA works, it does not expect perfection every time, we're only human lol
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 29, 2010, 05:23:06 PM
Actually, kinda.

The reCAPTCHA system relies on a known and unknown word. You don't know which is which. You must get the known word correct. You can type the wrong thing for the unknown word and it will still pass you. In your case, you probably made the typo on the unknown word.
Title: Re: reCAPTCHA for SMF
Post by: kaamaru on July 30, 2010, 04:07:15 AM
Thanks, I'll start using it on my forum. I just wanted to check.
Title: Re: reCAPTCHA for SMF
Post by: kaamaru on July 30, 2010, 10:58:39 AM
How can I disable reCAPTCHA on certain themes and have the smf default??

In simple Portal you can do:

$no_portal_themes = array(16);
if (in_array($settings['theme_id'], $no_portal_themes))
$blocks = array_merge(getBlockInfo(2, null, true, true), $blocks = getBlockInfo(3, null, true, true));
else
$blocks = getBlockInfo(null, null, true, true);

The theme with the id 16 wouldn't get the portal.

Thanks!
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 30, 2010, 11:53:24 AM
It would require custom code. For SMF 2.0, reCAPTCHA replaces the normal image verification if you enable it and it's part of the global anti-spam settings.
Title: Re: reCAPTCHA for SMF
Post by: kaamaru on July 30, 2010, 12:20:18 PM
Quote from: 青山 素子 on July 30, 2010, 11:53:24 AM
It would require custom code. For SMF 2.0, reCAPTCHA replaces the normal image verification if you enable it and it's part of the global anti-spam settings.

Do you know of any custom code to do this?
Title: Re: reCAPTCHA for SMF
Post by: GohighVoltage on July 30, 2010, 05:00:01 PM
Question I hope there is a good solution for,

When registering, and you enter the wrong words,   it says:

The letters you typed don't match the letters that were shown in the picture.

Back

I click back and I get a Webpage has expired message.


What is causing this and how can I fix?
Title: Re: reCAPTCHA for SMF
Post by: GohighVoltage on July 30, 2010, 05:30:56 PM
Also,   on the registration page with the recaptcha,  I get a page error, see attached photo.    When I don't use recaptcha, this error isn't there.   Any ideas on how to fix?  bug?

Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 30, 2010, 11:16:16 PM
Quote from: Calumks on July 30, 2010, 12:20:18 PM
Do you know of any custom code to do this?

Nothing existing, and I don't have time to write something.


Quote from: GohighVoltage on July 30, 2010, 05:00:01 PM
Question I hope there is a good solution for,

When registering, and you enter the wrong words,   it says:

The letters you typed don't match the letters that were shown in the picture.

Back

I click back and I get a Webpage has expired message.


What is causing this and how can I fix?

Based on a quick search, it's an issue with IE and going "back" to pages that were created based on form input, specifically post variables. I am not sure why it would show this on the main SMF registration page and it is just a direct static page.


Quote from: GohighVoltage on July 30, 2010, 05:30:56 PM
Also,   on the registration page with the recaptcha,  I get a page error, see attached photo.    When I don't use recaptcha, this error isn't there.   Any ideas on how to fix?  bug?

Possibly an issue with some changes on the reCAPTCHA side of things. They provide javascript code that is parsed to create the widget. I'm not sure if that is anything I can fix.

Also, please don't double-post. If you need to make an addition, edit your previous post.
Title: Re: reCAPTCHA for SMF
Post by: Shasta on July 31, 2010, 07:11:24 PM
Hello, I'm using your mod on SMF 2.0 RC3 and on of my users pointed out that guests cannot search as they get stuck in an endless loop. The error message printed is "Please enter the verification code below to continue to the results." no matter what is put into the field, correct or not. The search works properly for guests when I use the default captcha. Any fix or workaround would be great. Thanks.
Title: Re: reCAPTCHA for SMF
Post by: KensonPlays on July 31, 2010, 09:16:52 PM
Thanks! I installed for guests mainly (I allow posting topics, but a mod has to approve new guest topics but posting to any topic is free)
Title: Re: reCAPTCHA for SMF
Post by: Xarcell on August 03, 2010, 03:36:13 AM
This part from your instructions is wrong.

QuoteHow to Use
----------
You can enable reCAPTCHA by going to:
Admin -> Registration -> Settings

It's actually: Administration Center » Security and Moderation » Anti-Spam
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 03, 2010, 03:38:55 AM
Quote from: Xarcell on August 03, 2010, 03:36:13 AM
This part from your instructions is wrong.

Ignore the first post in this topic, it's old. The correct info is on the modification page and the readme presented at install time.
Title: Re: reCAPTCHA for SMF
Post by: vich on August 05, 2010, 04:12:09 PM
Quote from: MegaByte on May 31, 2010, 12:14:29 AM
For the moment, I've just blocked the captcha request URL at the HTTP server level, which seems to be a sufficient work-around.

MegaByte,

I think I'm having the same problem: Continued spam registrations despite installing ReCaptcha. Can you please share the path of the CAPTCHA request URL?

Thank you!

Vic
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 05, 2010, 05:48:10 PM
Just saw this come across the feed reader. I highly recommend looking at using the security questions feature of SMF2 (or the mod for 1.1) in addition to reCAPTCHA.

ReCAPTCHA.net Now Vulnerable to Algorithmic Attack - Slashdot (http://it.slashdot.org/story/10/08/05/2054247/ReCAPTCHAnet-Now-Vulnerable-to-Algorithmic-Attack)
Title: Re: reCAPTCHA for SMF
Post by: Ryan2320 on November 01, 2010, 11:00:18 PM
Support for 2.0 RC4?

(My guess is that it should has it was for 2.0RC3)

Thanks Ryan
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 01, 2010, 11:33:02 PM
Eventually. Given it was released today and I work full time and am currently dealing with some big real-life family issues (and have been for the past three months, and probably will for at least the next six), it's not going to happen tonight.

I'll get to it as soon as I have time. If there weren't major changes in the areas this modification uses, you can probably just emulate RC3 to install. Do not install if the tests fail.
Title: Re: reCAPTCHA for SMF
Post by: Ryan2320 on November 01, 2010, 11:52:16 PM
Hey take your time,
No rush.. Family is imporant..and I wish you luck

Just wanted to know if you were going to continue to support it with RC4.

Thanks for the reply and your continued support for this mod

Ryan
Title: Re: reCAPTCHA for SMF
Post by: Kurakama on November 03, 2010, 01:40:03 AM
take your time 青山 素子 ^^

this is a great mod :D
Title: Re: reCAPTCHA for SMF
Post by: Apllicmz on November 03, 2010, 05:48:01 PM
whem Update dont forget portuguese

attach
Title: Re: reCAPTCHA for SMF
Post by: Fiery on November 04, 2010, 03:20:22 AM
I hope the mod author doesnt mind... I have attached a version that works with RC4.  All I did was change the package-info.xml file and it works great on my site.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 04, 2010, 10:18:57 AM
I usually do mind, but I'll let this one go for now. I will not, however, provide support for it.

What's so difficult with using the emulation field? It's built in to 2.0 now, so there should be fewer excuses.
Title: Re: reCAPTCHA for SMF
Post by: Baloch on November 04, 2010, 10:39:16 AM
is it compatible with SMF 2.0 RC4?
Title: Re: reCAPTCHA for SMF
Post by: Spoogs on November 04, 2010, 10:51:53 AM
Umm... read the 2 posts above yours.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 04, 2010, 10:56:43 AM
If you use the version emulation feature, yes. You can also use the package attached a few posts above, but I will not offer support for that.
Title: Re: reCAPTCHA for SMF
Post by: GohighVoltage on November 05, 2010, 09:59:30 AM
This mod is one of the best.   I have installed it on RC4 with emulation mode with no problems.   I do not think it is respectable to modify someone else's work.  Please don't do that.   

Also,
I will keep you and your family in my prayers.  I hope all is ok.  Thank you for such a great mod.
Title: Re: reCAPTCHA for SMF
Post by: Fiery on November 05, 2010, 02:39:31 PM
Quote from: GohighVoltage on November 05, 2010, 09:59:30 AM
This mod is one of the best.   I have installed it on RC4 with emulation mode with no problems.   I do not think it is respectable to modify someone else's work.  Please don't do that.   

I changed a 3 to a 4.  I did not modify his work any more than someone installing a module on a non-standard theme or what not.  I also did not rebrand it as my own work etc.  I dont need to be lectured.  Thanks though ;)
Title: Re: reCAPTCHA for SMF
Post by: GohighVoltage on November 05, 2010, 02:42:23 PM
No lecturing.  It's all good bud.
Title: Re: reCAPTCHA for SMF
Post by: Baloch on November 05, 2010, 11:21:14 PM
Quote from: Fiery on November 04, 2010, 03:20:22 AM
I hope the mod author doesnt mind... I have attached a version that works with RC4.  All I did was change the package-info.xml file and it works great on my site.

It worked for me. Thanks for this updating.
Title: Re: reCAPTCHA for SMF
Post by: djkittencat on November 07, 2010, 02:25:14 PM
I do not know where to go to find simple support for this. I am a noob and don't understand the tech talk in a lot of threads I have stumbled upon.

I have v 1.1.11. I tried to install recaptcha but the language files were skipped and no words appear in the settings when I try to enable recaptcha.

This has also happened for the human bot mod.

What to do?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 07, 2010, 03:21:09 PM
What language are you using? The modification has a few contributed translations, but will skip adding those if you don't have that language pack. The only required language strings are the Latin-1 (non UTF-8) English ones.
Title: Re: reCAPTCHA for SMF
Post by: djkittencat on November 07, 2010, 03:24:28 PM
I am using english.
Title: Re: reCAPTCHA for SMF
Post by: Fiery on November 07, 2010, 04:45:35 PM
Are you using a custom theme?
Title: Re: reCAPTCHA for SMF
Post by: djkittencat on November 07, 2010, 05:00:53 PM
Yes, I have a custom theme in place.

www.travelatmosphere.com/forum
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 07, 2010, 07:48:44 PM
Try using the default theme and see if the text is there.
Title: Re: reCAPTCHA for SMF
Post by: djkittencat on November 07, 2010, 08:09:06 PM
Ok it worked when I used the default theme, and still worked when I switched over to the custom theme. Thx for the help!
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 07, 2010, 08:52:28 PM
Odd...

Well, glad it's working now.
Title: Re: reCAPTCHA for SMF
Post by: delling on November 12, 2010, 07:57:14 PM
Heya!

Also having issues with SMF 1.11.

The install seems to occur fine -- but I also had an empty Modifications.english.php file.

Still, I dumped the necessary code into that file... and still nothing appearing in Admin > Registration > Settings

Not seeing any errors, either :(
Title: Re: reCAPTCHA for SMF
Post by: Anglis on November 20, 2010, 01:42:36 PM
When I am trying to apply this mod it Fails on:

./Themes/default/Register.template.php    Test failed

Any idea why would that be?

Also I am using a different language on it if that makes any difference.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 20, 2010, 01:46:24 PM
Do you have any other registration modifications installed? What version of SMF?
Title: Re: reCAPTCHA for SMF
Post by: Anglis on November 20, 2010, 02:16:24 PM
Quote from: 青山 素子 on November 20, 2010, 01:46:24 PM
Do you have any other registration modifications installed? What version of SMF?

Hi,

Thanks for your quick response,

I've got SMF 1.1.12 installed.

Nop I don't have any other registration mod installed. Just using the standard one with hardest visual verification image - but still bots are spamming my forum an really need the solution.

Title: Re: reCAPTCHA for SMF
Post by: Anglis on November 20, 2010, 06:45:29 PM
Anyone else?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 20, 2010, 06:51:41 PM
Quote from: Anglis on November 20, 2010, 06:45:29 PM
Anyone else?

Patience, I was out at the doctor's office this morning.

I unfortunately, am down a testing server (electrical work at the building where my servers are), so I can't easily test against a clean 1.1.12 install. You can try to manually install the modification on that file.
Title: Re: reCAPTCHA for SMF
Post by: Anglis on November 21, 2010, 06:46:53 AM
Okay I can try that! But...

Quote- Support for built-in reCAPTCHA themes
Well I am using BlueSkies theme not sure if that theme will support it?

Thanks again,
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 21, 2010, 02:05:22 PM
reCAPTCHA themes are different. As long as the custom theme doesn't have its own registration template it would use the default one, which has the correct changes.
Title: Re: reCAPTCHA for SMF
Post by: Neo_TE on November 21, 2010, 03:21:54 PM
i would like to inform the mod author that reCAPTCHA verification fails when this mod is used in conjunction with Anti-Bot Registration Puzzles. :(

i.e.
when a user enters the wrong reCAPTCHA code in the 1st attempt, a redirect is being made to the registration page.

but the user is able to continue with registration in the 2nd & further attempts even with wrong reCAPTCHA code (provided the user had entered the correct answer to the challenge in the Anti-Bot Registration Puzzles).
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 21, 2010, 03:38:46 PM
I'll see what I can do to improve the interaction, but depending on how the other modification is coded, this may not be possible.

Edit: Now that my servers are back up, I have filed a bug in the tracker. I'll look into this as soon as I get time.
Title: Re: reCAPTCHA for SMF
Post by: gouri on November 21, 2010, 10:13:26 PM
Quote from: Fiery on November 04, 2010, 03:20:22 AM
I hope the mod author doesnt mind... I have attached a version that works with RC4.  All I did was change the package-info.xml file and it works great on my site.

This is working fine. Thanks.
Title: Re: reCAPTCHA for SMF
Post by: Anglis on November 23, 2010, 04:53:15 PM
Installed package, then uploaded my manually edited Register.template.php, but when someone tries to log in they get this message:

Template Parse Error!

It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.


Mmm... okay I'll keep experimenting.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 23, 2010, 07:07:49 PM
Looks like you make a mistake in the template somewhere. I'd offer to help do it manually, but I barely have time to make this post right now.
Title: Re: reCAPTCHA for SMF
Post by: j3cubcapt on November 30, 2010, 11:38:16 PM
I'm having the same problem as this member with a failed test of the Register.template.php.
I'm using a SlickPro theme, and I do not think I have any other mods that are conflicting.
I have attached a copy of the file for review...
Is there any paid support available?
Thanks
Will
Dallas Tx USA

Quote from: Anglis on November 20, 2010, 01:42:36 PM
When I am trying to apply this mod it Fails on:

./Themes/default/Register.template.php    Test failed

Any idea why would that be?

Also I am using a different language on it if that makes any difference.

Title: Re: reCAPTCHA for SMF
Post by: societyofrobots on December 06, 2010, 09:49:47 PM
Quote from: Neo_TE on November 21, 2010, 03:21:54 PM
i would like to inform the mod author that reCAPTCHA verification fails when this mod is used in conjunction with Anti-Bot Registration Puzzles. :(

i.e.
when a user enters the wrong reCAPTCHA code in the 1st attempt, a redirect is being made to the registration page.

but the user is able to continue with registration in the 2nd & further attempts even with wrong reCAPTCHA code (provided the user had entered the correct answer to the challenge in the Anti-Bot Registration Puzzles).
青山 素子, any luck with this?
Title: Re: reCAPTCHA for SMF
Post by: j3cubcapt on December 06, 2010, 10:19:32 PM
Can anyone please help with my attached file in the post above?
Thanks
Will


Quote from: j3cubcapt on November 30, 2010, 11:38:16 PM
I'm having the same problem as this member with a failed test of the Register.template.php.
I'm using a SlickPro theme, and I do not think I have any other mods that are conflicting.
I have attached a copy of the file for review...
Is there any paid support available?
Thanks
Will
Dallas Tx USA

Quote from: Anglis on November 20, 2010, 01:42:36 PM
When I am trying to apply this mod it Fails on:

./Themes/default/Register.template.php    Test failed

Any idea why would that be?

Also I am using a different language on it if that makes any difference.


Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on December 06, 2010, 11:05:55 PM
Quote from: j3cubcapt on November 30, 2010, 11:38:16 PM
Is there any paid support available?

Not from me at this time. My primary employment is fairly hectic right now so I wouldn't have time to schedule anyway.


Quote from: societyofrobots on December 06, 2010, 09:49:47 PM
青山 素子, any luck with this?

I have not had time to review the issue in depth yet. I hope to once the office where I work closes for the holidays (December 20 is the start of the break).


Quote from: j3cubcapt on December 06, 2010, 10:19:32 PM
Can anyone please help with my attached file in the post above?
Thanks
Will

If I find time, I will try. If someone else wants to before then, they are welcome to.
Title: Re: reCAPTCHA for SMF
Post by: Kellerassel on December 08, 2010, 03:40:54 PM
hello

i use smf 1.1.12 and i have a problem. when a user want to registrate he get this error  Could not open socket


is it a problem with the mod or a server problem?
Title: Re: reCAPTCHA for SMF
Post by: Anglis on December 08, 2010, 03:45:12 PM
Quote from: 青山 素子 on November 23, 2010, 07:07:49 PM
Looks like you make a mistake in the template somewhere. I'd offer to help do it manually, but I barely have time to make this post right now.
Not to worry, I will give it another go this weekend.
Title: Re: reCAPTCHA for SMF
Post by: demonoid on December 09, 2010, 10:26:29 AM
Would someone be so kind to give me IPs which one must be set on hosting as allowed for outgoing connection (the ones that recaptcha uses).

I now recive an "could not open socket" message, so after reading this forum means for me that I must allow some IPs in outgoing manager on my hosting.

Can someone please help with these ips?

Thank you very much.
Title: Re: reCAPTCHA for SMF
Post by: demonoid on December 10, 2010, 09:36:59 AM
Anyone, please?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on December 10, 2010, 01:37:52 PM
Quote from: Kellerassel on December 08, 2010, 03:40:54 PM
i use smf 1.1.12 and i have a problem. when a user want to registrate he get this error  Could not open socket
is it a problem with the mod or a server problem?

Server issue. The host needs to allow outbound connections to external HTTP servers.


Quote from: demonoid on December 09, 2010, 10:26:29 AM
Would someone be so kind to give me IPs which one must be set on hosting as allowed for outgoing connection (the ones that recaptcha uses).

I now recive an "could not open socket" message, so after reading this forum means for me that I must allow some IPs in outgoing manager on my hosting.

Can someone please help with these ips?

Thank you very much.

You'll have to open a lot of IPs. The reCAPTCHA process needs to contact www.google.com for API access. The older API might use a different host. You can check the top of recaptchalib.php for the URLs that the server needs to contact.


Note: This is why SMF doesn't have this service built in. People would blame SMF for issues with hosts blocking access.
Title: Re: reCAPTCHA for SMF
Post by: demonoid on December 10, 2010, 07:32:23 PM
Thanks. I turned off outgoing manager in my hosting plan and reCAPTCHA worked nicely.
Title: Re: reCAPTCHA for SMF
Post by: effex on December 10, 2010, 11:40:25 PM
Great mod!

I couldn't get it to install automatically, but the the manual install was quick and painless. Thanks for this!
Title: Re: reCAPTCHA for SMF
Post by: Insight on December 18, 2010, 05:11:36 AM
The test on Themes/Default/Register.Template.php failed :(

Running 1.1.12
Title: Re: reCAPTCHA for SMF
Post by: DrBermant on December 26, 2010, 11:32:02 AM
Quote from: demonoid on December 09, 2010, 10:26:29 AM
Would someone be so kind to give me IPs which one must be set on hosting as allowed for outgoing connection (the ones that recaptcha uses).

I now recive an "could not open socket" message, so after reading this forum means for me that I must allow some IPs in outgoing manager on my hosting.

Can someone please help with these ips?

Thank you very much.

Where does the error appear. I installed the mod, it seems to work on test accounts. I did have one account sign on, but I have noted several registering for account messages but they never completed the process. Either they were bots that failed or the recaptia version was blocked. Is there a log on my server that would give a clue if the process is working or failing due to some process. Was the error message sent by a user who could not log onto the forum.

My forum is just starting out so I am not yet submerged by bots, but I do not want to discourage real posters.

Michael Bermant, M.D.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on December 26, 2010, 01:37:31 PM
Quote from: DrBermant on December 26, 2010, 11:32:02 AM
Where does the error appear. I installed the mod, it seems to work on test accounts. I did have one account sign on, but I have noted several registering for account messages but they never completed the process. Either they were bots that failed or the recaptia version was blocked. Is there a log on my server that would give a clue if the process is working or failing due to some process. Was the error message sent by a user who could not log onto the forum.

The "cannot open socket" error message would display where the reCAPTCHA box would normally be. You can do a simple test by enabling it for registration and then logging out. Once logged out, go to the registration page. If you see the box, then that error isn't a concern for you.

Please note that as reCAPTCHA is an external service, it may be subject to some downtime. I personally haven't seen any (the current owner, Google, keeps very good uptime), but it is something to be aware of.


Quote from: DrBermant on December 26, 2010, 11:32:02 AM
My forum is just starting out so I am not yet submerged by bots, but I do not want to discourage real posters.

I highly encourage you to use the registration questions along with this modification. Many automated tools are now using humans to solve things like reCAPTCHA. The registration questions feature is built-in for the 2.0 series and available as a modification for the 1.1 series.
Title: Re: reCAPTCHA for SMF
Post by: DrBermant on December 26, 2010, 02:02:31 PM
Quote from: 青山 素子 on December 26, 2010, 01:37:31 PM
Quote from: DrBermant on December 26, 2010, 11:32:02 AM
Where does the error appear. I installed the mod, it seems to work on test accounts. I did have one account sign on, but I have noted several registering for account messages but they never completed the process. Either they were bots that failed or the recaptia version was blocked. Is there a log on my server that would give a clue if the process is working or failing due to some process. Was the error message sent by a user who could not log onto the forum.

The "cannot open socket" error message would display where the reCAPTCHA box would normally be. You can do a simple test by enabling it for registration and then logging out. Once logged out, go to the registration page. If you see the box, then that error isn't a concern for you.

Please note that as reCAPTCHA is an external service, it may be subject to some downtime. I personally haven't seen any (the current owner, Google, keeps very good uptime), but it is something to be aware of.

Thank you, I am aware that the user logging in would see that message. I have tried using several dummy accounts and have never seen the message. I was wondering if there was an error log on the server like the adm error section or if the error log would show up on deeper logs on my server.

What I am trying to explain is what I see while watching who is online. I see the message registering for an account, but then no new person shows up. This is not happening when I try to log in myself, it is only something I report seeing while snooping on what is happening on my site's early progress. My guess is that these are people that just decide not to register or robots. Today I turned off the reCaptcha and was still seeing the same phenomena. So it is either a robot or someone not wanting to finish the process of creating an account.

I was still looking for a method of proving my theory and if an error log existed that I could look at, it would add security in my analysis.


Quote from: DrBermant on December 26, 2010, 11:32:02 AM
My forum is just starting out so I am not yet submerged by bots, but I do not want to discourage real posters.

I highly encourage you to use the registration questions along with this modification. Many automated tools are now using humans to solve things like reCAPTCHA. The registration questions feature is built-in for the 2.0 series and available as a modification for the 1.1 series.

I will look into that option.

Thank you for taking the time to answer my questions. You have designed a great mod.

Michael Bermant, MD
Title: Re: reCAPTCHA for SMF
Post by: smoothedit on December 31, 2010, 08:01:04 AM
Hey there - firstly thanks for the superb package.

I am having an issue with new registrations, after filling in the forum and reCaptcha details, the new user clicks next and gets:

Error has Occured
You Do not have permission to access this page.

Any ideas? I have deactivated reCaptcha for the moment and all registrations work perfectly?

Using RC4 with no other registration packages, and no special welcome screen...

Many thanks in advance for your assistance! Would be very greatful if anyone could help.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on December 31, 2010, 05:53:08 PM
That's odd. I'll have to run some tests when I get a chance to see if I can reproduce the issue.
Title: Re: reCAPTCHA for SMF
Post by: eyo on December 31, 2010, 10:48:33 PM
i cant see it in admin, it seemed to install flawlessly though
admin--->members------->registration

you have any screenshots of where i can find this?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on December 31, 2010, 10:58:29 PM
It's in the Anti-Spam section on SMF 2.
Title: Re: reCAPTCHA for SMF
Post by: eyo on January 01, 2011, 06:55:43 PM
oh nice. thanks.

i got avatar registration and some other option like some default image verification stuff, do i disable everything or does the recaptcha just enhance what i already got?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 01, 2011, 09:59:24 PM
It replaces the built-in image authentication.
Title: Re: reCAPTCHA for SMF
Post by: eyo on January 02, 2011, 09:09:57 AM
what would you suggest i pair the recaptcha mod with? i disabled the old captcha and added 1 question and disabled the image verification, now i get 2 spammers just waiting for the forum to be active lol.  i didnt have these types before, what would you suggest?
Title: Re: reCAPTCHA for SMF
Post by: gallitin on January 07, 2011, 04:48:31 PM
When will rc4 version be available?

Thanks
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 07, 2011, 06:19:49 PM
As soon as I can get to it. Life is fairly hectic for me and has been for some time due to family issues. I wanted to get everything done over the work holiday, but the family issues prevented such.
Title: Re: reCAPTCHA for SMF
Post by: gallitin on January 07, 2011, 07:07:06 PM
Ok cool, thanks for the update.
Title: Re: reCAPTCHA for SMF
Post by: JBlaze on January 09, 2011, 06:27:56 AM
This will work on RC4 no problem. Just use the version_emulate feature in the admin panel to emulate RC3 so it can install, or you can modify the package itself to include RC4.

Proof: http://xboxleaders.com/contact/
Title: Re: reCAPTCHA for SMF
Post by: AllMassive on January 09, 2011, 10:33:08 AM
Since i use this mod i get plenty of bots registering on my forum - is there any way to raise the image-security `?
Title: Re: reCAPTCHA for SMF
Post by: Arantor on January 09, 2011, 10:38:55 AM
Nope, it's entirely set by ReCAPTCHA, and in any case the bots that can solve ReCAPTCHA either farm the image out to CAPTCHA-solving farms (where folks are paid $1 per 1000 solved, for example) or they use the audio which is substantially easier to solve programmatically.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 09, 2011, 03:02:07 PM
Quote from: AllMassive on January 09, 2011, 10:33:08 AM
Since i use this mod i get plenty of bots registering on my forum - is there any way to raise the image-security `?

As IncognitoMuse mentioned, the complexity is defined by the service provider for reCAPTCHA. I highly advise using this in combination with the registration questions feature of SMF 2, or the backported modification that allows the same feature for SMF 1.1.
Title: Re: reCAPTCHA for SMF
Post by: Masterd on January 09, 2011, 03:07:22 PM
You don't need to use the registration questions. I'm using this with Stop Spammer mod. What is better? This mod or Arantor Captcha?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 09, 2011, 04:29:10 PM
Quote from: Masterd on January 09, 2011, 03:07:22 PM
What is better? This mod or Arantor Captcha?

Whatever modification works better for your situation. Diversity of solutions is the best way to mitigate against automated spamming attempts.
Title: Re: reCAPTCHA for SMF
Post by: Arantor on January 09, 2011, 06:14:52 PM
Well, ArantorCaptcha prevented me from getting more than 3 spam posts in total on arantor.org, but that's in no small part due to the fact that it presents 10 different styles of CAPTCHA including several animated kinds (and the spammer was a human spammer making 3 posts). It is, naturally, discontinued since arantormods.com was closed, and I don't even have the code for the mod on my computer now (it is installed on arantor.org though so I still have it, I guess)
Title: Re: reCAPTCHA for SMF
Post by: Antes on January 09, 2011, 06:17:24 PM
Little Attention : http://www.allspammedup.com/2010/01/google-recaptcha-cracked/
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 09, 2011, 06:56:56 PM
Quote from: Antes on January 09, 2011, 06:17:24 PM
Little Attention : http://www.allspammedup.com/2010/01/google-recaptcha-cracked/

Old news. Automated attempts have given way to human-based attempts anyway. The most common forum spamming tool integrates an API to a human-backed service that solves image verification puzzles from multiple sources.The best defense is to use some unique system that prevents mass automated attempts from working.
Title: Re: reCAPTCHA for SMF
Post by: Leemy on January 09, 2011, 07:57:27 PM
Will an RC4 release come soon? Thanks for your help.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 09, 2011, 09:34:44 PM
Quote from: Leemy on January 09, 2011, 07:57:27 PM
Will an RC4 release come soon? Thanks for your help.

See:
Quote from: 青山 素子 on January 07, 2011, 06:19:49 PM
As soon as I can get to it. Life is fairly hectic for me and has been for some time due to family issues. I wanted to get everything done over the work holiday, but the family issues prevented such.
Title: Re: reCAPTCHA for SMF
Post by: Masterd on January 10, 2011, 06:11:35 AM
Quote from: IncognitoMuse on January 09, 2011, 06:14:52 PM
Well, ArantorCaptcha prevented me from getting more than 3 spam posts in total on arantor.org, but that's in no small part due to the fact that it presents 10 different styles of CAPTCHA including several animated kinds (and the spammer was a human spammer making 3 posts). It is, naturally, discontinued since arantormods.com was closed, and I don't even have the code for the mod on my computer now (it is installed on arantor.org though so I still have it, I guess)

I still have every mod from Arantormods. ;)
Title: Re: reCAPTCHA for SMF
Post by: Arantor on January 10, 2011, 06:15:20 AM
Yes, but you're not permitted to distribute it.

Anyway, this is getting off topic :P
Title: Re: reCAPTCHA for SMF
Post by: Masterd on January 10, 2011, 06:21:55 AM
Quote from: IncognitoMuse on January 10, 2011, 06:15:20 AM
Yes, but you're not permitted to distribute it.

Yes, I know that.

Quote from: Leemy on January 09, 2011, 07:57:27 PM
Will an RC4 release come soon? Thanks for your help.

This mod will work on SMF 2.0 RC4. I just modified the package-info.xml.
Title: Re: reCAPTCHA for SMF
Post by: Arantor on January 10, 2011, 06:24:03 AM
/me waits for Motoko to ask for that to be removed.
Title: Re: reCAPTCHA for SMF
Post by: Masterd on January 10, 2011, 06:25:51 AM
/me waits fo Motoko to update the package-info.xml.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 10, 2011, 12:56:19 PM
Quote from: IncognitoMuse on January 10, 2011, 06:24:03 AM
/me waits for Motoko to ask for that to be removed.

Already done. If the folks aren't smart enough to use version emulation, they aren't smart enough to diagnose problems when things go wrong.


Quote from: Masterd on January 10, 2011, 06:25:51 AM
/me waits fo Motoko to update the package-info.xml.

There are a few pending bugs I would like to investigate. There is at least one report that this modification breaks the built-in verification questions in 2.0, which needs to be checked.

I got my development environment cleaned up this last weekend, so I can hopefully find time this week or on the weekend to go over things and verify functionality.

I might move reCAPTCHA to be an additional solution in 2.0 instead of replacing the built-in verification, but that will likely not be in the next release.
Title: Re: reCAPTCHA for SMF
Post by: kat on January 10, 2011, 01:11:30 PM
Attachment removed. :)
Title: Re: reCAPTCHA for SMF
Post by: Goad on January 10, 2011, 09:02:25 PM
I am running 2.0 RC4 with a template. Its positioned left. Where can I modify the code to center it?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 10, 2011, 09:51:57 PM
Depends on how the template is coded. You should ask the designer for that theme.
Title: Re: reCAPTCHA for SMF
Post by: Goad on January 10, 2011, 10:55:30 PM
Quote from: 青山 素子 on January 10, 2011, 09:51:57 PM
Depends on how the template is coded. You should ask the designer for that theme.

the template doesnt modify the registration page though
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 10, 2011, 11:17:26 PM
Quote from: Goad on January 10, 2011, 10:55:30 PM
the template doesnt modify the registration page though

The CSS for the theme might, however. Does it look okay on Curve?
Title: Re: reCAPTCHA for SMF
Post by: Paracelsus on January 11, 2011, 03:33:02 AM
I reproduce what I just wrote in another topic:

Quote from: Paracelsus on January 11, 2011, 03:31:57 AM
The Recaptcha method must have been cracked because in the last days I've been having dozens of registered spambots. They do no harm because every register must go through an approval process, but it's really annoying to clean them everyday and to try to distinguish from the non-bots.  >:(
Title: Re: reCAPTCHA for SMF
Post by: impreza on January 11, 2011, 06:46:40 AM
great mod, thanks for making it
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 11, 2011, 11:54:59 AM
Quote from: Paracelsus on January 11, 2011, 03:33:02 AM
I reproduce what I just wrote in another topic:

Quote from: Paracelsus on January 11, 2011, 03:31:57 AM
The Recaptcha method must have been cracked because in the last days I've been having dozens of registered spambots. They do no harm because every register must go through an approval process, but it's really annoying to clean them everyday and to try to distinguish from the non-bots.  >:(

Old news. Also, it isn't cracked so much as worked-around. The most popular forum spamming software integrates a service called CaptchaBot, which uses humans to solve CAPTCHAs. (http://krebsonsecurity.com/2010/11/captchabot-blurring-human-and-machine/) (The link goes to a security blog that talks about the service.) When a spammer can spend $10 and get access to 10,000 forums, you're going to have trouble.

The best defense is to be unique in your security approach and use defense-in-depth. Being unique will keep the majority of automated attempts from working, while focusing on in-depth measures will stop those that get through and the completely-human spammers.

This modification is just one part of the puzzle and is not the full solution.
Title: Re: reCAPTCHA for SMF
Post by: king kratos on January 11, 2011, 05:13:54 PM
Quote from: JBlaze on January 09, 2011, 06:27:56 AM
This will work on RC4 no problem. Just use the version_emulate feature in the admin panel to emulate RC3 so it can install, or you can modify the package itself to include RC4.

Proof: http://xboxleaders.com/contact/

Ok, I got it installed on my forum, but it is not centered. I attempted to add align=center and <center> but it still won't center. Any suggestions?

Kratos
Title: Re: reCAPTCHA for SMF
Post by: gisfreak on January 12, 2011, 01:39:19 AM
hello i just use this mod, and works perfect, but because i use black based themes, there is a glitch that need to edit

i attached the picture, as you may see, the input box are black, and the char black too, so how to make the input box have different color, for example white, or maybe reverse of it, char have white color and input box is black

thanx  ;D

Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 12, 2011, 02:07:43 AM
gisfreak, read back around pages 2-5. It's been asked and answered a few times.
Title: Re: reCAPTCHA for SMF
Post by: gisfreak on January 12, 2011, 03:19:10 AM
Quote from: 青山 素子 on January 12, 2011, 02:07:43 AM
gisfreak, read back around pages 2-5. It's been asked and answered a few times.

oh i'm sorry,  ;)
Title: Re: reCAPTCHA for SMF
Post by: kanuni41 on January 12, 2011, 03:44:11 AM
reCaPTCHA don't work in RC4. Help me please or Should you use another spam bolcked in RC4
Title: Re: reCAPTCHA for SMF
Post by: eyo on January 12, 2011, 07:08:44 AM
works perfectly for me unfortunately most spammers i got were humans who were paid so yeah eventually they win lol
Title: Re: reCAPTCHA for SMF
Post by: JBlaze on January 12, 2011, 07:10:03 AM
Quote from: kanuni41 on January 12, 2011, 03:44:11 AM
reCaPTCHA don't work in RC4. Help me please or Should you use another spam bolcked in RC4
It works fine if you followed my instructions a few pages back. If you are having a conflict with another mod, then you will have to follow the Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0) doc.
Title: Re: reCAPTCHA for SMF
Post by: Cloudbringer on January 12, 2011, 02:58:42 PM
Quote from: delling on November 12, 2010, 07:57:14 PM
Heya!

Also having issues with SMF 1.11.

The install seems to occur fine -- but I also had an empty Modifications.english.php file.

Still, I dumped the necessary code into that file... and still nothing appearing in Admin > Registration > Settings

Not seeing any errors, either :(
I am on 1.1.12 and am having the same issue.  I am using a custom theme, one that I created myself (copied the default theme to a new directory and then modified it).  I tried the auto install but nothing showed up in the Registration->Settings screen at all.  I then went through and manually installed everything, which resulted in a check box, a drop down, and two text lines showing up in the Registration->Settings screen.  I checked all of the instructions on the manual install, double checked that I had modified all of the PHP files correctly, and nothing I've done seems to make the text show up.

I did manage a partial workaround.  By switching to the default theme, activating the reCaptcha mod, inputting the keys, and saving everything, then switching back to my custom theme, I was able to get the proper text to show up in the Registration->Settings screen.  However when I switch back to my custom theme the text all disappears again.  The mod seemed to be working (the reCaptcha box shows up on the registration screen), but when I tried to register a new member I kept getting back the error that "The letters typed did not match those shown".  I tried to register an account using both the custom theme and the default theme, but I still get the same error.

Any thoughts? 

Having said all that, i still love the mod and am hoping that I can get it working.  Any help you can provide would be appreciated.

Thanks!!
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 12, 2011, 10:36:33 PM
If you are customizing the default theme, do not copy the whole theme directory. It will break language strings and many other things. Copy only the template files you will be changing along with all the CSS and images.

What you did was broke the installation of the modification. It requires changes both in the templates and in the source files. While changes were made in the source files, the important changes in the templates were not made in your custom theme. You will need to make these changes manually, or clean up your custom theme so it uses the default templates where you have not made changes.
Title: Re: reCAPTCHA for SMF
Post by: ltdeta on January 15, 2011, 07:46:58 AM
since a few days recaptcha don't stop register spambots

these are the last registered users (yesterday):

dedHoindyPies    dedHoindyPies    [email protected]    85.17.123.33
Canyclada    Canyclada    [email protected]    212.117.168.24
realliplerunc    realliplerunc    [email protected]    85.17.123.33
aspils    aspils    [email protected]    195.138.87.95
diepZedia    diepZedia    [email protected]    95.168.173.212
ScoothRah    ScoothRah    [email protected]    91.201.66.132

what can i do?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 15, 2011, 01:44:03 PM
RECAPTCHA alone will not stop spammers. Combine with another option such as registration questions and/or httpBL.
Title: Re: reCAPTCHA for SMF
Post by: JBlaze on January 15, 2011, 11:54:44 PM
Quote from: 青山 素子 on January 15, 2011, 01:44:03 PM
RECAPTCHA alone will not stop spammers. Combine with another option such as registration questions and/or httpBL.
Some people think reCAPTCHA is the be all and end all to spammers...

How sadly misinformed some people are :P
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on January 16, 2011, 12:51:56 AM
Quote from: JBlaze on January 15, 2011, 11:54:44 PM
Quote from: 青山 素子 on January 15, 2011, 01:44:03 PM
RECAPTCHA alone will not stop spammers. Combine with another option such as registration questions and/or httpBL.
Some people think reCAPTCHA is the be all and end all to spammers...

How sadly misinformed some people are :P

It lasted for quite some time, until it became easy and cheap to have real humans do the solving.
Title: Re: reCAPTCHA for SMF
Post by: [Lucien] on January 24, 2011, 09:50:01 PM
Quote from: king kratos on January 11, 2011, 05:13:54 PM

Ok, I got it installed on my forum, but it is not centered. I attempted to add align=center and <center> but it still won't center. Any suggestions?

Kratos

Open this file in a editor: Themes/default/GenericControls.template.php

Search:

<div id="verification_control_', $i, '" class="verification_control">';

Replace with:

<div align="center" id="verification_control_', $i, '" class="verification_control">';



I found this info here.... http://www.simplemachines.org/community/index.php?topic=379963.msg2617402#msg2617402 (http://www.simplemachines.org/community/index.php?topic=379963.msg2617402#msg2617402)

Title: Re: reCAPTCHA for SMF
Post by: hakcenter on February 15, 2011, 02:52:33 PM
I was wondering if the mod auth was considering RC5 compat out of the box ?

I haven't tried a RC3 emulation yet, just going through the mods that I have.
Title: Re: reCAPTCHA for SMF
Post by: Aoife on February 15, 2011, 02:59:54 PM
Quote from: hakcenter on February 15, 2011, 02:52:33 PM
I was wondering if the mod auth was considering RC5 compat out of the box ?

I haven't tried a RC3 emulation yet, just going through the mods that I have.

I installed it on 4 forums with the emulation - it's working on all 4.... hope this helps  :)
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 15, 2011, 03:02:49 PM
I'll get to updates when I can. Life has been hectic since before October and I haven't had enough of a block of time to sit down and go over every one of my modifications.
Title: Re: reCAPTCHA for SMF
Post by: hakcenter on February 15, 2011, 11:46:39 PM
Quote from: aoife on February 15, 2011, 02:59:54 PM
I installed it on 4 forums with the emulation - it's working on all 4.... hope this helps  :)

Very well, looks like I know what I'm doing tonight...  8)

Quote from: 青山 素子 on February 15, 2011, 03:02:49 PM
I'll get to updates when I can. Life has been hectic since before October and I haven't had enough of a block of time to sit down and go over every one of my modifications.

I can completely understand.  :D
Title: Re: reCAPTCHA for SMF
Post by: krick on February 18, 2011, 05:40:20 PM
As cool as reCAPTCHA is, I eventually abandoned it because it wasn't stopping the spammers anymore as they're using humans to crack the images instead of bots.

I'm running SMF 1.1.13 with the Anti-Spam Verification Questions for SMF (http://custom.simplemachines.org/mods/index.php?mod=1516) mod and if you come up with a good question, it will stop most of the forum spam.  I only get one or two spammer registrations a month now.  The only protection from spammers I'm using is the built-in SMF image verification (set on medium complexity) and the Verification question mod.

The the hardest part is coming up with a question that your forum's target audience will know, but drive-by spammers will not.  Though, if you want to really use complex questions, you probably need to put some sort of contact email on your registration page for people who get stuck and can't figure out the answer.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 18, 2011, 05:54:49 PM
Quote from: krick on February 18, 2011, 05:40:20 PM
As cool as reCAPTCHA is, I eventually abandoned it because it wasn't stopping the spammers anymore as they're using humans to crack the images instead of bots.

Agreed. I no longer recommend it as the sole protection against spammers.


Quote from: krick on February 18, 2011, 05:40:20 PM
I'm running SMF 1.1.13 with the Anti-Spam Verification Questions for SMF (http://custom.simplemachines.org/mods/index.php?mod=1516) mod and if you come up with a good question, it will stop most of the forum spam.  I only get one or two spammer registrations a month now.  The only protection from spammers I'm using is the built-in SMF image verification (set on medium complexity) and the Verification question mod.

Custom question/answers work really well if done right. I currently recommend using reCAPTCHA plus question/answer and backing that up with the httpbl modification. I've only had one "false" positive on httpbl, which was from a user in South America who inherited a fairly busy spamming IP such that the score was above the "human check" cutoff.
Title: Re: reCAPTCHA for SMF
Post by: Omar Hawk on February 27, 2011, 08:06:39 AM
We are using recaptcha in our board and since the update to RC5 the recaptcha always rejects registrations (after the update, there was no registration anymore, and I also tried to register myself once again - without success)

It is the following board:
http://board.galaxytool.eu

Are there any known problems with recaptcha and rc5?
Title: Re: reCAPTCHA for SMF
Post by: gav240z on February 27, 2011, 10:05:05 AM
Subscribed to this thread as I'd like to know when this mod is ready for RC5 release. Looks very promising.
Title: Re: reCAPTCHA for SMF
Post by: Jeet Chowdhury on March 02, 2011, 10:00:40 AM
how to set reCAPTCHA alignment to center like,

<div align="center"

how to do that?
Title: Re: reCAPTCHA for SMF
Post by: Masterd on March 02, 2011, 03:57:44 PM
http://www.simplemachines.org/community/index.php?topic=213535.msg2927156#msg2927156 (http://www.simplemachines.org/community/index.php?topic=213535.msg2927156#msg2927156)
Title: Re: reCAPTCHA for SMF
Post by: cellax on March 05, 2011, 10:20:00 AM
I am using it on smf 1.1.13 but it always says "An error occurred" and the error is about wrong captcha letters.

I checked myself, the captcha is broken becouse it always says that I wrote wrong lettes, and it isn't true. I cannot register to my forum
Title: Re: reCAPTCHA for SMF
Post by: Masterd on March 05, 2011, 11:59:56 AM
Wich mods do you have installed? 
Title: Re: reCAPTCHA for SMF
Post by: safeacid on March 05, 2011, 03:46:00 PM
Hello guys
Please advise if reCaptcha for RC5 have been released
If yes kindly advise the link for download

tks
Title: Re: reCAPTCHA for SMF
Post by: cellax on March 05, 2011, 05:02:24 PM
I am using these mods


1. Topic description Raid fix fix [ Uninstall ] [ List Files ] [ Delete ]
3. AvatarSelect 1.1.2 [ Uninstall ] [ List Files ] [ Delete ]
4. BBCode Gestione permessi, Raid edit 1.0 [ Uninstall ] [ List Files ] [ Delete ]
5. Redirection Boards, Raid edit 2.01 [ Uninstall ] [ List Files ] [ Delete ]
6. Bookmarks, Raid edit 1.1 [ Uninstall ] [ List Files ] [ Delete ]
7. Contact Form 1.0 [ Uninstall ] [ List Files ] [ Delete ]
8. SMF Theme Contrast Fix 1.1 [ Uninstall ] [ List Files ] [ Delete ]
9. Country Flags, Raid edit 1.0.1 [ Uninstall ] [ List Files ] [ Delete ]
10. Custom BBC BugFix, Raid edit 1.0.0 [ Uninstall ] [ List Files ] [ Delete ]
11. Easy EditMetaData 1.0 [ Apply Mod ] [ List Files ] [ Delete ]
12. Edit own anytime Mod 0.2 [ Uninstall ] [ List Files ] [ Delete ]
13. FavIcon modded by Raid 1.1 [ Uninstall ] [ List Files ] [ Delete ]
14. RSS Feed Icon_Raid edit 1.1 [ Apply Mod ] [ List Files ] [ Delete ]
15. Google Tagged 1.5 [ Uninstall ] [ List Files ] [ Delete ]
17. Group Online Status, Raid edit 1.0 [ Uninstall ] [ List Files ] [ Delete ]
18. H tags: Improve SEO mod 1.0 [ Uninstall ] [ List Files ] [ Delete ]
19. Language Drop, Raid edit 1.0 [ Uninstall ] [ List Files ] [ Delete ]
20. Max Subject Length 1.1 [ List Files ] [ Delete ]
21. MCLegendII modded by RAID 1.1 [ Uninstall ] [ List Files ] [ Delete ]
22. vBulletin Style Meta Tags 1.1 [ Uninstall ] [ List Files ] [ Delete ]
24. Move Old Topics 1.0 [ Uninstall ] [ List Files ] [ Delete ]
25. New Topic Button 1.0 [ Uninstall ] [ List Files ] [ Delete ]
26. Admin Notepad 1.0 [ Uninstall ] [ List Files ] [ Delete ]
28. Increase/Decrease Postbox Size, RAID edit 1.0 [ Uninstall ] [ List Files ] [ Delete ]
29. Pretty URLs 1.0RC5 [ Uninstall ] [ List Files ] [ Delete ]
30. Pretty URLs Extras 1.0 [ Uninstall ] [ List Files ] [ Delete ]
31. Profile User Action 1.1 [ Uninstall ] [ List Files ] [ Delete ]
32. Profil Moderator Managment 1.0.0 [ List Files ] [ Delete ]
34. reCAPTCHA for SMF 0.9.8 [ Uninstall ] [ List Files ] [ Delete ]
36. Custom BBCode modded by RAID 2.00 [ Uninstall ] [ List Files ] [ Delete ]
37. SMFChess, Raid modded 1.0 [ Uninstall ] [ List Files ] [ Delete ]
38. Registration - Show Language mod 1.0.0 [ Uninstall ] [ List Files ] [ Delete ]
39. SMF Arcade, RAID edit 2.0.12 [ List Files ] [ Delete ]
51. Spoiler Tag 0.3.2 [ Uninstall ] [ List Files ] [ Delete ]
52. Thak-O-Matic fix 1.2.3 [ List Files ] [ Delete ]
53. Thank-O-Matic, Raid edit 1.2.1 [ List Files ] [ Delete ]
54. Thank-O-Matic_upgrade [ List Files ] [ Delete ]
55. TinyPortal 1.0RC1 1.101 [ Uninstall ] [ List Files ] [ Delete ]
57. TopicStarter Mod, Raid edit 1.1 [ List Files ] [ Delete ]
58. Topic description 1.1 [ Uninstall ] [ List Files ] [ Delete ]
59. TinyPortal 1.063 [ List Files ] [ Delete ]
60. TinyPortal 1.0 beta 1.052 [ List Files ] [ Delete ]
61. TinyPortal 0.983 [ List Files ] [ Delete ]
62. User CP, Raid edit 2.0 [ Uninstall ] [ List Files ] [ Delete ]
63. View_Email_Permission, Raid modded 1.0 [ Uninstall ] [ List Files ] [ Delete ]
64. VisualWarning, Raid edit 1.41 [ List Files ] [ Delete ]


EDIT: well I used my test smf board, on localhost, just installed smf 1.1.13, and then recaptcha, last version, and it is working.
then I compared Register.php, ManageRegistration.php, Register.template.php and I used the one of test board (where recaptcha is working) on my site, just for test, and it is still not working.  something is wrong, if the mod calls only these files, why it is still not working?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 05, 2011, 08:12:48 PM
Sometimes that happens. I believe it's related to the item fetched twice, but not updating the display. It seems to be more problematic when other things are added to the registration screen.

Given that reCAPTCHA is nowhere near as effective as it was when this was originally written (due to real humans solving the things), you can remove it without too much change in your situation. I recommend using the question/answer registration modification at a bare minimum.
Title: Re: reCAPTCHA for SMF
Post by: cellax on March 06, 2011, 04:10:06 PM
well last character was missing on my private key, so the identification was always wrong.
I discovered it after 2 hours of tests and many code modification on localhost :D

as feature quest: is it possible to have in admin CP a green check when keys are submitted correctly?

I like so much this mod, thank you
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 06, 2011, 11:02:19 PM
It is impossible (as far as I know) to tell if the keys are valid on the client side. There might currently be a standard length, but that may vary in the future.
Title: Re: reCAPTCHA for SMF
Post by: blazinchuck on March 08, 2011, 08:23:11 PM
hello, i just uploaded recaptcha to my forum 2.0RC5 emulated, ive tried 2 sets of keys and its not working, just rejects new sign ups. please help.

http://carolinadiesels.com
Title: Re: reCAPTCHA for SMF
Post by: blazinchuck on March 08, 2011, 09:08:19 PM
also...when i installed the recaptcha...it  doesnt show my verification question now.


any reason why i cant get the keys to work...i keep getting errors when i try to sign up as a test member
Title: Re: reCAPTCHA for SMF
Post by: SN95Forums on March 08, 2011, 09:53:19 PM
I have a problem with this plugin.

I install and all works great besides it fails on the Register.template.php. Regardless I install, it wont display on my custom theme registration page until I modify the Register.template.php in the Default folder from the install instructions.

Once I do that I get this error when ever someone trys to login with the wrong password:

"Password incorrect - <span class="remove">their username</span>"
Title: Re: reCAPTCHA for SMF
Post by: blazinchuck on March 09, 2011, 07:10:56 AM
back to the top
Title: Re: reCAPTCHA for SMF
Post by: blazinchuck on March 10, 2011, 09:37:51 AM
anyone??
Title: Re: reCAPTCHA for SMF
Post by: Clickout on March 11, 2011, 07:11:01 AM
i've installed the recaptcha mod in my 2.0rc4 forum. the mod works fine for registration page & quick reply.
But it is not possible to post new thread or post using the normal reply; on clicking the post button the page redirects to "Start new topic"

pl. help.
Title: Re: reCAPTCHA for SMF
Post by: blazinchuck on March 11, 2011, 09:43:15 AM
is there any help being offered on this topic anymore??
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 11, 2011, 01:28:58 PM
Quote from: blazinchuck on March 11, 2011, 09:43:15 AM
is there any help being offered on this topic anymore??

Sorry, I've been very busy of late between ongoing personal issues and work. I have not had time to look over the posts on this topic. Also, bumping doesn't help much since the standard support team doesn't keep these on their radar, it just ******s up the topic and makes it more difficult to respond. Heck, I'm less liable to help since it shows an intense disrespect for something I have tried to do on my free time.

Actually, you know what? I'm at work, have five projects with hard deadlines fast approaching, and am not in the mood to respond to requests from disrespectful folks. If I get a chance later I might respond.


Quote from: SN95Forums on March 08, 2011, 09:53:19 PM
I install and all works great besides it fails on the Register.template.php. Regardless I install, it wont display on my custom theme registration page until I modify the Register.template.php in the Default folder from the install instructions.

Unless you made special changes to that page, you really shouldn't have it in your custom theme. It makes it much harder for modifications that way.

Quote from: SN95Forums on March 08, 2011, 09:53:19 PM
Once I do that I get this error when ever someone trys to login with the wrong password:

"Password incorrect - <span class="remove">their username</span>"

Where are you seeing the error? If they are using the wrong password, they probably should get that...


Quote from: Clickout on March 11, 2011, 07:11:01 AM
i've installed the recaptcha mod in my 2.0rc4 forum. the mod works fine for registration page & quick reply.
But it is not possible to post new thread or post using the normal reply; on clicking the post button the page redirects to "Start new topic"

Hm. That's odd. Are you using a custom post template? There might have been some changes that didn't get applied to a custom theme.
Title: Re: reCAPTCHA for SMF
Post by: blazinchuck on March 11, 2011, 01:58:21 PM
Quote from: 青山 素子 on March 11, 2011, 01:28:58 PM

Heck, I'm less liable to help since it shows an intense disrespect for something I have tried to do on my free time.

Actually, you know what? I'm at work, have five projects with hard deadlines fast approaching, and am not in the mood to respond to requests from disrespectful folks. If I get a chance later I might respond.

sorry if you felt I was disrespectful, and I was not. I thought it was common knowledge  to bring a topic to the top once a day( on a thread you feel is important) it was a simple bump per day...so it doesnt get buried 4 pages down
Title: Re: reCAPTCHA for SMF
Post by: Jeet Chowdhury on March 12, 2011, 05:06:02 AM
thanks.
Title: Re: reCAPTCHA for SMF
Post by: Jeet Chowdhury on March 12, 2011, 05:10:21 AM
it center the captch but in guest search captcha area its still align to left. how to center that also?
Title: Re: reCAPTCHA for SMF
Post by: Clickout on March 12, 2011, 08:29:55 AM
Problem resolved

Quote from: 青山 素子 on March 11, 2011, 01:28:58 PM
Quote from: Clickout on March 11, 2011, 07:11:01 AM
i've installed the recaptcha mod in my 2.0rc4 forum. the mod works fine for registration page & quick reply.
But it is not possible to post new thread or post using the normal reply; on clicking the post button the page redirects to "Start new topic"

Hm. That's odd. Are you using a custom post template? There might have been some changes that didn't get applied to a custom theme.

sorry for late reply, actually the issue was caused due to my htaccess redirect to www form and my prettyurl mod was not fully updated with my new url change.

Title: Re: reCAPTCHA for SMF
Post by: kyleL on March 13, 2011, 04:02:59 PM
When I try to install this, it says it's not for my version of SMF.

I'm using SMF 2.0 RC5, and I've installed it on RC5 before, but why wouldn't it be doing it now?
Title: Re: reCAPTCHA for SMF
Post by: Arantor on March 13, 2011, 06:48:40 PM
Did you use Admin > Packages > Browse Packages > Advanced lately?
Title: Re: reCAPTCHA for SMF
Post by: Jeet Chowdhury on March 18, 2011, 05:06:08 AM
Quote from: Jeet Chowdhury on March 12, 2011, 05:10:21 AM
it center the captch but in guest search captcha area its still align to left. how to center that also?


plz reply on this. :(
Title: Re: reCAPTCHA for SMF
Post by: zendengoh on March 22, 2011, 12:53:28 AM
Sorry everyone, newbies here, may I know how to install this MOD?
(http://img215.imageshack.us/i/recaptchaforsmf.jpg/)
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 22, 2011, 10:49:43 AM
Just like any other modification. Use the package manager.
Title: Re: reCAPTCHA for SMF
Post by: mariusfv on March 22, 2011, 04:40:46 PM
Update please for 2.0 RC5, I try to install via package manager and isn't compatible...
Title: Re: reCAPTCHA for SMF
Post by: Masterd on March 23, 2011, 06:19:56 AM
Did you tried the emulation?
Title: Re: reCAPTCHA for SMF
Post by: Niklas_ on March 27, 2011, 09:59:46 AM
I'm running smf 1.1.13 and installed the reCaptcha yesterday. Unfortunately it doesn't help...

There are still spammers registering in my Forum. Could you check if I made a mistake when installing it, please or otherwise make a suggestion to why spammer keep registering?
The URL is dachboden-wg.de (http://dachboden-wg.de)

Thanks
Niklas
Title: Re: reCAPTCHA for SMF
Post by: xMichael2008x on March 27, 2011, 02:48:21 PM
Can anyone help me center my reCAPTCHA http://awesomescreenshot.com/00fa7jwfe for the Search feature? It's centered for registration page, I have no idea why it's not centered for Search. I am using RC5
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 27, 2011, 10:36:05 PM
Quote from: Niklas_ on March 27, 2011, 09:59:46 AM
There are still spammers registering in my Forum. Could you check if I made a mistake when installing it, please or otherwise make a suggestion to why spammer keep registering?

reCAPTCHA is being bypassed by spam programs using the services of companies like Captcha*** (sorry, not going to give them free advertising). These services use real humans to solve the puzzles.

I recommend using custom question/answer solutions currently along with services like Project Honeybot's HTTPbl (there is an SMF mod for this service).
Title: Re: reCAPTCHA for SMF
Post by: blazinchuck on March 28, 2011, 10:29:25 AM
Quote from: blazinchuck on March 08, 2011, 08:23:11 PM
hello, i just uploaded recaptcha to my forum 2.0RC5 emulated, ive tried 2 sets of keys and its not working, just rejects new sign ups. please help.

http://carolinadiesels.com
can i get some help with this please. i still have it disabled. as if i try to use it...it wont let anyone register
Title: Re: reCAPTCHA for SMF
Post by: Aoife on March 28, 2011, 10:42:04 AM
I've been using it on all my forums and some potential registrants can't register no matter how many times they try while others can without a problem. this has happened often enough now that I've had to disable this addon and resort to the default captcha with questions. Not entirely a bad thing but I prefer using recaptcha.

Title: Re: reCAPTCHA for SMF
Post by: duzzzstar on April 14, 2011, 10:34:50 PM
Quote from: Masterd on March 23, 2011, 06:19:56 AM
Did you tried the emulation?

how to do?
Title: Re: reCAPTCHA for SMF
Post by: mariusfv on April 15, 2011, 02:27:11 AM
Quote from: Jeet Chowdhury on March 18, 2011, 05:06:08 AM
Quote from: Jeet Chowdhury on March 12, 2011, 05:10:21 AM
it center the captch but in guest search captcha area its still align to left. how to center that also?


plz reply on this. :(

I have the same issue the recaptcha isn't centered on guest search and on member post(for first 5 post is required recaptcha).
I've asked on a separate topic but nobody answer me the solution.
So nobody can tell us where must to modify for guest search and member post ? ...what is the files ...maybe I'll find the solution.

10x
Title: Re: reCAPTCHA for SMF
Post by: mariusfv on April 15, 2011, 05:43:56 AM
I find bug for this mod on SMF 2.0RC5:

If you install this mod on 2.0 RC5 with emulate will install ok without problems.

BUT:

1. First bug: If you use recaptcha for new members to be required at first 5 posts and member type wrong a letter will receive the msg: "The letters you typed don't match the letters that were shown in the picture" and give you: Back button link...till here is ok but after you type the back button and type correctly the new recaptcha code(i try with refresh code too) will receive always this error:
You already submitted this post! You might have accidentally double clicked or tried to refresh the page.

Doesn't matter you refresh the code or try the new code added by recaptcha -> the same error!
If you type correctly from first time the letters -> member can post.

If member will get this error with: " You already submitted this post! You might have accidentally double clicked or tried to refresh the page.  " after that if try to make new post on other forum area have no chance until he logout/login again, will get this error always: You can't access this section when he push the post button!

2. Second bug: If as Admin you unchecked the box: smf default captcha -> because you check the recaptcha! the recaptcha will not appear on search/register/etc and guest/members will get always the error letters.(so recaptcha work anly if smf captcha is checked too.)

I test on my forum test and in my forum too! 

Title: Re: reCAPTCHA for SMF
Post by: Markco on June 12, 2011, 03:05:36 PM
Please update for 2.0Gold.
Thank's
Title: Re: reCAPTCHA for SMF
Post by: Ascot on June 12, 2011, 03:57:40 PM
hi everyone. I've installed this mod but i modify the package info for installing on RC5
It installs perfectly.

Code seems to be okay and it shows aligned to left. But when i fill all the form fields and captcha and then i press register button i got the following error:

An error has ocurred!
You are not authorized to enter to this section.

i tried updating recaptchalib.php but nothing new happened.

do you know how to solve this?
thanks in advance~
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 13, 2011, 01:31:22 AM
Quote from: Markco on June 12, 2011, 03:05:36 PM
Please update for 2.0Gold.
Thank's

I will update as soon as I have time.


Quote from: Lük· on June 12, 2011, 03:57:40 PM
Code seems to be okay and it shows aligned to left. But when i fill all the form fields and captcha and then i press register button i got the following error:

An error has ocurred!
You are not authorized to enter to this section.

That's interesting. It shouldn't give that error in general. I'll see if I can reproduce it when I get a chance.
Title: Re: reCAPTCHA for SMF
Post by: Aaron10 on June 16, 2011, 09:40:54 AM
Does this work with the new 1.1.14?
Title: Re: reCAPTCHA for SMF
Post by: jorditorre on June 16, 2011, 09:51:07 AM
Quote from: 青山 素子 on June 13, 2011, 01:31:22 AM
Quote from: Markco on June 12, 2011, 03:05:36 PM
Please update for 2.0Gold.
Thank's

I will update as soon as I have time.


Quote from: Lük· on June 12, 2011, 03:57:40 PM
Code seems to be okay and it shows aligned to left. But when i fill all the form fields and captcha and then i press register button i got the following error:

An error has ocurred!
You are not authorized to enter to this section.

That's interesting. It shouldn't give that error in general. I'll see if I can reproduce it when I get a chance.

is now already available for smf 2.0 recatcha gold???????????
Title: Re: reCAPTCHA for SMF
Post by: lorth on June 16, 2011, 01:15:11 PM
Quote from: Aaron10 on June 16, 2011, 09:40:54 AM
Does this work with the new 1.1.14?
somewhat.
it install and displays/verify thw captcha, but in my experience it doesnt stop spammers.
google captcha seems kinda broken.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 16, 2011, 08:53:11 PM
reCAPTCHA has been broken for a while now as spammers have moved to using real humans to solve the puzzles. You'll need an additional method such as registration questions.

Quote from: jorditorre on June 16, 2011, 09:51:07 AM
is now already available for smf 2.0 recatcha gold???????????

Not yet.
Title: Re: reCAPTCHA for SMF
Post by: stanaca on June 19, 2011, 12:03:36 PM
reCAPTCHAforSMF_0-9-7.tar.gz    
reCAPTCHAforSMF_0-9-8.tar.gz    
reCAPTCHAforSMF_0-9-8a.tar.gz    

which one should i use for smf 2.0. and last one alfa looks unstable ???? should i install it??
Title: Re: reCAPTCHA for SMF
Post by: SD-X on June 19, 2011, 03:18:59 PM
If you check a few posts back, the author said it's not yet compatible with SMF2 Gold. I know how you feel though. I'm waiting for a release as well. :)
Title: Re: reCAPTCHA for SMF
Post by: stanaca on June 19, 2011, 03:22:16 PM
Quote from: SugarD-x on June 19, 2011, 03:18:59 PM
If you check a few posts back, the author said it's not yet compatible with SMF2 Gold. I know how you feel though. I'm waiting for a release as well. :)

it's compatible now . check here
http://custom.simplemachines.org/mods/index.php?mod=1044
Title: Re: reCAPTCHA for SMF
Post by: SD-X on June 19, 2011, 03:28:42 PM
Ah ha! Sweet! Thanks man!

In that case I would recommend using the latest one, which appears to be 0.9.8a :)
Title: Re: reCAPTCHA for SMF
Post by: stanaca on June 19, 2011, 03:39:44 PM
I just installed. it's working fine.
on registration page captcha get aligned to left rather than center when i chose theme other than clean
Title: Re: reCAPTCHA for SMF
Post by: SD-X on June 19, 2011, 04:12:51 PM
Quote from: stanaca on June 19, 2011, 03:39:44 PM
I just installed. it's working fine.
on registration page captcha get aligned to left rather than center when i chose theme other than clean
That's not good. I used the clean one and it seems to work fine. Seems maybe he forgot to update something on the others as far as an HTML tag or two goes. Are you using the default theme or a custom one?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 19, 2011, 07:10:42 PM
Quote from: stanaca on June 19, 2011, 12:03:36 PM
which one should i use for smf 2.0. and last one alfa looks unstable ???? should i install it??

The "a" isn't "alpha", it's just a revision on 0.9.8. The only change was the stated version compatibility, so the version number wasn't bumped.

Quote from: stanaca on June 19, 2011, 03:39:44 PM
on registration page captcha get aligned to left rather than center when i chose theme other than clean

Some of this can't be controlled as the themes are built into the reCAPTCHA service. I'll make a note and look into if it's possible to remove forced alignment for future updates.
Title: Re: reCAPTCHA for SMF
Post by: Kimojuno on June 19, 2011, 08:05:01 PM
Hey,

The URL (http://recaptcha.net/api/getkey?app=recaptcha_for_smf) that the mod links to returns a 404 message.

It is easy enough to signup for the keys from the main recaptcha website, but not everyone may know about that.

Jeff.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 19, 2011, 11:11:46 PM
Thank you for the report. I'll add to the bug list and fix the URL as soon as I can.
Title: Re: reCAPTCHA for SMF
Post by: Perspective on June 24, 2011, 12:30:52 PM
Hum, hi there.
The link that sends me to get the key is broken.
The page shows me 'Not found" , "Error 404".
How to get that key ?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 24, 2011, 12:48:04 PM
You will want to go to a new URL to get your key. The old one no longer forwards. This has been noted as a bug and will be fixed as soon as time permits.

The new URL is https://www.google.com/recaptcha/admin/create
Title: Re: reCAPTCHA for SMF
Post by: Perspective on June 24, 2011, 01:15:43 PM
Ok, went there and got my key.
Thanks!
Title: Re: reCAPTCHA for SMF
Post by: Markco on June 25, 2011, 03:23:04 AM
Please how to set this text in my language:

(http://www.hostingpics.net/viewer.php?id=777162ecr0176.jpg)

Thank's
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 25, 2011, 12:43:52 PM
See: http://code.google.com/apis/recaptcha/docs/customization.html

There are only a few languages supported.
Title: Re: reCAPTCHA for SMF
Post by: Markco on June 25, 2011, 02:50:05 PM
i see, but where is the RecaptchaOptions in the mod
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 25, 2011, 04:26:50 PM
Quote from: Markco on June 25, 2011, 02:50:05 PM
i see, but where is the RecaptchaOptions in the mod

It's not directly adjustable. You'll need to edit GenericControls.template.php.
Title: Re: reCAPTCHA for SMF
Post by: otakuduo on June 25, 2011, 05:19:45 PM
I took a look but couldn't find an answer to my issue. Hope someone can help.

SMF Version 1.1.14

I Currently get the following error:

8: Undefined index: use_recaptcha
File: /usr/home/forums/Themes/default/Register.template.php
Line: 132


this relates to the following code :

if ($context['use_recaptcha'])
      {
         echo '
                     <script type="text/javascript">
                     var RecaptchaOptions = {
Title: Re: reCAPTCHA for SMF
Post by: Markco on June 25, 2011, 09:32:12 PM
Quote from: 青山 素子 on June 25, 2011, 04:26:50 PM
You'll need to edit GenericControls.template.php.
And?
Title: Re: reCAPTCHA for SMF
Post by: SD-X on June 25, 2011, 10:11:43 PM
Quote from: otakuduo on June 25, 2011, 05:19:45 PM
I took a look but couldn't find an answer to my issue. Hope someone can help.

SMF Version 1.1.14

I Currently get the following error:

8: Undefined index: use_recaptcha
File: /usr/home/forums/Themes/default/Register.template.php
Line: 132


this relates to the following code :

if ($context['use_recaptcha'])
      {
         echo '
                     <script type="text/javascript">
                     var RecaptchaOptions = {
Make sure you're using the latest version, which is 0.9.8a as of this posting. The version was incremented with the "a" in it to show that the current version was made compatible with 1.1.14 and 2.0 Gold.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 25, 2011, 11:10:40 PM
Quote from: otakuduo on June 25, 2011, 05:19:45 PM
I Currently get the following error:

8: Undefined index: use_recaptcha
File: /usr/home/forums/Themes/default/Register.template.php
Line: 132

Not a critical issue, just an undefined index. I thought I cleaned all those out previously, but it looks like at least one slipped through. It won't hurt anything other than take up space in the error log.


Quote from: SugarD-x on June 25, 2011, 10:11:43 PM
Make sure you're using the latest version, which is 0.9.8a as of this posting. The version was incremented with the "a" in it to show that the current version was made compatible with 1.1.14 and 2.0 Gold.

The 1.1 series has been wildcarded, so 0.9.8 will work just fine as well. The only change between 0.9.8 and 0.9.8a was testing and addition of the 2.0 release version so one wouldn't need to use version emulation.
Title: Re: reCAPTCHA for SMF
Post by: otakuduo on June 26, 2011, 04:36:25 AM
Quote from: 青山 素子 on June 25, 2011, 11:10:40 PM
Quote from: otakuduo on June 25, 2011, 05:19:45 PM
I Currently get the following error:

8: Undefined index: use_recaptcha
File: /usr/home/forums/Themes/default/Register.template.php
Line: 132

Not a critical issue, just an undefined index. I thought I cleaned all those out previously, but it looks like at least one slipped through. It won't hurt anything other than take up space in the error log.


its actually stopping the recaptcha from showing.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 26, 2011, 12:20:27 PM
Quote from: otakuduo on June 26, 2011, 04:36:25 AM
its actually stopping the recaptcha from showing.

Did you make sure to put in the keys and enable it?


Quote from: Present. on June 26, 2011, 09:50:03 AM
Why after changing the color, recaptcha escape to the left?

Because the reCAPTCHA code provided by the service left-aligns the other styles. There is information on how to override that earlier in this topic.
Title: Re: reCAPTCHA for SMF
Post by: otakuduo on June 26, 2011, 01:17:28 PM
Quote from: 青山 素子 on June 26, 2011, 12:20:27 PM
Quote from: otakuduo on June 26, 2011, 04:36:25 AM
its actually stopping the recaptcha from showing.

Did you make sure to put in the keys and enable it?

Yup

i just get the built in version. Even if i turn that off nothing shows. The statement that builds the page is the one with the index error.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 26, 2011, 04:06:23 PM
Are you using a custom theme? If so, what happens if you use the default theme?
Title: Re: reCAPTCHA for SMF
Post by: otakuduo on June 26, 2011, 05:48:24 PM
yup using the default theme with one other mod using these pages.
Title: Re: reCAPTCHA for SMF
Post by: Clickout on July 06, 2011, 09:12:40 AM
hi,
after activating the cloudflare security in my site, the recaptcha is not working.
it shows the message : For security reasons, you must pass the remote ip to reCAPTCHA

i'm using smf 2.0rc4
www.ipool.tk/register/
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 07, 2011, 01:02:45 PM
You'll probably need to install something like mod_cloudflare (http://www.cloudflare.com/wiki/Log_Files) on the server to get the proper IP in the proper place. If you're using shared hosting, you will not be able to do this.
Title: Re: reCAPTCHA for SMF
Post by: subcor on July 10, 2011, 09:07:07 AM
I installed this mod, but still about a dozen spammer registers to my site a day. I know that because the Stop Spammer Mod doesn't let them activate their account. Did I do something wrong, or bots can solve reCAPTCHA  nowadays? It seems working, it is displayed on the registration page and doesn't let me further without solving the captcha.
Title: Re: reCAPTCHA for SMF
Post by: White-Tiger on July 10, 2011, 10:54:46 AM
Quote from: Clickout on July 06, 2011, 09:12:40 AM
hi,
after activating the cloudflare security in my site, the recaptcha is not working.
it shows the message : For security reasons, you must pass the remote ip to reCAPTCHA

i'm using smf 2.0rc4
\[...\]
ok you are using SMF 2x, and I don't know if it's fixed there already but it could be an IPv6 issue
since I've got the same problem with SMF 1x when using IPv6 to connect.

Fix for SMF 1x would be to change the reCAPTCHA for SMF so it replaces the non-existing IP with '127.0.0.1' instead of printing "For security reasons, you must pass the remote ip to reCAPTCHA"
Fix for SMF 2x would be to add IPv6 Support... eg. with this: "IPv6 support" http://custom.simplemachines.org/mods/index.php?mod=3051 (didn't tested since I use SMF 1x, but it sounds good)

use my attached reCAPTCHA with caution, u should try the original one first and/or try to find a mod to add IPv6 support to SMF. The attached should be only used to fix IPv6 issues with the reCAPTCHA modification on SMF.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 10, 2011, 03:30:13 PM
Quote from: subcor on July 10, 2011, 09:07:07 AM
I installed this mod, but still about a dozen spammer registers to my site a day. I know that because the Stop Spammer Mod doesn't let them activate their account. Did I do something wrong, or bots can solve reCAPTCHA  nowadays? It seems working, it is displayed on the registration page and doesn't let me further without solving the captcha.

They do. There are human services that the bots now use to solve CAPTCHAs. It's been this way for several years now. Use a combination of methods such as including registration questions.


Quote from: White-Tiger on July 10, 2011, 10:54:46 AM
use my attached reCAPTCHA with caution, u should try the original one first and/or try to find a mod to add IPv6 support to SMF. The attached should be only used to fix IPv6 issues with the reCAPTCHA modification on SMF.

I do not allow redistribution. Please remove the attachment. If you want to, post the changes, but do NOT package the code together.
Title: Re: reCAPTCHA for SMF
Post by: Joker™ on July 10, 2011, 03:31:37 PM
White-Tiger, it is not allowed to re-distribute a modification without having proper permissions from mod author.
Title: Re: reCAPTCHA for SMF
Post by: wlchase on July 20, 2011, 10:53:49 AM
I have had a couple of folks trying to join our forums report problems with the CAPTCHA, specifically, the area is blank except for the text "Input error: Invalid referer" in it.

I have had no trouble so far creating a new user, and we are getting other registrations successfully.

Can you point me in a direction to look?

Thanks!
Bill
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 20, 2011, 04:03:26 PM
This error occurs when you are using valid keys, but they don't match the domain the form is on.

First, double-check that the keys you are using are correct for that domain.

If they are correct, then do you have multiple domains pointed at the same site? If so, it could be posting from the other domain. If not, make sure you didn't generate the keys for "www.domain" and instead used just "domain". If you generated keys for "www.domain", they will only work with the www prefix, and if the form is being sent from the site without that prefix, you'll get that error.
Title: Re: reCAPTCHA for SMF
Post by: wlchase on July 21, 2011, 04:58:28 PM
Thanks! That's probably it. We changed out domain name a few months ago, and some folks likely have come to us from an old reference.

Awesome support!

Bill
Title: Re: reCAPTCHA for SMF
Post by: gingeee85 on July 24, 2011, 05:43:24 AM
hi, im having a problem, iv installed this on my site, didnt read properly about the keys and now i cant log in or anything, here is what i get, input error: k: key is invalid, how can i sort this out without having to wipe my site clean?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 25, 2011, 12:59:04 AM
You should be able to log in with your administrator account without issue. Once in, disable the same way you enabled the modification.
Title: Re: reCAPTCHA for SMF
Post by: gingeee85 on July 25, 2011, 02:35:31 AM
unfortunatly it wont let me log into admin either
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 25, 2011, 12:43:44 PM
That is very odd as this modification does not change anything with that process.

If you want to disable the modification manually, you'll need to set "recaptcha_enabled" in the settings table to "0". This requires a manual database edit.
Title: Re: reCAPTCHA for SMF
Post by: gingeee85 on July 26, 2011, 10:02:28 AM
cheers will do this now thanks
Title: Re: reCAPTCHA for SMF
Post by: gingeee85 on July 27, 2011, 05:38:54 AM
were abouts do i change this value, i cannot find anywere, sorry
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 27, 2011, 10:32:18 AM
It's in the database in the settings table.
Title: Re: reCAPTCHA for SMF
Post by: gingeee85 on July 27, 2011, 01:58:49 PM
i still have no idea were abouts it is mate at all, cant locate the file
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 27, 2011, 02:34:17 PM
It's not a file. You need to edit the database directly.
Title: Re: reCAPTCHA for SMF
Post by: gingeee85 on July 27, 2011, 03:40:35 PM
how do i do that, im not that good with stuff like this, got my mate to do it originally and now he dissapeard lol
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 27, 2011, 07:33:14 PM
You'll need to use a database editing tool that your host provides, such as phpMyAdmin (http://wiki.simplemachines.org/smf/PhpMyAdmin). If you are unsure what to do, your host may be able to make the edit for you if you ask nicely.
Title: Re: reCAPTCHA for SMF
Post by: gingeee85 on July 28, 2011, 11:38:32 AM
right finally sorted cheers, now to try again reading the instructions properly lol
Title: Re: reCAPTCHA for SMF
Post by: robertrael on August 05, 2011, 01:47:30 PM
I am getting the error "Input error: k: Format of site key was invalid".  I did some googling and tried to switch my keys, but to no avail. 

I tried really hard to search the topic for my answer. I only found one person asking about it, and ultimately you had helped them disable. I really need the functionality to cut back on spam to my forum.

SMF 1.1.14

Please advise on how to fix, and thank you.

Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 05, 2011, 11:34:45 PM
If you are selecting and pasting the keys, make sure you're putting in the whole key and that you don't have a space at the end of it. The space at the end is a fairly common issue.
Title: Re: reCAPTCHA for SMF
Post by: robertrael on August 06, 2011, 01:33:23 AM
Thank you for the quick response.  I just finished triple checking that.  I was also concerned that maybe my version of reCAPTCHA for SMF was incorrect, but I have 0.9.8a.  That's correct right?  The link to generate a key is the old address though.  Is there a newer version?

Thanks for your help!
Title: Re: reCAPTCHA for SMF
Post by: robertrael on August 06, 2011, 01:40:02 AM
I figured it out.. I had created the key for http://host.domain.com.  When I re-read the tips I decided to try http://domain.com even though I am only using the reCAPTCHA on http://host.domain.com and it worked!

Thanks for your help!
Title: Re: reCAPTCHA for SMF
Post by: xpubstargamingx on August 10, 2011, 03:50:39 PM
I installed this Mod with no issues, but I have no extra option under my Registration Settings and when I go to the Registration page there is nothing new there.

1.1.14
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 10, 2011, 03:58:54 PM
You must enable the reCAPTCHA system to use it, so you won't see anything there by default.

You might be using a custom theme that has extra template files it probably shouldn't have. Switch to the default theme and the options should show.
Title: Re: reCAPTCHA for SMF
Post by: Steveiwonder on August 13, 2011, 07:50:03 PM
Cannot get keys...
Get your reCAPTCHA key here. link is dead...

Not Found
Error 404

http://recaptcha.net/api/getkey?app=recaptcha_for_smf

Anyone got any idea?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 13, 2011, 10:57:50 PM
Steveiwonder, use the newest version of the modification, which has the updated URL for getting keys. Heck, just going to "http://recaptcha.net/" will take you to the main page for the service, where you can register for a key pair.

If you're really lazy, just use this link directly: https://www.google.com/recaptcha/admin/create
Title: Re: reCAPTCHA for SMF
Post by: xpubstargamingx on August 16, 2011, 02:22:08 PM
Quote from: 青山 素子 on August 10, 2011, 03:58:54 PM
You must enable the reCAPTCHA system to use it, so you won't see anything there by default.

You might be using a custom theme that has extra template files it probably shouldn't have. Switch to the default theme and the options should show.

This was exactly what I needed to do.

Switch my Theme to Default edit the settings I wanted then switch my Theme back to my current.
Title: Re: reCAPTCHA for SMF
Post by: briggz5d on August 17, 2011, 07:28:41 AM
Quote from: 青山 素子 on August 13, 2011, 10:57:50 PM
Steveiwonder, use the newest version of the modification, which has the updated URL for getting keys.
Are you saying the Mod on the SMF site is not an updated version?? Or its just the link to get the KEY that is outdated.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 18, 2011, 10:52:32 AM
The link to get the key is outdated. I checked and it is fixed, but I haven't packaged the updates yet, so 0.98a is indeed still the latest version and does have the old recaptcha.net URL.
Title: Re: reCAPTCHA for SMF
Post by: SD-X on September 19, 2011, 04:32:59 PM
Just an odd side-note, I noticed upon uninstalling it tries to find ?> in the Default theme's CSS file to add a blank line before it, which makes no sense because the CSS file is not coded in PHP. It uninstalls fine without issues despite this bug, but thought I'd mention it since it may scare some less-experienced users. :)

P.S. Upon installation, it tries to find that same code again to add CSS before it, and for some reason SMF 2 doesn't see an issue with it despite that closing PHP tag not existing in there. It's odd to say the least, but all seems to work well.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on September 19, 2011, 05:22:11 PM
Quote from: SugarD-x on September 19, 2011, 04:32:59 PM
P.S. Upon installation, it tries to find that same code again to add CSS before it, and for some reason SMF 2 doesn't see an issue with it despite that closing PHP tag not existing in there. It's odd to say the least, but all seems to work well.

Are you seeing this in SMF itself, or in a parser tool? The instructions in the XML are to add the lines at the end, and whatever is showing this, might just be using that as a placeholder for "end of file" regardless of it being PHP or not.
Title: Re: reCAPTCHA for SMF
Post by: SD-X on September 19, 2011, 08:39:10 PM
Quote from: 青山 素子 on September 19, 2011, 05:22:11 PM
Quote from: SugarD-x on September 19, 2011, 04:32:59 PM
P.S. Upon installation, it tries to find that same code again to add CSS before it, and for some reason SMF 2 doesn't see an issue with it despite that closing PHP tag not existing in there. It's odd to say the least, but all seems to work well.

Are you seeing this in SMF itself, or in a parser tool? The instructions in the XML are to add the lines at the end, and whatever is showing this, might just be using that as a placeholder for "end of file" regardless of it being PHP or not.
It happened in SMF 2 itself when I went to "uninstall" the "package". I'm beginning to think it's a SMF 2 bug though. I saw this happen with another mod an hour or two after my post with another mod on a different SMF 2 forum.
Title: Re: reCAPTCHA for SMF
Post by: MrManager on October 06, 2011, 01:19:13 PM
I'm trying to install the mod right now but I get the following errors:

3.    Execute Modification    themes/curve.xml    Modification parse error
   4.    Execute Modification    themes/curve.xml    Modification parse error
   5.    Execute Modification    languages/english.xml    Modification parse error
   6.    Execute Modification    languages/english.xml    Modification parse error

How can I fix this?
Title: Re: reCAPTCHA for SMF
Post by: leasureforum on October 17, 2011, 06:00:25 AM
I've got an issue

Recently I upgraded my forum from 1.1.15 to 2.0.1 and I'm using default theme

In the upgrade I deleted recaptcha mod and installed the last version (0.9.8a) and it runs correctly -almost-

I noticed spammers where too much numerous than before when I was runing 1.1.15 and recaptcha mod

Fortunatly I also run Stop Spammer mod and I only have to reject them but it takes me too much more time than before

Here is the issue I found when trying a new registration: at the window where you have to choose your user name and pasword recaptcha doesn't appeares (just after submitting the agreement letter and saying you are older than 16 years)

Is it that something related to my 2.0.1 SMF's version?

I have recaptcha enabled and configured to require users under 50 posts to enter recaptcha code to send PM and users under 25 post to enter recaptcha code to reply any theme and it works. The only thing not working is the registration board

In the meanwhile I installed Anti Bot: Are You Human/Bot? mod to try solve the spammers registrations

Any help will be appreciated
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on October 17, 2011, 11:41:03 AM
Are you using a custom theme?

Also, if you are using SMF 2, you should use the verification questions feature that's built-in. It's currently one of the most effective methods of defeating automated attempts to register/post.
Title: Re: reCAPTCHA for SMF
Post by: leasureforum on October 19, 2011, 05:14:23 AM
Hi, I'm using SMF 2.0.1 and Default Theme

Due to several problems regarding users being unable to post any replies to any topic using recaptcha I decided to disable reCAPTCHA

I installed Anti Bot: Are You Human/Bot? mod version 3.0 (for registration) and currently I use built-in verification system (for posting)

Bots decreased activity and verification for posting in topics works

Tge question is: will we have a reCAPTCHA update for 2.0.1?
Title: Re: reCAPTCHA for SMF
Post by: SD-X on October 19, 2011, 10:47:56 AM
ReCaptcha works just fine in 2.0.1, so it's likely an issue with your theme and ReCaptcha in 2.0.1.
Title: Re: reCAPTCHA for SMF
Post by: leasureforum on October 19, 2011, 01:25:43 PM
As told, I'm using SMF Default Theme - Curve

And those are the mods actually running

Title: Re: reCAPTCHA for SMF
Post by: SD-X on October 19, 2011, 03:27:05 PM
You have quite a few mods that run on the login screen, so there may be a code conflict somewhere. I know httpBL and StopSpammer work just fine with ReCaptcha, though.
Title: Re: reCAPTCHA for SMF
Post by: [Lucien] on November 09, 2011, 09:30:13 AM
Great mod!! How can i set the Recaptcha to my language? (dutch)

I mean within the Recaptcha block :) Not within modifications.dutch.php

Thanks :D
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 09, 2011, 10:56:15 AM
See http://code.google.com/apis/recaptcha/docs/customization.html
Title: Re: reCAPTCHA for SMF
Post by: [Lucien] on November 09, 2011, 01:00:16 PM
Quote from: 青山 素子 on November 09, 2011, 10:56:15 AM
See http://code.google.com/apis/recaptcha/docs/customization.html

Thank you very much for the link! But can you please tell me what file i have to edit? I just can't seem to find it :)
Title: Re: reCAPTCHA for SMF
Post by: NewbeeNisha on November 22, 2011, 07:25:36 AM
I have SMF version 2.0.1
When a new user try to register after entring reCaptcha i get error "Could not open socket"
searching in google gave me two results
1.some posts say its host problem when contacted my host he says everything is fine.
2.some posts say its problem with reCAPTCH script...
i really dnt understand how to fix this issue
Its bit urgent any help will be appreciable
Thankyou
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 22, 2011, 11:30:33 AM
It means that the server is configured to deny outbound connections. You probably won't be able to make use of reCAPTCHA.

Anyway, why not make use of the registration questions built into SMF 2.0? They are much more effective.
Title: Re: reCAPTCHA for SMF
Post by: NewbeeNisha on November 23, 2011, 12:24:25 AM
Thanks for reply i tried ur suggestion...works gr8... :)
Title: Re: reCAPTCHA for SMF
Post by: pftq on January 05, 2012, 08:51:12 PM
Just want to point out that the mod isn't updating the Register.template.php file correctly for SMF 1.1.16 (error on install).

The last block in core.xml should be:
<tr class="windowbg2" valign="top">
<th width="50%" align="right">
<label for="coppaAge_input">', $txt['admin_setting_coppaAge'], '</label> <span style="font-weight: normal;">(<a href="', $scripturl, '?action=helpadmin;help=coppaAge" onclick="return reqWin(this.href);">?</a>)</span>:


And another </tr> tag has to be added at the end of the replacement block as a result.

I'm a little behind still using SMF1 but just incase there are still a few other laggers out there like me. :)
Title: Re: reCAPTCHA for SMF
Post by: SD-X on January 09, 2012, 07:30:22 PM
Just figured that I'd let everyone know that this works fine in SMF 2.0.2 ;)
Title: Re: reCAPTCHA for SMF
Post by: carlosdelarco on January 14, 2012, 07:05:45 AM
Here is the spanish_es-utf8.php translation for this mod.  Simply add this to your Modifications.spanish_es-utf8.php file (you must set UTF-8 code for this file)

//reCAPTCHA for SMF
$txt['recaptcha_configure'] = 'Sistema de verificación reCAPTCHA';
$txt['recaptcha_configure_desc'] = 'Usar el Sistema de Verificación reCAPTCHA. ¿No tienes una clave para reCAPTCHA?  <a href="http://recaptcha.net/api/getkey?app=recaptcha_for_smf"> Consigue tu clave para reCAPTCHA aquí</a>.';
$txt['recaptcha_enabled'] = 'Usar el Sistema de Verificación reCAPTCHA';
$txt['recaptcha_enable_desc'] = '(Sustituye a la verificación visual integrado con reCAPTCHA)';
$txt['recaptcha_theme'] = 'Tema para reCAPTCHA';
$txt['recaptcha_theme_clean'] = 'Base';
$txt['recaptcha_theme_blackglass'] = 'Cristal negro';
$txt['recaptcha_theme_red'] = 'Rojo';
$txt['recaptcha_theme_white'] = 'Blanco';
$txt['recaptcha_public_key'] = 'Clave pública de reCAPTCHA';
$txt['recaptcha_private_key'] = 'Clave privada de reCAPTCHA';
$txt['recaptcha_no_key_question'] = '¿No tienes una clave para reCAPTCHA?';
$txt['recaptcha_get_key'] = 'Consigue tu clave para reCAPTCHA aquí.';
Title: Re: reCAPTCHA for SMF
Post by: Miguel86 on January 27, 2012, 09:16:26 PM
Hi:
I have upgraded my forum from SMF 1.1.15 to SMF2 and after i installed this mod.
Installation passed all steps, but now i activate to use recaptcha system but don't show it on registration, shows the default SMF captcha, but if you try to register and enters the captcha of SMF correct, say that entered text is incorrect, so maeby is a bug that don't make a modification to SMF during installation?
Title: Re: reCAPTCHA for SMF
Post by: SD-X on January 27, 2012, 09:45:15 PM
Quote from: Miguel86 on January 27, 2012, 09:16:26 PM
Hi:
I have upgraded my forum from SMF 1.1.15 to SMF2 and after i installed this mod.
Installation passed all steps, but now i activate to use recaptcha system but don't show it on registration, shows the default SMF captcha, but if you try to register and enters the captcha of SMF correct, say that entered text is incorrect, so maeby is a bug that don't make a modification to SMF during installation?
In your board settings somewhere, wherever the Captcha stuff is set, it should allow you to select ReCaptcha instead of the standard board one, as well as input your API keys.

Edit: Admin Panel -> Configuration -> Security and Moderation -> Anti-Spam -> Under "reCAPTCHA Verification System", make sure the box across from "Use reCAPTCHA Verification System" is checked. Input your public and private keys obtained from the reCaptcha website, and select your theme. Click the "Save" button and it should work now.
Title: Re: reCAPTCHA for SMF
Post by: Miguel86 on January 28, 2012, 08:15:11 AM
Yes i have set that before, as said on my post, captcha system was not shown but was used to verify if captcha entered was correct or not, i needed to modify manualy the file called: Themes/default/GenericControls.template.php
I don't know if was a bug or something else but during installation all was OK but after that file wasn't modified, now works fine after modifying that file.

Thanks.
Title: Re: reCAPTCHA for SMF
Post by: motomaniacs on February 02, 2012, 10:24:23 AM
helo
this is a great mod

i just wondering can we set the custom membergroups can post without entering the captcha?
because i have a donatur membergroup and i want after they donate they can post without entering the captcha

thanks
Title: Re: reCAPTCHA for SMF
Post by: CuteNeko on February 06, 2012, 07:18:50 PM
I've installed this on my SMF 2.0.2 board, the following link is offline (404 Error) so I'm unable to get a key to be able to use it  :(

http://recaptcha.net/api/getkey?app=recaptcha_for_smf
Title: Re: reCAPTCHA for SMF
Post by: SD-X on February 06, 2012, 07:28:04 PM
http://www.google.com/recaptcha/whyrecaptcha

Get a key. You already have an API, which is what the mod is. Input the public and private keys in the specified location and you're all good.
Title: Re: reCAPTCHA for SMF
Post by: CuteNeko on February 06, 2012, 07:41:16 PM
Thanks, it's working  :)

Now I'm wondering how to center the recaptcha box on the registration page, it's aligned left.
Title: Re: reCAPTCHA for SMF
Post by: Xarcell on February 06, 2012, 11:58:40 PM
Seems to be a problem with this mod. It does show the first question if your using verification questions. If I toggle not to enable recaptcha, my first question shows.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 07, 2012, 02:40:56 AM
Xarcell, what version of SMF are you using?
Title: Re: reCAPTCHA for SMF
Post by: motomaniacs on February 09, 2012, 02:28:21 PM
Quote from: motomaniacs on February 02, 2012, 10:24:23 AM
helo
this is a great mod

i just wondering can we set the custom membergroups can post without entering the captcha?
because i have a donatur membergroup and i want after they donate they can post without entering the captcha

thanks
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 09, 2012, 04:35:51 PM
Quote from: motomaniacs on February 09, 2012, 02:28:21 PM
i just wondering can we set the custom membergroups can post without entering the captcha?
because i have a donatur membergroup and i want after they donate they can post without entering the captcha

That will probably not happen. This modification aims to be an alternative to the built-in image verification, nothing more.
Title: Re: reCAPTCHA for SMF
Post by: motomaniacs on February 09, 2012, 10:32:07 PM
Quote from: 青山 素子 on February 09, 2012, 04:35:51 PM
Quote from: motomaniacs on February 09, 2012, 02:28:21 PM
i just wondering can we set the custom membergroups can post without entering the captcha?
because i have a donatur membergroup and i want after they donate they can post without entering the captcha

That will probably not happen. This modification aims to be an alternative to the built-in image verification, nothing more.

maybe you should considering to make it happen

btw how to call your name
i cant read chinese..

thanks
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 09, 2012, 11:02:16 PM
Quote from: motomaniacs on February 09, 2012, 10:32:07 PM
maybe you should considering to make it happen

It would have to be a different modification then.

Quote from: motomaniacs on February 09, 2012, 10:32:07 PM
btw how to call your name
i cant read chinese..

It's Japanese. Just call me "Motoko" (The characters read Aoyama Motoko.)
Title: Re: reCAPTCHA for SMF
Post by: motomaniacs on February 12, 2012, 11:38:53 PM
Quote from: 青山 素子 on February 09, 2012, 11:02:16 PM
Quote from: motomaniacs on February 09, 2012, 10:32:07 PM
maybe you should considering to make it happen

It would have to be a different modification then.

Quote from: motomaniacs on February 09, 2012, 10:32:07 PM
btw how to call your name
i cant read chinese..

It's Japanese. Just call me "Motoko" (The characters read Aoyama Motoko.)

haha
sorry motoko i didnt know it was japanese.. please forgive

ok then
i would be happy waiting for your custom mod

thanks
Title: Re: reCAPTCHA for SMF
Post by: Matthew K. on February 16, 2012, 03:52:42 PM
Undefined errors when installed on SMF 2.0.2.

./Themes/default/GenericControls.template.php
Code (Find) Select
if ($i == 0 && ($verify_context['show_visual'] || $modSettings['recaptcha_enabled']))
{
if ($modSettings['recaptcha_enabled'])
{
echo '
<script type="text/javascript">
var RecaptchaOptions = {
   theme : \'', empty($modSettings['recaptcha_theme']) ? 'clean' : $modSettings['recaptcha_theme'] , '\',
};
</script>
<script type="text/javascript"
src="http://api.recaptcha.net/challenge?k=', $modSettings['recaptcha_public_key'], '">
</script>

<noscript>
<iframe src="http://api.recaptcha.net/noscript?k=', $modSettings['recaptcha_public_key'], '"
height="300" width="500" frameborder="0"></iframe><br />
<textarea name="recaptcha_challenge_field" rows="3" cols="40">
</textarea>
<input type="hidden" name="recaptcha_response_field"
value="manual_challenge" />
</noscript>';
}
else
{

Code (Replace) Select
        $reCaptcha_check = !empty($modSettings['recaptcha_enabled']) && !empty($modSettings['recaptcha_public_key']) ? true : false;
if ($i == 0 && ($verify_context['show_visual'] || $reCaptcha_check == true))
{
if ($reCaptcha_check == true)
{
echo '
<script type="text/javascript">
var RecaptchaOptions = {
   theme : \'', empty($modSettings['recaptcha_theme']) ? 'clean' : $modSettings['recaptcha_theme'] , '\',
};
</script>
<script type="text/javascript"
src="http://api.recaptcha.net/challenge?k=', $modSettings['recaptcha_public_key'], '">
</script>

<noscript>
<iframe src="http://api.recaptcha.net/noscript?k=', $modSettings['recaptcha_public_key'], '"
height="300" width="500" frameborder="0"></iframe><br />
<textarea name="recaptcha_challenge_field" rows="3" cols="40">
</textarea>
<input type="hidden" name="recaptcha_response_field"
value="manual_challenge" />
</noscript>';
}
else
{
Title: Re: reCAPTCHA for SMF
Post by: bigggan on February 17, 2012, 04:15:20 PM
Hi

I just want to know how can i make the ReCapatcha center? all of them are set to the left side of screen.
Title: Re: reCAPTCHA for SMF
Post by: brosville on February 20, 2012, 06:04:57 AM
Hi, just upgraded my forum to 2.02- recaptcha ceased to work, so I uploaded the latest version and installed it - thereafter I had load of superfluous stuff at the top of each page - "eCAPTCHA for SMF $txt['recaptcha_configure'] = 'reCAPTCHA Verification System'; $txt['recaptcha_configure_desc'] = 'Use the reCAPTCHA Verification System. Don\'t have a key for reCAPTCHA? Get your reCAPTCHA key here.'; $txt['recaptcha_enabled'] = 'Use reCAPTCHA Verification System'; $txt['recaptcha_enable_desc'] = '(This replaces the built-in visual verification with reCAPTCHA)'; $txt['recaptcha_theme'] = 'reCAPTCHA Theme'; $txt['recaptcha_theme_clean'] = 'Clean'; $txt['recaptcha_theme_blackglass'] = 'Black Glass'; $txt['recaptcha_theme_red'] = 'Red'; $txt['recaptcha_theme_white'] = 'White'; $txt['recaptcha_public_key'] = 'reCAPTCHA Public Key'; $txt['recaptcha_private_key'] = 'reCAPTCHA Private Key'; $txt['recaptcha_no_key_question'] = 'Don\'t have a key for reCAPTCHA?'; $txt['recaptcha_get_key'] = 'Get your reCAPTCHA key here.';" - plus a near duplicate of the same, so I uninstalled the new version, but it's still left me with the above - help! - how do I get rid of it? - you can see it on the site by highlighting the top of the page  - http://farmco.co.uk/ (http://farmco.co.uk/)
Title: Re: reCAPTCHA for SMF
Post by: Goad on February 20, 2012, 01:14:43 PM
Quote from: bigggan on February 17, 2012, 04:15:20 PM
Hi

I just want to know how can i make the ReCapatcha center? all of them are set to the left side of screen.

this question is asked a million times....but has anyone successfully done it? im struggling with the same issue.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 20, 2012, 02:52:32 PM
Quote from: brosville on February 20, 2012, 06:04:57 AM
Hi, just upgraded my forum to 2.02- recaptcha ceased to work, so I uploaded the latest version and installed it - thereafter I had load of superfluous stuff at the top of each page

Check the language string files. You might have had an empty line near the bottom, and the installation stuck all the PHP code after the close of the PHP block, making those lines display. You can fix this by moving the "?>" to the very end of the file.


Quote from: Goad on February 20, 2012, 01:14:43 PM
Quote from: bigggan on February 17, 2012, 04:15:20 PM
I just want to know how can i make the ReCapatcha center? all of them are set to the left side of screen.
this question is asked a million times....but has anyone successfully done it? im struggling with the same issue.

The answer has also been given almost a million times too, but nobody searches... I'm a bit busy right now, so I'll leave the searching in this topic for you. There's a nice search box at the top of the page that should make it easy.
Title: Re: reCAPTCHA for SMF
Post by: brosville on February 20, 2012, 03:55:28 PM
many thanks - I'll give it a go! 8)
Title: Re: reCAPTCHA for SMF
Post by: brosville on February 20, 2012, 06:05:25 PM
"Check the language string files. You might have had an empty line near the bottom, and the installation stuck all the PHP code after the close of the PHP block, making those lines display. You can fix this by moving the "?>" to the very end of the file" - sorry, I'm not proficient in this sort of thing at all - which files do I look at? - Have looked through the gazillions of files on the server and haven't the first clue where to start.........all /I want to do is remove the code mentioned before - where do I look for it?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 20, 2012, 08:22:44 PM
Quote from: brosville on February 20, 2012, 03:55:28 PM
many thanks - I'll give it a go! 8)

From my local repo (this code will be in the next release when I get a chance):

index.css:

Find:
    .centertext #recaptcha_table

Replace with:
    #recaptcha_area, #recaptcha_table

Find (inside that rule block):
    margin: 0 auto !important;

Replace with:
    margin-left: auto !important;
    margin-right: auto !important;


Quote from: brosville on February 20, 2012, 06:05:25 PM
all /I want to do is remove the code mentioned before - where do I look for it?

Modifications.english.php
Title: Re: reCAPTCHA for SMF
Post by: brosville on February 21, 2012, 04:11:15 AM
Many thanks - that saved me hours of looking for it - worked perfectly  - much appreciated!
Title: Re: reCAPTCHA for SMF
Post by: FrizzleFried on March 07, 2012, 01:51:40 PM
reCAPTCHA seems to be working for me... but I am getting the following error:

QuoteApply Filter: Only show the error messages of this URL
http://aha-forums.com/index.php?action=register
Apply Filter: Only show the errors with the same message
8: Undefined index: recaptcha_enabled
Apply Filter: Only show the errors from this file
File: /home/ahaforum/public_html/Themes/default/GenericControls.template.php (registration_form sub template - eval?)
Line: 307
Any suggestions?  Thanks!

Title: Re: reCAPTCHA for SMF
Post by: DeathSign on April 05, 2012, 07:40:34 PM
If you get
Quote8: Undefined index: recaptcha_enabled
File: /Themes/default/GenericControls.template.php (registration_form sub template - eval?)
Line: 307

It is easy to get rid of it by enabling then disabling the mod.

(Admin -> Security and Moderation -> Anti-Spam -> Use reCAPTCHA Verification System)
Title: Re: reCAPTCHA for SMF
Post by: Iomega0318 on May 26, 2012, 05:09:19 AM
So I noticed when selecting a color theme, at least on my forum it shows the captcha to the left side of the page and not centered.. when I switch it back to clean it works as intended.. any ideas?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on May 26, 2012, 07:11:03 PM
It's an issue with the theme code reCAPTCHA uses. There are ways to work around it, but I haven't had time to manage any updates.
Title: Re: reCAPTCHA for SMF
Post by: Iomega0318 on May 26, 2012, 11:32:25 PM
Quote from: 青山 素子 on May 26, 2012, 07:11:03 PM
It's an issue with the theme code reCAPTCHA uses. There are ways to work around it, but I haven't had time to manage any updates.
Ahh ok, just as long as I know it's not something I broke lol.
Title: Recaptcha not working
Post by: abhi on June 09, 2012, 10:50:39 PM
I'm using smf 2.0.2 and recaptcha 0.9.8a. I got the api and me used but when i tried that with wrong captcha fully and partially it allowing register. The membersalso says they can post without entering correct captcha. No problem with the default, please help me
Title: Re: reCAPTCHA for SMF
Post by: abhirupmanna on June 10, 2012, 12:02:45 AM
I'm getting this error. Should I go ahead with the installation ? Will it work ?
Title: Re: reCAPTCHA for SMF
Post by: Quarks on September 24, 2012, 02:17:20 PM
Quote from: Steveiwonder on August 13, 2011, 07:50:03 PM
Cannot get keys...
Get your reCAPTCHA key here. link is dead...

Not Found
Error 404

http://recaptcha.net/api/getkey?app=recaptcha_for_smf

Anyone got any idea?


Quote from: 青山 素子 on August 13, 2011, 10:57:50 PM
Steveiwonder, use the newest version of the modification, which has the updated URL for getting keys. Heck, just going to "http://recaptcha.net/" will take you to the main page for the service, where you can register for a key pair.

If you're really lazy, just use this link directly: https://www.google.com/recaptcha/admin/create


I Cannot get keys.
Get your reCAPTCHA key here. link is still dead
http://recaptcha.net/api/getkey?app=recaptcha_for_smf
Not Found
Error 404

Both of of those above links brute force me to signup for Google Accounts I do not want to signup for Google Accounts.
Please provide altenative way to get  reCAPTCHA key.


Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on September 24, 2012, 05:56:36 PM
Quote from: Quarks on September 24, 2012, 02:17:20 PM
I Cannot get keys.

Both of of those above links brute force me to signup for Google Accounts I do not want to signup for Google Accounts.
Please provide altenative way to get  reCAPTCHA key.

There is no way. Google owns/operates the service and is now requiring that a Google account be used for the service:

Quote
reCAPTCHA is now part of Google. In order to use it, you must create a new Google Account or sign in with an existing Google Account.

If you are a previous user of reCAPTCHA, you can migrate your old account after signing in with a Google Account.

I cannot control what Google decides to do with their property.
Title: Re: reCAPTCHA for SMF
Post by: replay on October 16, 2012, 03:53:24 AM
the recaptcha mod  comes back as not compatable with the new version of smf...whys this
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on October 17, 2012, 11:05:45 AM
Quote from: replay on October 16, 2012, 03:53:24 AM
the recaptcha mod  comes back as not compatable with the new version of smf...whys this

I have not had a chance to review and update it. You can use version emulation to install it and it should work cleanly.

Please note that reCAPTCHA has been compromised by human-backed solving services for some years. You should look into SMF 2's built-in question/answer system for more secure anti-spam measures.
Title: Re: reCAPTCHA for SMF
Post by: stang7043 on November 16, 2012, 09:19:34 AM
Hi I came across this mod in hopes it would help us with our spam issues. I went to install it and initially failed the test install. We are running a custom theme. Is this something I should be concerned with and not install the mod ? Thanks in advance.



1.    Execute Modification    ./Sources/ManageRegistration.php    Test successful
2.    Execute Modification    ./Sources/Register.php    Test successful
3.    Execute Modification    ./Themes/default/Register.template.php    Test failed
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
6.    Execute Modification    ./Themes/default/languages/Modifications.english_british.php    Skipping file
7.    Execute Modification    ./Themes/default/languages/Modifications.english_british-utf8.php    Skipping file
8.    Extract File    ./Sources/recaptchalib.php 
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on November 16, 2012, 10:22:08 AM
stang7043, if your custom theme has a Register.template.php in it, you will need to make the changes to that file manually to properly install the modification.

If you are using SMF 2, the built-in question/answer system offers much better spam-prevention than reCAPTCHA does.
Title: Re: reCAPTCHA for SMF
Post by: stang7043 on November 16, 2012, 01:40:25 PM
Thank you sir. Thats kinda what I figured. Just wanted to make sure from the experts. We are using SMF 1.1.16.
Title: Re: reCAPTCHA for SMF
Post by: stonki on December 03, 2012, 01:32:20 AM
Hello,

we have the problem that it's not working with the latest version of Google chrome. Its appears blank:
https://forums.proftpd.org/smf/index.php?action=register

any idea?
Title: Re: reCAPTCHA for SMF
Post by: Howard43Willard on December 03, 2012, 03:06:45 AM
So its doing something for a worthy cause at the same time.





Title: Re: reCAPTCHA for SMF
Post by: stonki on December 03, 2012, 07:35:22 AM
Hello,

the problem was that we tried to include non Https websites into a https:// secured website,.

#diff GenericControls.template.php GenericControls.template.php.ORIG
316c316
<                                       src="https://api.recaptcha.net/challenge?k=', $modSettings['recaptcha_public_key'], '">
---
>                                       src="http://api.recaptcha.net/challenge?k=', $modSettings['recaptcha_public_key'], '">
320c320
<                                       <iframe src="https://api.recaptcha.net/noscript?k=', $modSettings['recaptcha_public_key'], '"
---
>                                       <iframe src="http://api.recaptcha.net/noscript?k=', $modSettings['recaptcha_public_key'], '"
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on December 03, 2012, 09:33:57 PM
stonki, thank you for the report. I've entered it as a bug and will look at ways to make it load the correct resource type based on how the website loads. It seems blocking was enabled in Chrome 21 and all newer builds, replacing the previous behavior of warning but still allowing.
Title: Re: reCAPTCHA for SMF
Post by: SD-X on December 17, 2012, 01:44:17 PM
Does anyone know if this mod is still compatible with SMF 2.0.3? I'm assuming yes since it works fine in SMF 2.0.2, but the last version updated on the mod page lists SMF 2.0, so I'm being cautious about it. :P
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on December 18, 2012, 02:48:22 AM
It should work fine because of the very minor changes since 2.0 was released, but I haven't had a chance to confirm. Mostly this is because of heavy workload (and some long-standing personal/family issues) preventing development on the modifications for quite some time. Do a version emulate and if the install tests are good, it should be fine to install.

Do keep in mind the reported issue above about using this on an https-secured site/page.

Also, I suggest looking into using the built-in question/answer feature as it's currently a stronger anti-spam measure. The reCAPTCHA system has suffered numerous setbacks on effectiveness with current spamming tools being able to decode the images (or use pay services that have humans decode them).
Title: Re: reCAPTCHA for SMF
Post by: SD-X on December 18, 2012, 03:03:25 AM
Quote from: 青山 素子 on December 18, 2012, 02:48:22 AM
It should work fine because of the very minor changes since 2.0 was released, but I haven't had a chance to confirm. Mostly this is because of heavy workload (and some long-standing personal/family issues) preventing development on the modifications for quite some time. Do a version emulate and if the install tests are good, it should be fine to install.

Do keep in mind the reported issue above about using this on an https-secured site/page.

Also, I suggest looking into using the built-in question/answer feature as it's currently a stronger anti-spam measure. The reCAPTCHA system has suffered numerous setbacks on effectiveness with current spamming tools being able to decode the images (or use pay services that have humans decode them).
Thanks for your response man. If there's no known issues so far, then I'll probably install it.

I actually have several security mods installed that I use with this one. Although most bots can get past ReCaptcha now, it slows them down and stops the less-intelligent ones quite well. Coupling them together creates for a great setup. :)
Title: Re: reCAPTCHA for SMF
Post by: Mr. Pedram on February 02, 2013, 02:24:53 AM
Hey guys,
in RTL pages, it shown really bad, i did some change in CSS but nothing change, anyone know how can i fix this for RTL pages?

Screen shot:



Thanks
Title: Re: reCAPTCHA for SMF
Post by: inter on February 12, 2013, 10:02:17 AM
hi

my corrections to it a mode
there is an error
I offer:

Find: Subs-Editor.php


if (!$resp->is_valid)
fatal_lang_error('error_wrong_verification_code', false);
}
else
fatal_lang_error('error_wrong_verification_code', false);


Replace:


if (!$resp->is_valid)
{
$verification_errors[] = 'wrong_verification_code';
//fatal_lang_error('error_wrong_verification_code', false);
}
}
else
{
$verification_errors[] = 'wrong_verification_code';
//fatal_lang_error('error_wrong_verification_code', false);
}


Thanks.
Title: Re: reCAPTCHA for SMF
Post by: Shadowwolf_tw on February 24, 2013, 03:06:53 AM
If anyone is running their forum over SSL, you're going to have issues with this mod as-is if anyone uses v22+ of Chrome to view your site and set up an account.

Also, Google changed the ReCaptcha API around a bit so the include code for the template page needs to be updated. The old stuff still works as I write this, but who knows for how long.

Install this mod as is, but then modify the ./Themes/default/GenericControls.template.php

Find
Code (php) Select
http://api.recaptcha.net/challenge?k=
Replace with:
Code (php) Select
http://www.google.com/recaptcha/api/challenge?k=

Find:
Code (php) Select
http://api.recaptcha.net/noscript?k=
Replace With:
Code (php) Select
http://www.google.com/recaptcha/api/noscript?k=

We ran into this when trying to make the include script SSL compatible. The old API calls with the embed were invalid because Google changed the web address for the calls.

If you force SSL like we do, just change the "http://" to "https://" and Chrome will load the embed like it should. Otherwise Chrome users won't see the ReCaptcha form and wont be able to validate properly.

Users can tell Chrome to load "unsecure content" but most of you web admins out there know that most users arent going to be savvy enough to do that on their own.
Title: Re: reCAPTCHA for SMF
Post by: oOo--STAR--oOo on March 28, 2013, 02:38:52 AM
Hey I can't seem to get this to work.

I installed fine but when trying to register I get this error.
You are not allowed to access this section.

I am not sure what is causing this problem..
This mod really need updating to work as it is a much needed mod for SMF as spam bots and add bots can easily get through the questions and captcha offered by SMF..

Does anyone know why it is producing this error when trying to sign up and how to combat it?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 28, 2013, 09:11:43 PM
Register for reCAPTCHA or on the SMF forum?

reCAPTCHA has long been broken, so it isn't much help. I suggest using the built-in question and answer feature of SMF 2.

Also, yes, I know the modification needs some review, I just haven't had time.
Title: Re: reCAPTCHA for SMF
Post by: oOo--STAR--oOo on March 29, 2013, 09:35:09 AM
Quote from: 青山 素子 on March 28, 2013, 09:11:43 PM
Register for reCAPTCHA or on the SMF forum?

reCAPTCHA has long been broken, so it isn't much help. I suggest using the built-in question and answer feature of SMF 2.

Also, yes, I know the modification needs some review, I just haven't had time.

The question and answer feature does not work.. They can even do maths.. here is a question I had 4+6-2 = ?
Its cool anyway.. I found something to stop bots. recaptcha is the only captcha system that works..
Its recommended by MANY,.. I suggest if you can't update the mod, offer it to someone who can.

Because its needed badly..
Thanks.
Title: Re: reCAPTCHA for SMF
Post by: Arantor on March 29, 2013, 11:38:47 AM
Sure it does if you write good questions. Math questions are easy, they'll just search Google for the answer.

What you need to do, as has been said in plenty of other places, is write questions that are about what your forum is about, that potential users would be likely to know but not bots or casual outsiders.

Don't blame the feature for not working when you don't use it properly.
Title: Re: reCAPTCHA for SMF
Post by: oOo--STAR--oOo on April 01, 2013, 04:40:38 AM
Quote from: Rainbow Dash on March 29, 2013, 11:38:47 AM
Sure it does if you write good questions. Math questions are easy, they'll just search Google for the answer.

What you need to do, as has been said in plenty of other places, is write questions that are about what your forum is about, that potential users would be likely to know but not bots or casual outsiders.

Don't blame the feature for not working when you don't use it properly.
That makes sense, but some people are just not that clever and because they are that new to the platform, there really isn't a question you can give them.

This mod needs to be updated or built into SMF its self.. As the one SMF offers doesn't work.
Title: Re: reCAPTCHA for SMF
Post by: Arantor on April 01, 2013, 06:44:03 AM
No, it doesn't. As people who use other platforms have discovered, reCAPTCHA is rather vulnerable these days.

If you're looking for a magic bullet, there isn't one.
Title: Re: reCAPTCHA for SMF
Post by: Herman's Mixen on April 01, 2013, 08:04:18 AM
well i'll use the solved media capthca typ-in with the 3 API's and works fine out of the box, reduced spammers to nihil

plugins (http://www.solvemedia.com/publishers/captcha-type-in)

register at their site and get the 3 API's

http://www.solvemedia.com/security
Title: Re: reCAPTCHA for SMF
Post by: babalola olasehinde on April 29, 2013, 02:43:05 AM
i install this mod successfully in my forum 2.0.4 , and after that it brought out an error on the header of the forum.
pls see screenshot

what can i do
Title: Re: reCAPTCHA for SMF
Post by: SD-X on April 29, 2013, 02:51:03 AM
Quote from: babalola olasehinde on April 29, 2013, 02:43:05 AM
i install this mod successfully in my forum 2.0.4 , and after that it brought out an error on the header of the forum.
pls see screenshot

what can i do
It looks like you either have another mod conflicting with it, or something went wrong in the install. Do you have any other mods installed?
Title: Re: reCAPTCHA for SMF
Post by: babalola olasehinde on April 29, 2013, 03:03:17 AM
Quote from: SugarD-x on April 29, 2013, 02:51:03 AM
Quote from: babalola olasehinde on April 29, 2013, 02:43:05 AM
i install this mod successfully in my forum 2.0.4 , and after that it brought out an error on the header of the forum.
pls see screenshot

what can i do
It looks like you either have another mod conflicting with it, or something went wrong in the install. Do you have any other mods installed?

i have only Anti Bot: Are You Human/Bot? installed
Title: Re: reCAPTCHA for SMF
Post by: SD-X on April 29, 2013, 04:58:54 AM
Quote from: babalola olasehinde on April 29, 2013, 03:03:17 AM
Quote from: SugarD-x on April 29, 2013, 02:51:03 AM
Quote from: babalola olasehinde on April 29, 2013, 02:43:05 AM
i install this mod successfully in my forum 2.0.4 , and after that it brought out an error on the header of the forum.
pls see screenshot

what can i do
It looks like you either have another mod conflicting with it, or something went wrong in the install. Do you have any other mods installed?

i have only Anti Bot: Are You Human/Bot? installed
Hmm...not sure of any conflicts there. What SMF version is your theme running at?
Title: Re: reCAPTCHA for SMF
Post by: babalola olasehinde on April 29, 2013, 05:02:28 AM
Quote from: SugarD-x on April 29, 2013, 04:58:54 AM
Quote from: babalola olasehinde on April 29, 2013, 03:03:17 AM
Quote from: SugarD-x on April 29, 2013, 02:51:03 AM
Quote from: babalola olasehinde on April 29, 2013, 02:43:05 AM
i install this mod successfully in my forum 2.0.4 , and after that it brought out an error on the header of the forum.
pls see screenshot

what can i do
It looks like you either have another mod conflicting with it, or something went wrong in the install. Do you have any other mods installed?

i have only Anti Bot: Are You Human/Bot? installed
Hmm...not sure of any conflicts there. What SMF version is your theme running at?


smf 2.0.4
Title: Re: reCAPTCHA for SMF
Post by: SD-X on April 29, 2013, 05:25:11 AM
Quote from: babalola olasehinde on April 29, 2013, 05:02:28 AM
Quote from: SugarD-x on April 29, 2013, 04:58:54 AM
Quote from: babalola olasehinde on April 29, 2013, 03:03:17 AM
Quote from: SugarD-x on April 29, 2013, 02:51:03 AM
Quote from: babalola olasehinde on April 29, 2013, 02:43:05 AM
i install this mod successfully in my forum 2.0.4 , and after that it brought out an error on the header of the forum.
pls see screenshot

what can i do
It looks like you either have another mod conflicting with it, or something went wrong in the install. Do you have any other mods installed?

i have only Anti Bot: Are You Human/Bot? installed
Hmm...not sure of any conflicts there. What SMF version is your theme running at?


smf 2.0.4
Odd. Not sure myself then. Someone else a bit more experienced may need to check into this. Sorry about that man.
Title: Re: reCAPTCHA for SMF
Post by: babalola olasehinde on April 29, 2013, 10:11:55 AM
Quote from: SugarD-x on April 29, 2013, 05:25:11 AM
Quote from: babalola olasehinde on April 29, 2013, 05:02:28 AM
Quote from: SugarD-x on April 29, 2013, 04:58:54 AM
Quote from: babalola olasehinde on April 29, 2013, 03:03:17 AM
Quote from: SugarD-x on April 29, 2013, 02:51:03 AM
Quote from: babalola olasehinde on April 29, 2013, 02:43:05 AM
i install this mod successfully in my forum 2.0.4 , and after that it brought out an error on the header of the forum.
pls see screenshot

what can i do
It looks like you either have another mod conflicting with it, or something went wrong in the install. Do you have any other mods installed?

i have only Anti Bot: Are You Human/Bot? installed
Hmm...not sure of any conflicts there. What SMF version is your theme running at?


smf 2.0.4
Odd. Not sure myself then. Someone else a bit more experienced may need to check into this. Sorry about that man.

i think you are right on this

i just tried installing facebook like mod and one other mod and thesame problem occured

now pls how do i repair this error

so sorry for your time
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on April 30, 2013, 03:05:32 PM
babalola olasehinde,

Find the file Modifications.english.php in the default theme directory. Look near the end of the file for the line "?>". Delete that line or move it to the very end of the file, ensuring there are no blank lines after it.
Title: Re: reCAPTCHA for SMF
Post by: babalola olasehinde on April 30, 2013, 06:00:08 PM
Quote from: 青山 素子 on April 30, 2013, 03:05:32 PM
babalola olasehinde,

Find the file Modifications.english.php in the default theme directory. Look near the end of the file for the line "?>". Delete that line or move it to the very end of the file, ensuring there are no blank lines after it.

this is the last line of the  Modifications.english.php

$txt['are_you_human_q_2'] = 'Random Question';?>


should i delete the whole line
Title: Re: reCAPTCHA for SMF
Post by: TheListener on April 30, 2013, 06:10:52 PM
Quote from: babalola olasehinde on April 30, 2013, 06:00:08 PM
Quote from: 青山 素子 on April 30, 2013, 03:05:32 PM
babalola olasehinde,

Find the file Modifications.english.php in the default theme directory. Look near the end of the file for the line "?>". Delete that line or move it to the very end of the file, ensuring there are no blank lines after it.

this is the last line of the  Modifications.english.php

$txt['are_you_human_q_2'] = 'Random Question';?>


should i delete the whole line

Quote$txt['are_you_human_q_2'] = 'Random Question';?>

Should show as

[quote]$txt['are_you_human_q_2'] = 'Random Question';
?>


Make sure there are no lines after the?>
Title: Re: reCAPTCHA for SMF
Post by: Arantor on April 30, 2013, 06:12:28 PM
That also needs to be the last ?> in the file. Might be quicker if it were just uploaded here for examination.
Title: Re: reCAPTCHA for SMF
Post by: babalola olasehinde on April 30, 2013, 06:20:02 PM
Quote from: Arantor on April 30, 2013, 06:12:28 PM
That also needs to be the last ?> in the file. Might be quicker if it were just uploaded here for examination.

okay see attachment for the file
Title: Re: reCAPTCHA for SMF
Post by: Arantor on April 30, 2013, 06:26:42 PM
Yeah, there's only one ?> in the file and it should be as Old Fossil says.

Code (find) Select
$txt['are_you_human_q_2'] = 'Random Question';?>

Code (replace with) Select
$txt['are_you_human_q_2'] = 'Random Question';
?>
Title: Re: reCAPTCHA for SMF
Post by: 123sweat on May 11, 2013, 09:01:36 AM
Hi,

I am trying to get this mod installed on an old smf version 1.1.2.

I have done all the modification manual, but i don't see the "enable recaptcha" interface in
SMF 1.1:
Admin -> Registration -> Settings

1/ all the text phrases are empty? i did modify Modification.english.php



[EDIT] Ok i have the recaptcha working but the verificiation_image is also visible??
2/ also refreshing the page causes the image verification to act strange, it seems to have to do with session i think?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on May 11, 2013, 11:47:21 AM
First, you really should think about upgrading to the latest 1.1 release of SMF. That old version has known security issues.

If both the built-in verification image and reCAPTCHA are showing, you might have made a bad manual edit somewhere. The two should be mutually exclusive. Review your edits, and if you can't find the issue reply back and I'll let you know what files you can send for me to review.
Title: Re: reCAPTCHA for SMF
Post by: SD-X on May 11, 2013, 12:36:20 PM
Quote from: 青山 素子 on May 11, 2013, 11:47:21 AM
First, you really should think about upgrading to the latest 1.1 release of SMF. That old version has known security issues.
I have to agree. You are very far behind in updates, and you are putting your forum at extreme risk by not upgrading, as well as causing yourself more issues with other mods you may be trying to also use.
Title: Re: reCAPTCHA for SMF
Post by: 123sweat on May 11, 2013, 05:02:15 PM
tx guys for taking the time and helping an old forum user.

yes you are absolute right about the upgrade.

I have solved my mistake and your recaptcha seems to work correctly now. Only i am still getting some spam registered users.

Do you know which security issues might be the cause of this? Is my forum register part hacked? And if so how can i check this?

kind regards,
Title: Re: reCAPTCHA for SMF
Post by: Arantor on May 11, 2013, 05:03:28 PM
QuoteOnly i am still getting some spam registered users.

reCAPTCHA has been broken for some time.

QuoteDo you know which security issues might be the cause of this?

The spammers are smarter than they used to be.

Add additional anti spam mods, e.g. Bad Behaviour, Misc Anti Spam.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on May 11, 2013, 09:15:39 PM
Quote from: 123sweat on May 11, 2013, 05:02:15 PM
I have solved my mistake and your recaptcha seems to work correctly now. Only i am still getting some spam registered users.

Do you know which security issues might be the cause of this? Is my forum register part hacked? And if so how can i check this?

What Arantor said. reCAPTCHA is more effective than the built-in SMF image verification, but it's still very weak thanks to human-backed services that spammers use. You will want to look at other anti-spam modifications to layer your defenses. I believe there's a version of SMF 2.0's registration questions available as a modification for the 1.1 releases. That's a fairly strong measure as long as you don't use general-knowledge questions.
Title: Re: reCAPTCHA for SMF
Post by: Arantor on May 11, 2013, 09:43:23 PM
Huh, I didn't notice it was actually for 1.1.x... I don't know what of the anti-spam measures are actually maintained for 1.1.x any more (I know that if Bad Behaviour is, it's going to be out of date and Misc Anti Spam isn't - nor will it ever be - out for 1.1.x)
Title: Re: reCAPTCHA for SMF
Post by: dimspace on June 15, 2013, 08:46:58 AM
Quote from: 青山 素子 on May 11, 2013, 09:15:39 PM
Quote from: 123sweat on May 11, 2013, 05:02:15 PM
I have solved my mistake and your recaptcha seems to work correctly now. Only i am still getting some spam registered users.

Do you know which security issues might be the cause of this? Is my forum register part hacked? And if so how can i check this?

What Arantor said. reCAPTCHA is more effective than the built-in SMF image verification, but it's still very weak thanks to human-backed services that spammers use. You will want to look at other anti-spam modifications to layer your defenses. I believe there's a version of SMF 2.0's registration questions available as a modification for the 1.1 releases. That's a fairly strong measure as long as you don't use general-knowledge questions.

I dispute this.. after testing recaptcha for 5 days, the number of spammers making it past captcha (and getting stopped by stop forum spam), has risen from 0-3 a day, to over 30 today.

Im going to leave recaptcha running a few more days just to check it wasnt a one off spam attack, but at the moment, i would summise that the standard smf captcha is infinitely more effective.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 15, 2013, 01:37:30 PM
Both the standard SMF image verification and the reCAPTCHA service are easily bypassed by more sophisticated spamming programs. It is important to have defense-in-depth.
Title: Re: reCAPTCHA for SMF
Post by: dimspace on June 15, 2013, 04:13:59 PM
I have bad behaviour (http://custom.simplemachines.org/mods/index.php?mod=2502) mod as first line, and Stop Spammer (http://custom.simplemachines.org/mods/index.php?mod=1547)for any that get through registration.

generally with smf captcha i get between 0-3 cases a day that get as far as  stop spammer and get put for manual checking.

Installed reCaptcha on Monday.

Tuesday 17 spammers made it through registration and got picked up by "stop spammer"
Wednesday 23
Thursday 19
Friday 26

This morning when i logged on, 34 different spammers had got through registration and been stopped by "Stop Spammer"

Over the course of today I had a further 17 that got past registration and got picked up by "stop spammer" for manual checking. Eventually it got silly and i reverted to standard smf captcha. Since then (1700h) ive had one got through (its now 2100)

Now it may be that Ive just been subjected to a week long co-incidental spam attack. And it may be the lack of spammers tonight is down to the eastern countries being in bed. My hunch is that they are automated and can bypass ReCaptcha easier than the smf captcha.

Will see what happens back on the smf default over the next few days and report back.

Was going to leave recaptcha enabled for longer but my staff were starting to get really narky.

None of this is your fault btw. The mod is great and works just as it should. I just have a feeling that ReCaptcha isnt very effective at all. :(
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 16, 2013, 03:30:14 AM
Quote from: dimspace on June 15, 2013, 04:13:59 PM
My hunch is that they are automated and can bypass ReCaptcha easier than the smf captcha.

It is very possible that they are using a human-backed service that can use reCAPTCHA but need to fall back to stupid OCR on the built-in SMF feature.


Quote from: dimspace on June 15, 2013, 04:13:59 PM
None of this is your fault btw. The mod is great and works just as it should. I just have a feeling that ReCaptcha isnt very effective at all. :(

There have been several effective attacks on the service itself over the last several years. With the rise of human-backed solving services like CaptchaBot (among many others) that have an easy API, anyone with a few dollars can pay to have actual humans solve CAPTCHA and other image solutions easily. This is why things like strong question/answer blocks and defense-in-depth are needed.
Title: Re: reCAPTCHA for SMF
Post by: dimspace on June 16, 2013, 11:29:54 AM
Quote from: 青山 素子 on June 16, 2013, 03:30:14 AM
Quote from: dimspace on June 15, 2013, 04:13:59 PM
My hunch is that they are automated and can bypass ReCaptcha easier than the smf captcha.

It is very possible that they are using a human-backed service that can use reCAPTCHA but need to fall back to stupid OCR on the built-in SMF feature.


Quote from: dimspace on June 15, 2013, 04:13:59 PM
None of this is your fault btw. The mod is great and works just as it should. I just have a feeling that ReCaptcha isnt very effective at all. :(

There have been several effective attacks on the service itself over the last several years. With the rise of human-backed solving services like CaptchaBot (among many others) that have an easy API, anyone with a few dollars can pay to have actual humans solve CAPTCHA and other image solutions easily. This is why things like strong question/answer blocks and defense-in-depth are needed.

quite the opposite. you are missing the point.

With recaptcha multiple spammers get through, with smf captcha minimal spammers get through. This implies it is not human backed spam but automated spam that is able to defeat recaptcha.

Logged on this afternoon. No spammers got through overnight using smf captcha.

So...
Monday - 2
==== installed ReCaptcha =====
Tuesday 17 spammers made it through registration and got picked up by "stop spammer"
Wednesday 23
Thursday 19
Friday 26
Saturday 34
==== Reverted to smf captcha (on basic setting - no noise)  ====
Sunday 0

(only myself and one other have access to approving members put for manual checking by spam checker.

So my conclusion is they are not using "human backed" they are using automation which is able to get past ReCaptcha but not past SMF captcha
Title: Re: reCAPTCHA for SMF
Post by: SD-X on June 16, 2013, 11:13:23 PM
The only reason why SMF's captcha would outperform ReCaptcha's is because it's older, less-widely used, and most modern bots aren't programmed to handle it anymore since everyone has generally switched to something else. If there is a large movement where people begin going backwards on this again, (which I've seen a bit of lately), then you're only going to see a comeback of spammers essentially "raping" your forum with registrations.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 17, 2013, 03:52:35 PM
Quote from: dimspace on June 16, 2013, 11:29:54 AM
So my conclusion is they are not using "human backed" they are using automation which is able to get past ReCaptcha but not past SMF captcha

It should be quite the opposite conclusion. reCAPTCHA is widely used, so it makes sense for there to be many human-backed services that offer ways to "solve" the puzzle. Nearly all the "human-backed" services offer a programable API for it. The built-in SMF one isn't used so much anymore and so detection for it may fall back to plain OCR. This would make success rates for bypassing the built-in solution much lower.

When I say human-backed, I'm not talking about actual people browsing and signing up for an account. There are services available that hire real people to sit in front of a computer and solve image puzzles. These services offer an API that spam software makers can use to send the puzzles only to this service in an automated fashion. Often the cost is a few dollars per 1000 solutions, so it's really cheap. If you're interested in this, I refer you to an old, but still quite good, article by security researcher Dancho Danchev titled Inside India's CAPTCHA Solving Economy (http://www.zdnet.com/blog/security/inside-indias-captcha-solving-economy/1835).

Honestly, using registration (and post!) questions is a great and effective choice right now, as long as you ask decent enough domain-specific questions and can rely on your visitors all having some experience with a single language. (The multi-language thing is why this community doesn't use this technique.)
Title: Re: reCAPTCHA for SMF
Post by: Burke ♞ Knight on August 01, 2013, 08:03:22 AM
Why does reCaptcha disable the Verification Questions ?

Never mind. I see the issue.
The number of questions section reverted to 0 somehow.
Title: Re: reCAPTCHA for SMF
Post by: damowhite666 on June 07, 2014, 08:07:57 AM
Hello!

This plugin is awesome!

Though... I need help with a little something, on the registration page the recaptcha block is on the far left on the page rather than in the middle, how do I fix this?

Thanks! :D
Title: Re: reCAPTCHA for SMF
Post by: damowhite666 on June 07, 2014, 10:25:33 AM
Sorted :P
Title: Re: reCAPTCHA for SMF
Post by: tcrider84 on July 11, 2014, 05:41:30 PM
Workaround for verification questions not showing up:

Problem:
reCAPTCHA is set to work as either by itself with no other verification OR replace SMF'S built-in captcha. Unfortunately SMF's built in captcha is tied to its verification questions, so if you select "None" for Visual verification image to display - it hides BOTH the built in SMF captcha AND your questions.

Solution:
Select "Very simple - plain text on image" instead from the Visual Verification drop down. Then type x in "Number of verification questions user must answer", x being how many questions you have. reCAPTCHA will then replace SMF's default captcha, and your questions will show up.

tested with SMF 2.0.8 :D
Title: Re: reCAPTCHA for SMF
Post by: _sebas_ on July 11, 2014, 11:17:06 PM
mystery or problem?

in Firefox and IExplorer recaptcha shows: street numbers

but in Chrome shows: two distorted words

Why?


( runs ok in this 3 browsers,  but,  why the difference ? )

I have forum v 1.1.19
Title: Re: reCAPTCHA for SMF
Post by: Arantor on July 11, 2014, 11:51:59 PM
That one's purely up to Google, not the mod. Google's the one that creates the images you see.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 12, 2014, 01:27:25 AM
Quote from: _sebas_ on July 11, 2014, 11:17:06 PM
mystery or problem?

in Firefox and IExplorer recaptcha shows: street numbers

but in Chrome shows: two distorted words

Why?

Google has adjusted reCAPTCHA to display puzzles based on streetview images for users that it feels are less likely to be bots. There's more info from Google over at Google Online Security Blog: Street View and reCAPTCHA technology just got smarter (http://googleonlinesecurity.blogspot.com/2014/04/street-view-and-recaptcha-technology.html).
Title: Re: reCAPTCHA for SMF
Post by: _sebas_ on July 12, 2014, 06:47:46 AM
thanks for your quick response

I still do not understand, is that I do the tests from the same machine and the same IP connection ... just changing the browser, and it gives different results.
(In "Chrome", 2 words appear -----    differently from other browsers so I find street numbers)


so I do not see the relation with the level of security, it would be the same
not??
Google seems to do what he wants, changing to their own devices, his criteria


(damn spammers keep coming)
Title: Re: reCAPTCHA for SMF
Post by: _sebas_ on July 12, 2014, 06:54:47 AM


I begin to understand,
two recaptcha words, I now appear in Internet Explorer, having deleted all cookies and browser history
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 12, 2014, 12:23:02 PM
Quote from: _sebas_ on July 12, 2014, 06:47:46 AM
I still do not understand, is that I do the tests from the same machine and the same IP connection ... just changing the browser, and it gives different results.
(In "Chrome", 2 words appear -----    differently from other browsers so I find street numbers)


so I do not see the relation with the level of security, it would be the same
not??
Google seems to do what he wants, changing to their own devices, his criteria

If they told what they looked for, that would give too much away. I believe at the least, being logged into a verified Google Account (one with a valid phone number and other details) helps. Even that may not quite be it, though.


Quote from: _sebas_ on July 12, 2014, 06:47:46 AM
(damn spammers keep coming)

If you want to stop spam, I recommend using multiple systems. While it's good against simple systems, reCAPTCHA is no longer effective against much of the popular sophisticated spamming software out there. I recommend using verification questions if at all possible. They are built into 2.0 and a backport of the feature is available as a modification for SMF 1.1.x (http://custom.simplemachines.org/mods/index.php?mod=1516). I also recommend using httpBL (http://custom.simplemachines.org/mods/index.php?mod=2155) if you can.
Title: Re: reCAPTCHA for SMF
Post by: cieplutki on December 15, 2014, 06:44:54 AM
mod does not work displayed information: Could not open socket
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on December 15, 2014, 11:13:44 AM
As reCAPTCHA is a third-party service, your server must be able to contact the reCAPTCHA server directly. It looks like either you or your hosting company has blocked the function, fsockopen, that is used for this.
Title: Re: reCAPTCHA for SMF
Post by: Falcyn on December 15, 2014, 06:54:54 PM
Do you have any plans to update this to the No CAPTCHA reCAPTCHA API? First impressions have suggested that it's much more effective.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on December 15, 2014, 07:13:31 PM
As soon as I get the time I'll look into it. I just started a new job and am dealing with a sick family member and a sick pet right now.
Title: Re: reCAPTCHA for SMF
Post by: portex1 on December 17, 2014, 10:13:56 PM
Just installed this mod and now I'm getting "Templat Parse Error!" on registration page only.
I don't know what's wrong. This happens only when I tick "Require verification". Without it - no problem, but no recaptcha too.
Title: Re: reCAPTCHA for SMF
Post by: _monotiz_ on December 29, 2014, 02:20:58 PM
Quote from: mariusfv on April 15, 2011, 05:43:56 AM
1. First bug: If you use recaptcha for new members to be required at first 5 posts and member type wrong a letter will receive the msg: "The letters you typed don't match the letters that were shown in the picture" and give you: Back button link...till here is ok but after you type the back button and type correctly the new recaptcha code(i try with refresh code too) will receive always this error:
You already submitted this post! You might have accidentally double clicked or tried to refresh the page.
I dunno if there is a solution in this topic, anyway, I fixed the Subs-Editor.php file. Must be replace the code:
if(!empty($modSettings['recaptcha_enabled']) && ($modSettings['recaptcha_enabled'] == 1 && !empty($modSettings['recaptcha_public_key']) && !empty($modSettings['recaptcha_private_key'])))
{
if(!empty($_POST["recaptcha_response_field"]) && !empty($_POST["recaptcha_challenge_field"])) //Check the input if this exists, if it doesn't, then the user didn't fill it out.
{
require_once("$sourcedir/recaptchalib.php");

$resp = recaptcha_check_answer($modSettings['recaptcha_private_key'], $_SERVER['REMOTE_ADDR'], $_REQUEST['recaptcha_challenge_field'], $_REQUEST['recaptcha_response_field']);

if (!$resp->is_valid)
fatal_lang_error('error_wrong_verification_code', false);
}
else
fatal_lang_error('error_wrong_verification_code', false);
}


with:

if(!empty($modSettings['recaptcha_enabled']) && ($modSettings['recaptcha_enabled'] == 1 && !empty($modSettings['recaptcha_public_key']) && !empty($modSettings['recaptcha_private_key'])))
{
if(!empty($_POST["recaptcha_response_field"]) && !empty($_POST["recaptcha_challenge_field"])) //Check the input if this exists, if it doesn't, then the user didn't fill it out.
{
require_once("$sourcedir/recaptchalib.php");

$resp = recaptcha_check_answer($modSettings['recaptcha_private_key'], $_SERVER['REMOTE_ADDR'], $_REQUEST['recaptcha_challenge_field'], $_REQUEST['recaptcha_response_field']);

if (!$resp->is_valid)
$verification_errors[] = 'wrong_verification_code'; // MonoTiz // fatal_lang_error('error_wrong_verification_code', false);
}
else
$verification_errors[] = 'wrong_verification_code'; // MonoTiz // fatal_lang_error('error_wrong_verification_code', false);
}
Title: Re: reCAPTCHA for SMF
Post by: tranhiep_116 on December 29, 2014, 08:17:57 PM
I have just installed. very helpfull  ;D
Title: Re: reCAPTCHA for SMF
Post by: Owdy on December 31, 2014, 06:07:54 PM
Is this planned? =)
https://www.google.com/recaptcha/intro/index.html
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on December 31, 2014, 09:44:19 PM
As soon as I have time, I'll look into updating things.
Title: Re: reCAPTCHA for SMF
Post by: zdv on January 28, 2015, 02:51:38 PM
Hello,
I`ve installed this plugin, but it does not work for me. I do know why.

When I push register button, I always get "The letters you typed don't match the letters that were shown in the picture."
Title: Re: reCAPTCHA for SMF
Post by: cortez on May 10, 2015, 08:51:13 AM
Quote from: 青山 素子 on December 31, 2014, 09:44:19 PM
As soon as I have time, I'll look into updating things.

Please update it, it's pretty much useless now. However, I have to use it since contact form add-on is using it. Thank you
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on May 11, 2015, 12:42:23 AM
How is it useless? It still functions, last I checked. It doesn't have the fancy new "easy bypass" thing, but that won't affect if it works or not.

If you must have it updated this very second, contact me to work out payment details. My time is pretty full with my day job and family issues (grandparents are having a lot of health issues). My little free time is spent on trying to relax. If you need some of that time right now, I'd like a little compensation for giving up time.

Otherwise, please have patience. Also, the built-in question/answer feature in SMF is really good. You should use that if you can.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on May 12, 2015, 06:50:17 PM
Version 1.0 was just released. It supports the new "NoCAPTCHA reCAPTCHA API". Themes are now limited to light and dark, as those are the only options with the new system.
Title: Re: reCAPTCHA for SMF
Post by: oldnick on May 12, 2015, 09:09:09 PM
I think there is a syntax error in the last update of the mod.

Parse error: syntax error, unexpected '{' in .../Sources/Subs-Editor.php on line 2002

Maybe it's because of too many "(" in

if((isset($_POST["g-recaptcha-response"]))

???
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on May 12, 2015, 10:21:45 PM
I'll look and post an update as soon as I can.
Title: Re: reCAPTCHA for SMF
Post by: oldnick on May 12, 2015, 10:33:54 PM
Yes, the error is in an extra "(". If it's deleted the mod works. But I got into another problem.
ERROR: Invalid domain for site key
Although I used the correct keys from the admin panel on reCAPTCHA site.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on May 13, 2015, 12:02:45 AM
Quote from: oldnick on May 12, 2015, 10:33:54 PM
Yes, the error is in an extra "(". If it's deleted the mod works.

This will be fixed in 1.0.1, which will be released shortly.


Quote from: oldnick on May 12, 2015, 10:33:54 PM
But I got into another problem.
ERROR: Invalid domain for site key
Although I used the correct keys from the admin panel on reCAPTCHA site.

Double-check that the domain and keys match. I've tested on two different sites I manage, and the code should be okay. On one, I had to re-issue credentials as the domain was removed from my account some time ago. The other was set up and continues to work okay without issue after the update.

Also, the terms have changed, so put the "Site Key" in the "Public Key" box and "Secret Key" into the "Private Key" box.
Title: Re: reCAPTCHA for SMF
Post by: Sea Mac on May 13, 2015, 12:29:00 AM
I just Uninstalled version 0.9.9 and replaced it with the version 1.0.1 I just got ....
But in the Package Manager it says "
reCAPTCHA for SMF 1.0.0" ... did you forget to update the version number in the file I just downloaded? Or did I get the 1.0.0 file when I clicked? (filename is reCAPTCHAforSMF_1.0.1.tar.gz)
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on May 13, 2015, 12:33:15 AM
Oh, yeah, forgot to bump the internal version number in a rush to post the fix. I'll probably issue another update to fix the terms to match what Google is using and I'll (hopefully) fix the version number display at that point.
Title: Re: reCAPTCHA for SMF
Post by: Sea Mac on May 13, 2015, 04:36:21 AM
OK. And I'll try to remember I actually HAVE 1.0.1 onboard. Thank you!
Title: Re: reCAPTCHA for SMF
Post by: Kanman on June 23, 2015, 04:06:46 PM
Thanks for this mod, I like it :P However, when a Newbie forget toe press the I'm not an robot button, he will see the letters you enterd do not mach with the picture (or something similar to that, I don't use the Englisch version).
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 23, 2015, 06:39:53 PM
Quote from: Kanman on June 23, 2015, 04:06:46 PM
Thanks for this mod, I like it :P However, when a Newbie forget toe press the I'm not an robot button, he will see the letters you enterd do not mach with the picture (or something similar to that, I don't use the Englisch version).

Yes, I believe I'm using the default error message from the built-in image verification. I'll look around and see if there's anything more appropriate. I'm really trying to limit custom strings because it limits the languages supported until people can contribute translations.
Title: Re: reCAPTCHA for SMF
Post by: ☠ DeadMan ☠ on June 23, 2015, 11:34:11 PM
青山 素子, I had made a minor mod, I used for my sites, that you may wish to add to this.
What it does, is centers the reCAPTCHA on the register page, so it's lined up with the rest of the verifications.
If wish, I could PM you the edits I did. :)
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on June 25, 2015, 01:11:26 AM
I thought I had the centering fixed on the re-do, but feel free to send me the edits and I'll take a look.
Title: Re: reCAPTCHA for SMF - reCAPTCHA v2?
Post by: fmmobley on July 01, 2015, 08:19:13 PM
First... thanks for this mod it works great and is awesome.

I just received an email from Google informing me that there is now a version 2 of Recaptcha and they are urging me to start using it.

Can you incorporate version 2 into your mod?

This is what I got from Google:

-------------------
Dear Webmaster,
You're receiving this email because you're registered as a website administrator for a site that uses reCAPTCHA.
Google launched reCAPTCHA v2 (i.e. No CAPTCHA reCAPTCHA) in Dec, 2014. The new version provides a more simplified user experience than reCAPTCHA v1, with an enhanced spam fighting mechanism.
-------------------------
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 01, 2015, 10:47:54 PM
The newest version of the modification uses the updated reCAPTCHA style.
Title: Re: reCAPTCHA for SMF
Post by: Steel87 on July 02, 2015, 06:32:49 AM
Hi!

I didn't get a response from the google server.

Replacing the following line in recaptchalib.php in function  _submitHTTPGet

        $response = file_get_contents($path . $req);


with

        // create a new cURL resource
$ch = curl_init();

// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, $path . $req);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

// grab URL and pass it to the browser
$response = curl_exec($ch);

// close cURL resource, and free up system resources
curl_close($ch);


fixed that problem.

Also replacing in Subs-Editor.php

fatal_lang_error('error_wrong_verification_code', false);

with

$verification_errors[] = 'wrong_verification_code';

led to a more convenient error handling.

Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 02, 2015, 05:31:57 PM
I'll look into changing the error message handling.

The recaptchalib.php file is provided by Google itself, I'm not going to edit it. Your method may work for you, but it adds a dependency on the cURL library and PHP extension, which isn't set up on many providers. Feel free to use your method if it works for you.
Title: Re: reCAPTCHA for SMF
Post by: Lum-chan on July 15, 2015, 04:20:35 AM
Thanks for providing the update for reCAPTCHA.

The newone works without any problems (no errormessages, but I had to re-issue the keys). The only thing that bothers me is the used language (on my machine tested only) in the reCAPTCH image. It shows as Japanese characters. As I'm using the dutch language on my site, this will be confusing to those who are not able to read Japanese.

Any reason for this?

I'm using Firefox 24.8.1ESR (EN-US). The forum runs on SMF 2.0.10.

[edit]
Tested again but with IE 8.0. It show the images with the correct used forum-language (Dutch)
Can't figure out why Firefox wants to display this in Japanese, tho
[/edit]
Title: Re: reCAPTCHA for SMF
Post by: Kanman on July 15, 2015, 04:50:55 AM
It seems google identify your firefox as Japanese.
What's your computer language set up? Did you set your google account to Japanese?
Maybe your browser is set-up to go through a proxy?

I do have an Dutch 2.0.10 and browsing with Firefox 39.0(NL)

Have you received complains about this from users?
Title: Re: reCAPTCHA for SMF
Post by: Lum-chan on July 15, 2015, 05:21:47 AM
@KanMan: My computer is using the EN-US language (I'm Dutch but I always use Software in English).
No proxy is used in Firefox and the default language in Google is shown as English (all pages are shown in English too).
I have received no complains from users yet.

As a test I disabled all extensions and plugins in Firefox, but this didn't help (cleaned the cache too, in case of)

In Firefox, enable of disable geo.enabled and restarting doesn't help

http://www.passat35i-forum.nl/forum/index.php?action=register

[edit]
Problem Solved!

I removed this in Firefox:
Options -> Content -> Choose your preferred language for displaying pages -> Japanese [jpn]

This was all my own fault, but might be helpful to other people
[edit]
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on July 15, 2015, 02:34:34 PM
Yeah, looks like your browser was sending "ja" as the preferred language. reCAPTCHA itself handles the language for display, this modification doesn't try to override the autodetect.
Title: Re: reCAPTCHA for SMF
Post by: RE3A on August 14, 2015, 08:12:15 AM
Quote from: 青山 素子 on July 15, 2015, 02:34:34 PM
Yeah, looks like your browser was sending "ja" as the preferred language. reCAPTCHA itself handles the language for display, this modification doesn't try to override the autodetect.
Hi 青山 素子!
Love the mod, looks perfect and for me everything works great, but I have a problem with my mobile template.
The mod looks 10/10 in my full site for PC but does not show in mobile version. When I install the mod I have an error message (attachment called "1a").
And the 2 advices for smf4mobile are the next "2a" and "3a".
I dont have in my .php the code of third image when I have to add: }
Myabe this is the problem but I do not have any idea about web design  :'(

Could you help me with this? I know this is not a mod problem, is about my mobile version template but I appreciate your help. Thank you for all!

If you want to test my site is mencouture.com
Title: Re: reCAPTCHA for SMF
Post by: wanashen on September 16, 2015, 04:25:26 PM
hey im trying to setup recaptcha on my site but i have a problem

i installed recaptcha and added the codes in settings but when i disable the normal verification methods from smf recaptcha is disabled too
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on September 16, 2015, 09:08:54 PM
You need to leave visual verification turned on. When the modification is installed, it replaces the built-in system.
Title: Re: reCAPTCHA for SMF
Post by: wanashen on September 16, 2015, 09:58:57 PM
Quote from: 青山 素子 on September 16, 2015, 09:08:54 PM
You need to leave visual verification turned on. When the modification is installed, it replaces the built-in system.

The letters you typed don't match the letters that were shown in the picture.

is now the error messsage when i try to register
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on September 17, 2015, 01:50:52 AM
Odd. I can't reproduce. Please make sure the codes you entered are correct and there are no spaces before or after them. Also, make sure they are for the correct domain.
Title: Re: reCAPTCHA for SMF
Post by: wanashen on September 17, 2015, 02:29:51 AM
Quote from: 青山 素子 on September 17, 2015, 01:50:52 AM
Odd. I can't reproduce. Please make sure the codes you entered are correct and there are no spaces before or after them. Also, make sure they are for the correct domain.

the codes are correct, no spaces and correct domain but i think the old verification code is somewhere in the background ....its the same error message that i see on this page when the code is incorrect

The letters you typed don't match the letters that were shown in the picture.
Title: Re: reCAPTCHA for SMF
Post by: wanashen on September 18, 2015, 05:39:59 AM
im using the redsy theme ...if thats important
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on September 18, 2015, 03:59:27 PM
Potentially. Does it work on the default theme?

Sorry for the slow response, dealing with some family/medical things.
Title: Re: reCAPTCHA for SMF
Post by: wanashen on September 18, 2015, 09:49:52 PM
nope same error ;(
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on September 20, 2015, 12:37:54 AM
Quote from: wanashen on September 18, 2015, 09:49:52 PM
nope same error ;(

Hmmm. Send me a PM and as soon as I have a chance I'll see what I can do to help you with the issue.
Title: Re: reCAPTCHA for SMF
Post by: wanashen on September 21, 2015, 12:55:34 AM
Quote from: 青山 素子 on September 20, 2015, 12:37:54 AM
Quote from: wanashen on September 18, 2015, 09:49:52 PM
nope same error ;(

Hmmm. Send me a PM and as soon as I have a chance I'll see what I can do to help you with the issue.

reinstalled the forum > installed recaptcha > enabled recaptcha > insert google codes > same error  :'(
Title: Re: reCAPTCHA for SMF
Post by: Nytwyng on September 25, 2015, 12:21:27 AM
Quote from: wanashen on September 17, 2015, 02:29:51 AM
Quote from: 青山 素子 on September 17, 2015, 01:50:52 AM
Odd. I can't reproduce. Please make sure the codes you entered are correct and there are no spaces before or after them. Also, make sure they are for the correct domain.

the codes are correct, no spaces and correct domain but i think the old verification code is somewhere in the background ....its the same error message that i see on this page when the code is incorrect

The letters you typed don't match the letters that were shown in the picture.

For what it's worth, I'm having the same issue, myself.
Title: Re: reCAPTCHA for SMF
Post by: Starz0r on October 19, 2015, 08:34:55 AM
Not a huge problem

http://puu.sh/kPNLv/5298c9fb1d.png

But the alignment is completely off, I hope you can fix it eventually though.

Other than that, this mod has been completely useful in catching harmful spam bots (even though my questions are secure to my community)
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on October 19, 2015, 11:24:25 PM
Quote from: Starz0r on October 19, 2015, 08:34:55 AM
But the alignment is completely off, I hope you can fix it eventually though.

Looks like a custom theme. You'll need to add the following CSS to your theme's stylesheet:


.g-recaptcha div div
{
margin: auto;
}
Title: Re: reCAPTCHA for SMF
Post by: Starz0r on October 20, 2015, 06:58:57 PM
Quote from: 青山 素子 on October 19, 2015, 11:24:25 PM
Quote from: Starz0r on October 19, 2015, 08:34:55 AM
But the alignment is completely off, I hope you can fix it eventually though.

Looks like a custom theme. You'll need to add the following CSS to your theme's stylesheet:


.g-recaptcha div div
{
margin: auto;
}


This didn't seem to fix it, it also broke my quick login modal button :(
Title: Re: reCAPTCHA for SMF
Post by: rtil on November 15, 2015, 11:44:06 PM
Quote from: wanashen on September 16, 2015, 09:58:57 PM
Quote from: 青山 素子 on September 16, 2015, 09:08:54 PM
You need to leave visual verification turned on. When the modification is installed, it replaces the built-in system.

The letters you typed don't match the letters that were shown in the picture.

is now the error messsage when i try to register

just chiming in to say that my forum is now also throwing this error. recaptcha used to work but now it does this instead. http://www.thebackalleys.com/forum/register/
Title: Re: reCAPTCHA for SMF
Post by: ZamaTata on December 14, 2015, 05:09:25 AM
Thanks working fine in my newly installed 2.0.11 forum.

Title: Re: reCAPTCHA for SMF
Post by: Nirose on February 04, 2016, 12:01:23 AM
This does not work for me on my forum. i keep getting "letters not matched errors".

But recaptcha doesn't use letters anymore and it uses tick or visual verification. It would be great if it worked as ticking is the simplest way for anti-bot.

Anyone have any clue?
Title: Re: reCAPTCHA for SMF
Post by: vbgamer45 on March 05, 2016, 06:27:55 PM
Played around a bit with v2 of recaptcha.
One big thing to note is they took away global keys. You now have to list each domain so that sucks. Did find a workaround though you have to create a secure token.
Here is a the lib samples with ReCaptchaToken.php included.

I did something like this on my sites

global $sourcedir;
require("$sourcedir/ralib/ReCaptchaToken.php");


$reconfig = array('site_key' => $modSettings['recaptcha_public_key'], 'site_secret' => $modSettings['recaptcha_private_key']);
$recaptchaToken = new \ReCaptchaSecureToken\ReCaptchaToken($reconfig);
$secureToken = $recaptchaToken->secureToken($context['session_id']);

echo '            <div class="g-recaptcha" data-sitekey="', $modSettings['recaptcha_public_key'], '" data-stoken="' .  $secureToken  . '"></div>
            <script type="text/javascript"
                    src="https://www.google.com/recaptcha/api.js?hl=en">
            </script>

register.php

require("$sourcedir/ralib/autoload.php");

// Check whether the visual verification code was entered correctly.
if(!empty($modSettings['recaptcha_enable']) || ($modSettings['recaptcha_enabled'] == 1 && !empty($modSettings['recaptcha_public_key']) && !empty($modSettings['recaptcha_private_key'])))
{
if (isset($_POST['g-recaptcha-response']))
{
$recaptcha = new \ReCaptcha\ReCaptcha($modSettings['recaptcha_private_key']);
$resp = $recaptcha->verify($_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']);

if ($resp->isSuccess() == false)
{
fatal_lang_error('visual_verification_failed', false);
}



}
else
fatal_lang_error('visual_verification_failed', false);



}
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 06, 2016, 04:53:44 PM
Google took down all their documentation on using secure tokens. As far as I'm concerned, that makes such an option officially unsupported and likely to go away. Anyone is welcome to try and do this on their site, but I'm not planning on adding undocumented features that are subject to breakage. Should this get added back to the official documentation, let me know and I'll see about adding it officially.
Title: Re: reCAPTCHA for SMF
Post by: kovaldo on March 21, 2016, 09:23:49 AM
After upgrading to PHP 7
Version: reCAPTCHAforSMF_1.0.1

PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; ReCaptcha has a deprecated constructor in ~/Sources/recaptchalib.php on line 42
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on March 23, 2016, 01:23:15 AM
Thanks for the information. That's a Google-supplied library. Hopefully, they'll update the code before it's removed from PHP.
Title: Re: reCAPTCHA for SMF
Post by: PPZ-01 on April 05, 2016, 08:50:39 PM
Quote from: Nirose on February 04, 2016, 12:01:23 AM
This does not work for me on my forum. i keep getting "letters not matched errors".

But recaptcha doesn't use letters anymore and it uses tick or visual verification. It would be great if it worked as ticking is the simplest way for anti-bot.

Anyone have any clue?

   I have the same problem.Removed ReCaptcha for the moment, as it is useless as it is.It would be nice to have some solution, as it looks quite ok.
Title: Re: reCAPTCHA for SMF
Post by: vbgamer45 on April 05, 2016, 09:59:03 PM
That I have sometimes seen occur if you have bad html on the page unclosed tags could mess with recaptcha
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on April 06, 2016, 02:03:52 AM
I'd love to find a way to fix, but I can't reproduce the issue.
Title: Re: reCAPTCHA for SMF
Post by: PPZ-01 on April 06, 2016, 03:48:14 PM
Quote from: vbgamer45 on April 05, 2016, 09:59:03 PM
That I have sometimes seen occur if you have bad html on the page unclosed tags could mess with recaptcha

   I did the fresh install, with minimal modifications.Before reCaptcha i tried KeyCaptcha mod, but removed it, and then installed reCaptcha.

   All mods were uninstalled without problem, no errors, and new ones were installed through the package manager.

   So I don't know if any of mods broke the code, but they all seem to work fine, except reCaptcha.

   
Title: Re: reCAPTCHA for SMF
Post by: vbgamer45 on April 06, 2016, 04:03:19 PM
I would try running your site though the html validator there is an icon/link in your theme normally near the bottom. but you need to run in on the registration page
Title: Re: reCAPTCHA for SMF
Post by: PPZ-01 on April 07, 2016, 03:38:38 PM
     I have to admit it is out of my powers.I am not so advanced in programming that I can find the error.

    Obviously there is some, but I not find it.

     If anyone is interested to check it for me, url is:

     http://www.citroenforumsrbije.com/index.php?action=register
Title: Re: reCAPTCHA for SMF
Post by: garyee on April 28, 2016, 05:47:51 AM
Hello,

I installed the reCaptcha Mod primarily for guest posting, but now I noticed that there is an error when using the reCaptcha for guest search validation.
Anything I do results in the error message:
"Please enter the verification code below to continue to the results."

I do not know if this error only occurs on my installation, or in general.
Does anyone have this problem too, or knows a solution?

I am using SMF 2.0.11 and the Mod Version from  reCAPTCHAforSMF_1.0.1.tar.gz (in the package manager it says 1.0.0 anyhow... which is also kind of strange)


Title: Re: reCAPTCHA for SMF
Post by: nothus on May 15, 2016, 08:09:28 AM
Not working on my registration page, always getting "wrong letters error"
When i validate my registration page i get :

Error Line 192, Column 43: there is no attribute "data-sitekey"
...<div class="g-recaptcha" data-sitekey="6Lch9R8......

Error Line 192, Column 97: there is no attribute "data-theme"
...ata-sitekey="6Lch9R8......" data-theme="dark"></div>

Title: Re: reCAPTCHA for SMF
Post by: MobileCS on May 24, 2016, 12:47:05 AM
This mod is not working on my site either. When enabled, I keep getting the "wrong letters error" when trying to register.

Its like the built in captcha is still activated - but not showing.
Title: Re: reCAPTCHA for SMF
Post by: PPZ-01 on May 31, 2016, 08:22:34 AM
   Me too, but it seems no support on this :(

   Too bad, I was eager to implement it into forum.

   Right now I set three questions on regsitration, so a little bit less spammers, but still I would like to be able to use reCAPTCHA. :(
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on May 31, 2016, 11:57:19 AM
It should be working, but I'll check as soon as I can. The failure message is recycled from the default strings for the built-in system, so that's why it talks about letters.

I maintain this in my free time and have been working 12-16 hour days recently, leaving no time for anything else.
Title: Re: reCAPTCHA for SMF
Post by: PPZ-01 on May 31, 2016, 12:43:10 PM
      I can enable reCAPTCHA for a few days if you wish to check what's up, just tell me when :)
Title: Re: reCAPTCHA for SMF
Post by: b33z on July 06, 2016, 12:22:54 AM
Quote from: [Lucien] on January 24, 2011, 09:50:01 PM
Quote from: king kratos on January 11, 2011, 05:13:54 PM

Ok, I got it installed on my forum, but it is not centered. I attempted to add align=center and <center> but it still won't center. Any suggestions?

Kratos

Open this file in a editor: Themes/default/GenericControls.template.php

Search:

<div id="verification_control_', $i, '" class="verification_control">';

Replace with:

<div align="center" id="verification_control_', $i, '" class="verification_control">';



I found this info here.... http://www.simplemachines.org/community/index.php?topic=379963.msg2617402#msg2617402 (http://www.simplemachines.org/community/index.php?topic=379963.msg2617402#msg2617402)


Thats it! Thats the bit we've been looking for lol I don't care how late to the party I am!

Cheers!
Title: Re: reCAPTCHA for SMF
Post by: I JaR oF JaM I on September 28, 2016, 02:20:37 AM
When I try to register a new account with this mod, it says "You are not allowed to access this section."   Any idea why?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on September 28, 2016, 09:14:17 PM
The URL has probably been changed since the last update. You can register at https://www.google.com/recaptcha and choosing "Get reCAPTCHA" on the top right.
Title: Re: reCAPTCHA for SMF
Post by: Circa on October 10, 2016, 10:45:21 AM
Any plans to get this fixed? It's kind of essential for an SMF install nowadays. Bots break through the default captcha like its nothing.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on October 10, 2016, 10:36:56 PM
Quote from: Circa on October 10, 2016, 10:45:21 AM
Bots break through the default captcha like its nothing.

Bots break through reCAPTCHA very easy too. I suggest using the question/answer feature if you want something better. Also, a broken link to a place you can go yourself isn't high priority.
Title: Re: reCAPTCHA for SMF
Post by: Circa on October 11, 2016, 12:11:34 AM
When it was working, I didn't get any bots breaking through.

And I'm not sure what you mean by that second part of your post. I'm referring to the error that says the letters were wrong.
Title: Re: reCAPTCHA for SMF
Post by: Jade Elizabeth on January 14, 2017, 02:55:48 AM
Any idea what could cause these errors? My members can't send PMs at the moment...wondering if it's this mod or something else? :)
Title: Re: reCAPTCHA for SMF
Post by: Arantor on January 14, 2017, 05:48:11 AM
Your host needs to fix their OpenSSL configuration.
Title: Re: reCAPTCHA for SMF
Post by: rcruz on January 21, 2017, 02:20:21 PM
Hi all!

about the "letters wrong" error (search box errors).  I was convinced it was a bug of the mod. So I have been reviewing the source code and applied a change that worked well for me. Explained following:


$Source/Search.php

[search for]

                // If we come from another search box tone down the error...
if (!isset($_REQUEST['search_vv']))

[Replace by]

// If we come from another search box tone down the error...
if (!isset($_REQUEST['search_vv']) && !$modSettings['recaptcha_enabled'])




I'm not sure about it's an appropiate modification, but it works...

Best Regards,

Title: Re: reCAPTCHA for SMF
Post by: oOo--STAR--oOo on January 25, 2017, 05:26:25 PM
Great mod very simple and clean a must have!

Also regards to reCaptcha being automatically cracked by bots is not something I am aware of and I have made plenty of bots for different kinds of platforms. If you have some knowledge on cracking these automatically please share that would be very interesting. There is one service I affiliate with who uses real people to crack the captchas for pittance. It can only be done manually and they have to pay to use the service as real people are solving the captchas and sending it back. The fact people would have to pay to distribute bots on your site makes it less likely especially for small forums. BDC does not work with googles new reCaptchas.

Awesome mod!
Title: Re: reCAPTCHA for SMF
Post by: soundboy974 on January 28, 2017, 02:46:52 AM
Hi everyone

Since I have installed this mod i have this error in my logs

Does anyone have an idea?
Title: Re: reCAPTCHA for SMF
Post by: oOo--STAR--oOo on January 28, 2017, 06:12:08 PM
Quote from: soundboy974 on January 28, 2017, 02:46:52 AM
Hi everyone

Since I have installed this mod i have this error in my logs

Does anyone have an idea?

I had this error also, and I also didn't want the error taking me away from the page I was on, so this edit that fixed those issues for me :D Double whammy.

Open /Sources/Subs-Editor.php
and search for
Code (find) Select
fatal_lang_error('error_wrong_verification_code', false);
Replace with
Code (replace) Select
$verification_errors[] = 'wrong_verification_code';

You will find 2 instances of it, replace both of them.

You got that error because they either didn't try to answer the reCaptcha or they answered it incorrectly.
Title: Re: reCAPTCHA for SMF
Post by: dan3 on October 19, 2017, 06:11:14 PM
Will there be an update for this mod?

"Dear Webmaster,
You are receiving this email because you are registered as a website administrator using reCAPTCHA, and your website is still using reCAPTCHA v1, which will be turned off on March 31, 2018.
We announced the reCAPTCHA v1 deprecation in May 2016. Starting in November 2017, a small percentage of reCAPTCHA v1 traffic will begin to show a notice informing users that the old API will soon be retired. Any calls to the v1 API will not work after March 31, 2018.
To ensure continued functionality, you'll need to update your website to a current version of reCAPTCHA. You can learn more about reCAPTCHA v2, Invisible reCAPTCHA and reCAPTCHA Android API in our Developer's Guide. The new APIs are simple to implement and will streamline the captcha experience for your users. If you need help, you can engage in the reCAPTCHA Google Developer Group or post to Stack Overflow with the 'recaptcha' tag."


Title: Re: reCAPTCHA for SMF
Post by: digger on October 19, 2017, 06:33:29 PM
Quote from: dan3 on October 19, 2017, 06:11:14 PM
Will there be an update for this mod?

"Dear Webmaster,
You are receiving this email because you are registered as a website administrator using reCAPTCHA, and your website is still using reCAPTCHA v1, which will be turned off on March 31, 2018.
We announced the reCAPTCHA v1 deprecation in May 2016. Starting in November 2017, a small percentage of reCAPTCHA v1 traffic will begin to show a notice informing users that the old API will soon be retired. Any calls to the v1 API will not work after March 31, 2018.
To ensure continued functionality, you'll need to update your website to a current version of reCAPTCHA. You can learn more about reCAPTCHA v2, Invisible reCAPTCHA and reCAPTCHA Android API in our Developer's Guide. The new APIs are simple to implement and will streamline the captcha experience for your users. If you need help, you can engage in the reCAPTCHA Google Developer Group or post to Stack Overflow with the 'recaptcha' tag."

Mod was updated some years ago for v2 API reCaptcha.
Title: Re: reCAPTCHA for SMF
Post by: SD-X on October 20, 2017, 12:48:15 PM
I received the same email. I thought this was still using the original version. Wasn't the update for version 2 an unofficial change someone posted in the topic here?

Edit: https://www.simplemachines.org/community/index.php?topic=213535.msg3864090#msg3864090

Edit #2: Scratch that.
https://www.simplemachines.org/community/index.php?topic=213535.msg3822010#msg3822010

I think we're good. Looks like Google is just being stupid.
Title: Re: reCAPTCHA for SMF
Post by: Darkness7148 on October 21, 2017, 05:30:24 AM
I've been trying to get this mod working on my forum for years now but it is still giving me the same error when you try to register on my forum:



Happens regardless if you tick the recapture box or not.
Title: Re: reCAPTCHA for SMF
Post by: SD-X on October 21, 2017, 04:44:18 PM
Quote from: StarScream123 on October 21, 2017, 05:30:24 AM
I've been trying to get this mod working on my forum for years now but it is still giving me the same error when you try to register on my forum:



Happens regardless if you tick the recapture box or not.
That appears to be a permissions issue separate from this mod. Make sure user registration is activated in your board's settings.
Title: Re: reCAPTCHA for SMF
Post by: Darkness7148 on October 21, 2017, 04:46:33 PM
Registration works fine when this mod isn't installed.
Title: Re: reCAPTCHA for SMF
Post by: pepa on November 27, 2017, 06:40:16 AM
Quote from: StarScream123 on October 21, 2017, 05:30:24 AM
I've been trying to get this mod working on my forum for years now but it is still giving me the same error when you try to register on my forum:



Happens regardless if you tick the recapture box or not.

Same problem here, using 2.0.14 with Responsive Curve mod.
Title: Re: reCAPTCHA for SMF
Post by: Tetrahydrocannabinol on January 03, 2018, 05:07:56 AM
There's an error with the css on installation.

It will install the css as:
/* Make the reCAPTCHA dialog centered to match the positioning of the built-in verification */
.g-recaptcha div div
{
margin: auto;
}


But it needs to be:
/* Make the reCAPTCHA dialog centered to match the positioning of the built-in verification */
.g-recaptcha div
{
margin: auto;
}


Or else it won't do anything.
Title: Re: reCAPTCHA for SMF
Post by: pepa on January 03, 2018, 08:13:03 AM
Tetrahydrocannabinol

Which css file does that refer to?
Title: Re: reCAPTCHA for SMF
Post by: pepa on January 04, 2018, 04:12:24 AM
Quote from: pepa on January 03, 2018, 08:13:03 AM
Tetrahydrocannabinol

Which css file does that refer to?

index.css .... made the change and it works perfectly.

thank you Tetrahydrocannabinol : )
Title: Re: reCAPTCHA for SMF
Post by: deciph3red on March 23, 2018, 01:14:26 AM
I have made the changes to the css mentioned below and I am still having a problem.  Registration set to immediate, admin approval and email approval and still getting "You do not have access".

Quote from: pepa on November 27, 2017, 06:40:16 AM
Quote from: StarScream123 on October 21, 2017, 05:30:24 AM
I've been trying to get this mod working on my forum for years now but it is still giving me the same error when you try to register on my forum:



Happens regardless if you tick the recapture box or not.

Same problem here, using 2.0.14 with Responsive Curve mod.
Title: Re: reCAPTCHA for SMF
Post by: deciph3red on March 24, 2018, 01:54:09 AM
Why have so many posted this but no one has been able to fix ?  I see people running this with no issues.
Title: Re: reCAPTCHA for SMF
Post by: foropimiento on April 05, 2018, 05:36:31 PM
was working perfectly but now I have this erros

http://www.gstatic.com/recaptcha/images/v1_unsupported.png

can anybody help me? thanks
Title: Re: reCAPTCHA for SMF
Post by: digger on April 05, 2018, 05:37:50 PM
Quote from: foropimiento on April 05, 2018, 05:36:31 PM
was working perfectly but now I have this erros

http://www.gstatic.com/recaptcha/images/v1_unsupported.png

can anybody help me? thanks
Just install actual mod version.
Title: Re: reCAPTCHA for SMF
Post by: foropimiento on April 06, 2018, 02:43:37 AM
Quote from: digger on April 05, 2018, 05:37:50 PM
Quote from: foropimiento on April 05, 2018, 05:36:31 PM
was working perfectly but now I have this erros

http://www.gstatic.com/recaptcha/images/v1_unsupported.png

can anybody help me? thanks
Just install actual mod version.

thanks for the answer... just istnall last version and have same problem, any idea?

thanks
Title: Re: reCAPTCHA for SMF
Post by: digger on April 06, 2018, 06:05:04 AM
Quote from: foropimiento on April 06, 2018, 02:43:37 AM
Quote from: digger on April 05, 2018, 05:37:50 PM
Quote from: foropimiento on April 05, 2018, 05:36:31 PM
was working perfectly but now I have this erros

http://www.gstatic.com/recaptcha/images/v1_unsupported.png

can anybody help me? thanks
Just install actual mod version.

thanks for the answer... just istnall last version and have same problem, any idea?

thanks
Do you have "reCaptcha v2" checked here  https://www.google.com/recaptcha for your forum?
Title: Re: reCAPTCHA for SMF
Post by: societyofrobots on April 06, 2018, 05:33:19 PM
I updated from an old version to the newest version so I can use v2 of reCaptcha, but I'm getting this error:

The letters you typed don't match the letters that were shown in the picture.

Anyone figure this out?
Title: Re: reCAPTCHA for SMF
Post by: vbgamer45 on April 06, 2018, 05:37:59 PM
Make sure you get new v2 keys from recaptcha as well.
Title: Re: reCAPTCHA for SMF
Post by: digger on April 06, 2018, 05:40:30 PM
And look into the forum errors logs. May be some issue about the wrapper "https".
Title: Re: reCAPTCHA for SMF
Post by: vbgamer45 on April 06, 2018, 05:42:26 PM
Quote from: digger on April 06, 2018, 05:40:30 PM
And look into the forum errors logs. May be some issue about the wrapper "https".
That is true too. I had to turn off verify_peer on my end to get it to work.
Title: Re: reCAPTCHA for SMF
Post by: foropimiento on April 08, 2018, 05:38:40 AM
Quote from: vbgamer45 on April 06, 2018, 05:37:59 PM
Make sure you get new v2 keys from recaptcha as well.

I got v2 key and same thing, don't work
Title: Re: reCAPTCHA for SMF
Post by: foropimiento on April 08, 2018, 05:39:14 AM
Quote from: digger on April 06, 2018, 05:40:30 PM
And look into the forum errors logs. May be some issue about the wrapper "https".

can you explain better please? thanks
Title: Re: reCAPTCHA for SMF
Post by: foropimiento on April 08, 2018, 05:39:37 AM
Quote from: vbgamer45 on April 06, 2018, 05:42:26 PM
Quote from: digger on April 06, 2018, 05:40:30 PM
And look into the forum errors logs. May be some issue about the wrapper "https".
That is true too. I had to turn off verify_peer on my end to get it to work.

where can i see this option?
Title: Re: reCAPTCHA for SMF
Post by: wwwserfer on May 04, 2018, 01:09:49 PM
Is it possible to make this mod work on SMF 1.1.21? (reCaptcha v2)
Title: Re: reCAPTCHA for SMF
Post by: vbgamer45 on May 04, 2018, 06:27:29 PM
It could be be done just have copy the v2 code from smf2 to smf1
Title: Re: reCAPTCHA for SMF
Post by: wwwserfer on May 05, 2018, 07:15:46 AM
Quote from: vbgamer45 on May 04, 2018, 06:27:29 PM
It could be be done just have copy the v2 code from smf2 to smf1

Thanks for the advice! Modified to 1.1.21
Working!
Title: Re: reCAPTCHA for SMF
Post by: Chas Large on May 31, 2018, 10:31:59 AM
Quote from: societyofrobots on April 06, 2018, 05:33:19 PM
I updated from an old version to the newest version so I can use v2 of reCaptcha, but I'm getting this error:

The letters you typed don't match the letters that were shown in the picture.

Anyone figure this out?

I am seeing the same issue, it seems like enabling this mod HIDES the old anti-spam check of figures and takes no notice of the ReCaptcha function. Disable Recaptcha and the registration works as before. Re-enable and you get the error message about letters typed don't match.

Have tried uninstalling and reinstalling to no avail.

Also seeing these FOUR error messages in the Error Log per attempt to register:

URL https://www.fiftyplusforum.co.uk/forum/index.php?action=register2
8: Use of undefined constant codes - assumed 'codes'
File: /home/fiftyplu/public_html/forum/Sources/recaptchalib.php
Line: 133

URL https://www.fiftyplusforum.co.uk/forum/index.php?action=register2
8: Use of undefined constant error - assumed 'error'
File: /home/fiftyplu/public_html/forum/Sources/recaptchalib.php
Line: 133

URL https://www.fiftyplusforum.co.uk/forum/index.php?action=register2
2: file_get_contents(https://www.google.com/recaptcha/api/siteverify?secret=6LdJ_VsUAAAAADc9t2wVoqhPH0-sWjQSCVww6hA2&remoteip=51.6.19.39&v=php_1.0&response=03ACgFB9tcxj-JJ-viiUpGjvC7eba7w_0mhcj5BYK_OKEJGQrsKSXChLkqD5FeGITIOLM4aJiBar-AK7Zbil4L0vj3douvcsGjpaIaB-E-lp_tUdAYLFXQhKrg1Czmpaj-i5FcK08FzcM9YnFAQX_HLKpfq4uBeQgfhAn5KzVlbCvQlEIstaZx5v79-tpFEnLIw1vH-i5dJ04cytlhQ5dqUBv6JOXr2azaCZLiZG2lo4oYQCnq8PfjaL6xzDJzuCxlCvP0NoCq0-NVPmsW7bN3vWcKzeQPK-2InpZ2z8Yfg0-hyiNSnElO452UXyGc9VhFtkw7-n-carkktowNJk-vQw6LHr9BivpjHh-QRXzAbtBIBnKaYqbM5_93jxZ4uX7zqBAjOCfjzld5D028RqwT8KPCivsUFIGlM4JvlCLIiubAnv4UbwOl6Q8jmCu_YLIFfyEiaDNJXwWIluKYozhTXZGClyTnJEO31-87I4TEcrijMbq2psY7YeskXNAo1DcYTDFrnxIBvOzQE446H9Ylxjt7rXyAg78JWQeRCZv0FZv9HVFK_1bynnN_WRBtgEa-9fVPckRyMGfZY1NPJC1IeGjVJtwClnEdnLICLbiKilBJrS6OQv5VXjycMiAxxwxGZA8L895tVFo_jTy9g6fnIW7TrFFtc43whB-wytLQzzj8qP4GF8TVcR5phaUOAVFZR92D9vBXMDngXHaHNKACTf5pegY9F8w8wBucSvA8YOijrEhNRYNB1GA): failed to open stream: no suitable wrapper could be found
File: /home/fiftyplu/public_html/forum/Sources/recaptchalib.php
Line: 94

URL https://www.fiftyplusforum.co.uk/forum/index.php?action=register2
2: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0
File: /home/fiftyplu/public_html/forum/Sources/recaptchalib.php
Line: 94
Title: Re: reCAPTCHA for SMF
Post by: Shambles on May 31, 2018, 01:27:30 PM
Quotehttps:// wrapper is disabled in the server configuration by allow_url_fopen=0

That's yer killer. You should be able to change that (or ask your host to) in your cPanel's php editor.

A php_info will show you when it's been changed.

Title: Re: reCAPTCHA for SMF
Post by: Chas Large on May 31, 2018, 02:06:09 PM
Quote from: Shambles on May 31, 2018, 01:27:30 PM
Quotehttps:// wrapper is disabled in the server configuration by allow_url_fopen=0

That's yer killer. You should be able to change that (or ask your host to) in your cPanel's php editor.

A php_info will show you when it's been changed.
Hey thanks Shambles, that fixed it. I have my own server and modified the php.ini file in the forum root with allow_url_fopen=1

Odd that it's never been needed before though.

ReCaptcha works fine now.

Thanks
Title: Re: reCAPTCHA for SMF
Post by: Shambles on May 31, 2018, 02:10:58 PM
Spooky eh?  Maybe you installed a new version of php?

Matters not, as long as you're sorted.
Title: Re: reCAPTCHA for SMF
Post by: Arskrigitsioniets on July 10, 2018, 04:20:57 PM
Always when I don't press ReCaptcha and press "Post message", I get this error (top of the screen).

And if I try to post after that, I get error "You've already send this message" (I use Russian version and the translation might be inaccurate).

It isn't critical, Captcha works, but how to solve this errors? I use this mod https://custom.simplemachines.org/mods/index.php?mod=1044 reCAPTCHAforSMF_1.0.1.tar.gz

I use SMF 2.0.15
Title: Re: reCAPTCHA for SMF
Post by: Arskrigitsioniets on July 17, 2018, 08:12:32 AM
Also captcha doesn't work on Microsoft Edge 42.17134.1.0 - there is endless load after I press "I'm not a robot" here. But it works on Chrome, Opera and Mozilla.
Title: Re: reCAPTCHA for SMF
Post by: njtweb on July 18, 2018, 08:23:48 AM
Quote from: Arskrigitsioniets on July 17, 2018, 08:12:32 AM
Also captcha doesn't work on Microsoft Edge 42.17134.1.0 - there is endless load after I press "I'm not a robot" here. But it works on Chrome, Opera and Mozilla.

Works fine in IE, but who uses IE really anymore? My site is about 90% hand held mobile device traffic, and to be honest, does anybody know anyone who actually uses MS Edge? I don't know anybody myself and I work with a rather large infrastructure team at the company I am employed with. If you bring up the subject of IE or Edge you see developers faces cringe. They all hate both browsers.
Title: Re: reCAPTCHA for SMF
Post by: Arantor on July 18, 2018, 08:32:10 AM
It's still the world number two browser in most rankings.
Title: Re: reCAPTCHA for SMF
Post by: njtweb on July 18, 2018, 09:16:57 AM
IE? All of my Cisco voIP browser based tools require FF as the main platform and function in Chrome but are rendered completely useless and more or less inoperable in IE and Edge. I guess because Cisco develops their software on an open source platform, FF and Chrome is all I've ever been able to use almost exclusively in my job requirement for the last 18 years.
Title: Re: reCAPTCHA for SMF
Post by: Arantor on July 18, 2018, 09:31:56 AM
Impressive since neither FF nor Chrome are that old, FF emerged somewhere around 2004 from the remnants of what was Netscape, Chrome emerged in 2008-9.

I'm assuming they build for Chrome as that's the most commonly used browser and don't test on FF, it just happens to mostly work.

Edge is actually pretty good these days, seeing how several of my multinational clients are Edge only...
Title: Re: reCAPTCHA for SMF
Post by: njtweb on July 18, 2018, 09:36:37 AM
Quote from: Arantor on July 18, 2018, 09:31:56 AM
Impressive since neither FF nor Chrome are that old, FF emerged somewhere around 2004 from the remnants of what was Netscape, Chrome emerged in 2008-9.

I'm assuming they build for Chrome as that's the most commonly used browser and don't test on FF, it just happens to mostly work.

Edge is actually pretty good these days, seeing how several of my multinational clients are Edge only...

Guess my timing is off. Apparently I'm so used to using FF that I guess I assumed. Anyway, We're moving from 10.6 to 11 with our phone system platform and Cisco outright said to use FF exclusively during demo and orientation, similarly when we moved from 8.x into 10.6 it was the same. Finesse 10.6 doesn't work at all in Chrome, does work in IE but is ridiculously slow. Whatever the case, all I am doing is what Cisco suggested so.....that's why I use FF exclusively.
Title: Re: reCAPTCHA for SMF
Post by: GigaWatt on July 18, 2018, 09:44:35 AM
Quote from: Arantor on July 18, 2018, 09:31:56 AM
Edge is actually pretty good these days, seeing how several of my multinational clients are Edge only...

If it's an app, I'm not touching it :P.
Title: Re: reCAPTCHA for SMF
Post by: Arskrigitsioniets on July 21, 2018, 03:18:22 PM
QuoteWorks fine in IE
Try my forum https://xn--l1adgmc.xn--80agfnksgkikc.xn--p1ai/index.php. Does the captcha work in IE and Edge in sign up menu?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 01, 2018, 12:06:57 AM
As a quick note, I'm working on an update for this modification. It's planned to use the newer reCAPTCHA library for PHP and to integrate better into the current anti-spam verification system.

I have very little time, so it's going a bit slow.
Title: Re: reCAPTCHA for SMF
Post by: sam666 on August 01, 2018, 06:20:48 PM
Thank you very much for keeping this excellent mod updated  :)
Title: Re: reCAPTCHA for SMF
Post by: njtweb on August 02, 2018, 03:17:58 PM
That's great news. Thank you so much it's very much appreciated.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 04, 2018, 12:58:03 AM
I just uploaded an update. Please note that there are some major changes with this version, mainly to integrate things in a cleaner way. The reCAPTCHA method now operates independently from the built-in visual verification system rather than replacing it. This means you need to disable the built-in visual integration if you don't want it to be used.

Also, I know there is the whole Invisible reCAPTCHA system too, but I'm not planning on supporting it. The way you need to set up things in the code appears to be way too intrusive to make a clean modification that supports it.
Title: Re: reCAPTCHA for SMF
Post by: njtweb on August 04, 2018, 09:35:55 AM
Quote from: 青山 素子 on August 04, 2018, 12:58:03 AM
I just uploaded an update. Please note that there are some major changes with this version, mainly to integrate things in a cleaner way. The reCAPTCHA method now operates independently from the built-in visual verification system rather than replacing it. This means you need to disable the built-in visual integration if you don't want it to be used.

Also, I know there is the whole Invisible reCAPTCHA system too, but I'm not planning on supporting it. The way you need to set up things in the code appears to be way too intrusive to make a clean modification that supports it.

Thank you, greatly appreciated. When you say invisible I'd like to make sure I understand what you mean. I use the current "I'm not a robot" recaptcha. Is that the invisible recaptcha? Also does the old version have to be removed when the new version is installed?

Title: Re: reCAPTCHA for SMF
Post by: Arantor on August 04, 2018, 09:40:45 AM
Yes, the old version has to be removed to install the new version.

No, this is not the invisible reCAPTCHA, this is 'noCAPTCHA'. The invisible CAPTCHA is the next iteration where many users see no obvious challenge to face because of a whole lot of profiling done under the hood to identify whether the user 'feels like a bot' or not. If they pass the test, they don't even see a thing to fill in.
Title: Re: reCAPTCHA for SMF
Post by: njtweb on August 04, 2018, 09:46:17 AM
Great, thank you.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 05, 2018, 01:17:15 AM
What Arantor said. (Thanks for helping out!)

Invisible reCAPTCHA is pretty darn cool. Basically, you don't see it at all unless it thinks you may not be human. In that case, you see it. The thing is, because of how you need to set things up to use it (some javascript intercepts things), it would be a lot more changes to SMF than I feel are wise.

Title: Re: reCAPTCHA for SMF
Post by: moyack on August 05, 2018, 11:20:02 PM
Quote from: 青山 素子 on August 05, 2018, 01:17:15 AM
...

Just wanted to say, thanks for this awesome tool. Mandatory in this world of spambots.
Title: Re: reCAPTCHA for SMF
Post by: hamav8tor on August 10, 2018, 05:32:11 PM
I had been using this mod for a while successfully and something broke it recently...not sure what. The registration flow goes like this:

- registration page comes up
- user fills in reg information
- CAPTCHA appears and is solved
- user submits form and it times out after 20 seconds or so (php.ini and php-fpm timers are longer)

If I switch back to the built-in SMF captcha everything works fine.

I checked the reCAPTCHA portal on Google and there were no stats for my key pair because "site's traffic is below the minimum required to display charts" even though it had been in use successfully for a while.

There was also a warning at the top of the page about my client not verifying user answers or something to that effect...I deleted my previous key pair and set up a new key pair today and still no luck.

Has anyone seen anything like this?

Title: Re: reCAPTCHA for SMF
Post by: njtweb on August 11, 2018, 10:48:21 AM
Have you tried the new version she just updated?
Title: Re: reCAPTCHA for SMF
Post by: hamav8tor on August 18, 2018, 08:29:32 AM
Quote from: njtweb on August 11, 2018, 10:48:21 AM
Have you tried the new version she just updated?

If you mean 2.0.0, yes. Uninstalled 1.0.0 and installed 2.0.0. Still just hangs and times out.
Title: Re: reCAPTCHA for SMF
Post by: Mick. on August 24, 2018, 12:39:52 PM
Hey bro.... validator.w3.org can be a pain and stupid. It showed an error in validation in this bit
/Sources/recaptcha/recaptcha-for-smf.php

    $context['html_headers'] .= '<script src="https://www.google.com/recaptcha/api.js"></script>';

had to add the  type="text/javascript" to it to clear the error.  ;) Thought i'd would let you know.

    $context['html_headers'] .= '<script type="text/javascript" src="https://www.google.com/recaptcha/api.js"></script>';
Title: Re: reCAPTCHA for SMF
Post by: SychO on August 24, 2018, 12:41:38 PM
Quote from: Mick. on August 24, 2018, 12:39:52 PM
Hey bro.... validator.w3.org can be a pain and stupid. It showed an error in validation in this bit
/Sources/recaptcha/recaptcha-for-smf.php

    $context['html_headers'] .= '<script src="https://www.google.com/recaptcha/api.js"></script>';

had to add the  type="text/javascript" to it to clear the error.  ;) Thought i'd would let you know.

    $context['html_headers'] .= '<script type="text/javascript" src="https://www.google.com/recaptcha/api.js"></script>';

But if you use HTML5 it'll ask you to remove it instead :3
Title: Re: reCAPTCHA for SMF
Post by: Mick. on August 24, 2018, 12:42:29 PM
Quote from: SychO on August 24, 2018, 12:41:38 PM
Quote from: Mick. on August 24, 2018, 12:39:52 PM
Hey bro.... validator.w3.org can be a pain and stupid. It showed an error in validation in this bit
/Sources/recaptcha/recaptcha-for-smf.php

    $context['html_headers'] .= '<script src="https://www.google.com/recaptcha/api.js"></script>';

had to add the  type="text/javascript" to it to clear the error.  ;) Thought i'd would let you know.

    $context['html_headers'] .= '<script type="text/javascript" src="https://www.google.com/recaptcha/api.js"></script>';

But if you use HTML5 it'll ask you to remove it instead :3
ah, My themes and Default theme are not.
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '>
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 27, 2018, 10:01:59 PM
Quote from: hamav8tor on August 18, 2018, 08:29:32 AM
If you mean 2.0.0, yes. Uninstalled 1.0.0 and installed 2.0.0. Still just hangs and times out.

That's some pretty odd behavior you are experiencing. The only thought I have is that something is configured so that the server can't contact the reCAPTCHA backend to verify the information.

If you want to try some things, there's example code over at https://github.com/google/ReCAPTCHA (which is the library I use for the modification) you can upload and test with some pretty simple code. If that doesn't work, then it's something with the server.

I won't be able to offer help for uploading and getting that example code working, sorry.


Quote from: Mick. on August 24, 2018, 12:39:52 PM
had to add the  type="text/javascript" to it to clear the error.  ;) Thought i'd would let you know.

Thanks for the information. In practicality, having the type attribute missing shouldn't have a negative effect. However, I verified that it's required for HTML 4 and XHTML 1.x and optional for HTML 5. Since the presence isn't a problem in HTML 5, I'll make that change in a future release.
Title: Re: reCAPTCHA for SMF
Post by: njtweb on September 21, 2018, 10:40:43 AM
Is there an issue with Re-captcha today? I am using the latest version 2.0, (turned off and using the default anti-spam) but had to turn off because I'm getting hammered with bot posts as if recaptcha isn't working at all. Until today I've never had any issues with the previous or latest versions for guest posting or registrations.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on September 21, 2018, 09:19:05 PM
Quote from: njtweb on September 21, 2018, 10:40:43 AM
Is there an issue with Re-captcha today? I am using the latest version 2.0, (turned off and using the default anti-spam) but had to turn off because I'm getting hammered with bot posts as if recaptcha isn't working at all. Until today I've never had any issues with the previous or latest versions for guest posting or registrations.

reCAPTCHA has been broken for a long time. Most widespread CAPTCHA solutions have been. There are actual businesses out there farming out solving work to poor countries and charging pennies per solve. I don't advise using it by itself and instead using anti-spam questions with or without a CAPTCHA.
Title: Re: reCAPTCHA for SMF
Post by: Mick. on September 21, 2018, 09:21:40 PM
Quote from: 青山 素子 on September 21, 2018, 09:19:05 PM
Quote from: njtweb on September 21, 2018, 10:40:43 AM
Is there an issue with Re-captcha today? I am using the latest version 2.0, (turned off and using the default anti-spam) but had to turn off because I'm getting hammered with bot posts as if recaptcha isn't working at all. Until today I've never had any issues with the previous or latest versions for guest posting or registrations.

reCAPTCHA has been broken for a long time. Most widespread CAPTCHA solutions have been. There are actual businesses out there farming out solving work to poor countries and charging pennies per solve. I don't advise using it by itself and instead using anti-spam questions with or without a CAPTCHA.
Hmmm....i dont use any of those questions. Just captcha alone. I have no spammers. idk.
Title: Re: reCAPTCHA for SMF
Post by: njtweb on September 21, 2018, 10:57:18 PM
Crap, I hope my traffic will keep coming back. They're not going to like the legacy conventional anti-spam measures. Anything beyond just clicking a box for 45-50 year olds is like driving a stake through your website future.
Title: Re: reCAPTCHA for SMF
Post by: Yikesfactor on September 28, 2018, 10:59:17 AM
Why is it when I activate to use this, when you register, it gets an error message, saying you didn't enter the letters required, when there were none?

The normal system is set to None.

I had to turn this off, since it appears to not work properly with the normal system.

Any way around this?

I prefer the tick box to the letters.

(No time to read 43 pages, so just asking.)
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on September 28, 2018, 11:30:09 PM
The error message is the default one, so it's a bit confusing. Are you using a custom theme? There are a few edits that may be needed in such a case.
Title: Re: reCAPTCHA for SMF
Post by: Web Help Forums on October 16, 2018, 08:22:14 AM
I have a weird problem with this plugin.

1)
It is not possible to combine with the built-in captcha. Is that as designed? If I have both things enabled captcha is not shown

2)
If you use custom question and/or built-in captcha - the caption of the first edit box is not shown, only the ":"
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on October 17, 2018, 04:37:03 PM
If you are using the newest version, both the built-in and the reCAPTCHA should work independently. Likewise, the custom questions should work fine with reCAPTCHA and not show issues.

Note that this was only tested with the built-in themes. If you are using a custom theme, then there may be display issues.
Title: Re: reCAPTCHA for SMF
Post by: Web Help Forums on October 17, 2018, 09:07:22 PM
I am using a non-default theme, so that is probably why then. Just seems like odd errors, but I will try investigate
Title: Re: reCAPTCHA for SMF
Post by: Web Help Forums on October 18, 2018, 05:22:02 AM
I get the same error with default theme

Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on October 18, 2018, 12:32:14 PM
I'll try to look into the issue this weekend.
Title: Re: reCAPTCHA for SMF
Post by: -Rock Lee- on October 18, 2018, 01:18:04 PM
Mark me error in ../Themes/default/GenericControls.template.php try several ways but I can not make it work.

<div class="smalltext">
', $verify_context['questions'][$qIndex]['q'], ':<br />
<input type="text" name="', $verify_id, '_vv[q][', $verify_context['questions'][$qIndex]['id'], ']" size="30" value="', $verify_context['questions'][$qIndex]['a'], '" ', $verify_context['questions'][$qIndex]['is_error'] ? 'style="border: 1px red solid;"' : '', ' tabindex="', $context['tabindex']++, '" class="input_text" />
</div>';


they are the line 347-348 it marks me the error at the moment to implement it appears to me like the attached image (to see image) although I manage to remove it at the moment of registering it marks me error for not completing the captcha correctly.


Regards!

ADD: I forgot when I was editing it appears in the error logs 8: Undefined offset: 0 and 8: Undefined offset: 1
Title: Re: reCAPTCHA for SMF
Post by: Shambles on October 19, 2018, 01:40:11 PM
I got around this ":" issue by making the following change:

/Themes/default/GenericControls.template.php

Code (Find) Select
// Where in the question array is this question?
$qIndex = $verify_context['show_visual'] ? $i - 1 : $i;


Code (Replace) Select
// Where in the question array is this question?
$qIndex = ($verify_context['show_visual'] || $verify_context['use_recaptcha']) ? $i - 1 : $i;


I use reCaptcha and two questions.
Title: Re: reCAPTCHA for SMF
Post by: -Rock Lee- on October 19, 2018, 01:54:48 PM
Quote from: Sh@mbles on October 19, 2018, 01:40:11 PM
I got around this ":" issue by making the following change:

/Themes/default/GenericControls.template.php

Code (Find) Select
// Where in the question array is this question?
$qIndex = $verify_context['show_visual'] ? $i - 1 : $i;


Code (Replace) Select
// Where in the question array is this question?
$qIndex = ($verify_context['show_visual'] || $verify_context['use_recaptcha']) ? $i - 1 : $i;


I use reCaptcha and two questions.

I just wanted to use only the captcha but it gave me that error, I'm also going to check it that thanks @Sh@mbles.


Regards!
Title: Re: reCAPTCHA for SMF
Post by: Shambles on October 19, 2018, 02:21:55 PM
Well, the code that demands verification and issues the questions is within a loop.

If visual verification has been requested the loop shows this first, then adjusts the index into the question list accordingly (to ensure it starts at 0).

If reCaptcha is involved the loop index isn't adjusted so the questions subscript goes out of bounds.

By setting visual verification to NONE the above fix will work if reCaptcha is installed and switched on.

If both visual verification AND reCaptcha are needed, the above fix may need changing, to something like this (untested):

Code (Change To) Select
// Where in the question array is this question?
$qIndex = $verify_context['show_visual'] ? $i - 1 : $i;
                        $qIndex = $verify_context['use_recaptcha'] ? qIndex - 1 : qIndex;
Title: Re: reCAPTCHA for SMF
Post by: -Rock Lee- on October 19, 2018, 02:24:48 PM
At the moment, just take out the questions to make it easier for my users to register, even though I'm not near my computer to try it but when I can I try it and I'll tell you :)


Regards!
Title: Re: reCAPTCHA for SMF
Post by: Web Help Forums on October 19, 2018, 04:41:42 PM
I would prefer keeping SMF captcha + own questions alongside reCaptcha. I may try look into the suggestions given when I have time and report back. For now I have closed down for registrations due to too much spam.
Title: Re: reCAPTCHA for SMF
Post by: gimcnuk on November 19, 2018, 11:02:06 AM
Using last version (reCAPTCHA for SMF   2.0.0)
cannot register new account.

Log errors:
***/index.php?action=register2
2: file_get_contents(https://www.google.com/recaptcha/api/siteverify): failed to open stream: No such file or directory
Файл: /***/Sources/recaptcha/ReCaptcha/RequestMethod/Post.php
Строка: 68

***/index.php?action=register2
2: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
Файл: /***/Sources/recaptcha/ReCaptcha/RequestMethod/Post.php
Строка: 68
Title: Re: reCAPTCHA for SMF
Post by: vbgamer45 on November 19, 2018, 03:28:44 PM
Issue with your PHP " Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?" contact your hosting provider.
Title: Re: reCAPTCHA for SMF
Post by: jsx on December 04, 2018, 11:52:11 AM
I set the recaptcha and everything is fine but then an additional security question or two can not be set. So why is this happening?



Title: Re: reCAPTCHA for SMF
Post by: Shambles on December 04, 2018, 12:09:21 PM
Quotean additional security question or two can not be set.

It's been discussed earlier in this thread.

https://www.simplemachines.org/community/index.php?topic=213535.msg3992720#msg3992720
Title: Re: reCAPTCHA for SMF
Post by: jsx on December 04, 2018, 12:19:52 PM
I hope this mistake will be fixed. It's good to have a recaptcha system and own questions, that's more security.
Title: Re: reCAPTCHA for SMF
Post by: Shambles on December 04, 2018, 02:22:49 PM
Quote from: jsx
I hope this mistake will be fixed.

You can fix it yourself using the suggestions in the link I found for you.
Title: Re: reCAPTCHA for SMF
Post by: jsx on December 04, 2018, 03:06:12 PM
In which file should this code be changed?
Title: Re: reCAPTCHA for SMF
Post by: Shambles on December 04, 2018, 03:25:22 PM
Quote from: jsx on December 04, 2018, 03:06:12 PM
In which file should this code be changed?

Why not read the thread?   ::)

https://www.simplemachines.org/community/index.php?topic=213535.msg3992710#msg3992710
Title: Re: reCAPTCHA for SMF
Post by: SD-X on December 04, 2018, 03:26:25 PM
Quote from: jsx on December 04, 2018, 03:06:12 PM
In which file should this code be changed?
It states the file a few posts prior in the same conversation.
Title: Re: reCAPTCHA for SMF
Post by: _sebas_ on December 11, 2018, 06:34:48 PM
Hello everyone,
I have serious problems with spammers and a forum 1.1.21

Can you update recaptcha 1 to something higher with my forum 1.1.21?
Is it simple replacement?

Do you give me any clue?  help me

thanks
Title: Re: reCAPTCHA for SMF
Post by: Kindred on December 11, 2018, 09:04:26 PM
Given that 1.1.x is at end of life, you should instead update your own site to 2.0.x, which includes the best anti spam feature - questions.
Title: Re: reCAPTCHA for SMF
Post by: SD-X on December 11, 2018, 09:27:54 PM
Quote from: Kindred on December 11, 2018, 09:04:26 PM
Given that 1.1.x is at end of life, you should instead update your own site to 2.0.x, which includes the best anti spam feature - questions.
Pretty much this. If you absolutely have to have the newest version of ReCaptcha, you can modify the code to support it. Google has information on their website for this, and I believe a few users have also briefly discussed it in this topic.
Title: Re: reCAPTCHA for SMF
Post by: _sebas_ on December 13, 2018, 11:47:49 PM
thanks
I know, I have to migrate to 2.

But the issue is the urgency to cut these spambots, I have more than 200 per week,  with actual configuratiom ... and I have to go to 'manual'. I'm eating all the resources of my time spent for maintenance. I have to stop him right now!
Title: Re: reCAPTCHA for SMF
Post by: Kindred on December 14, 2018, 08:36:12 AM
yup.... and migrating to 2.0.x with the questions feature and other anti-spam mods will solve your problems in one fell swoop as well as probably fixing a half doizen other issues that you didn't even know you had.
Title: Re: reCAPTCHA for SMF
Post by: Wallen on December 14, 2018, 11:04:39 AM
Hey i installed the reCAPTCHA 2.0.0 but i have a problem with it, i enabled it from settings and wrote two (public and private keys) but it still doesn't work.



It says "Error for webmaster, the keys are incorrect." but i took them from the official website. So what's going on? theres not too much in documentations.
Title: Re: reCAPTCHA for SMF
Post by: SD-X on December 15, 2018, 06:24:29 AM
Quote from: Wallen on December 14, 2018, 11:04:39 AM
Hey i installed the reCAPTCHA 2.0.0 but i have a problem with it, i enabled it from settings and wrote two (public and private keys) but it still doesn't work.



It says "Error for webmaster, the keys are incorrect." but i took them from the official website. So what's going on? theres not too much in documentations.
You need to use new keys specifically for the new versions of ReCaptcha. You can't use the ReCaptcha v1 keys with ReCaptcha v2 or v3.

Go to https://www.google.com/recaptcha/admin and scroll down to "Register a new site". Choose your desired version you plan to run, and create new keys for the mod.

For more information on the different versions: https://developers.google.com/recaptcha/docs/versions
Title: Re: reCAPTCHA for SMF
Post by: _sebas_ on December 15, 2018, 06:38:38 AM
thankyou Kindred

a silly question (or maybe not):
Can you consider 2.1 as "stable"? in the sense that it is worth betting ditectamente for the newest,
.... and not have to do an upgrade in a short time.

?

Quote from: Kindred on December 14, 2018, 08:36:12 AM
yup.... and migrating to 2.0.x with the questions feature and other anti-spam mods will solve your problems in one fell swoop as well as probably fixing a half doizen other issues that you didn't even know you had.
Title: Re: reCAPTCHA for SMF
Post by: SD-X on December 15, 2018, 06:46:41 AM
Quote from: _sebas_ on December 15, 2018, 06:38:38 AM
thankyou Kindred

a silly question (or maybe not):
Can you consider 2.1 as "stable"? in the sense that it is worth betting ditectamente for the newest,
.... and not have to do an upgrade in a short time.

?

Quote from: Kindred on December 14, 2018, 08:36:12 AM
yup.... and migrating to 2.0.x with the questions feature and other anti-spam mods will solve your problems in one fell swoop as well as probably fixing a half doizen other issues that you didn't even know you had.
I use the latest repo version of 2.1 and have had no problems, however that copy is by no means ready for release. Moving to a pre-release version is at your own risk, and it even says in several places that you should not use it on a live site. Will you have problems? Maybe, maybe not. Is it worth the risk? Only you can decide that. In your case, if you are upgrading from 1.x, I would personally hold off, as you are trying to jump across several major versions to something that isn't even done yet, so there is a lot of potential for problems there. Your best bet is to make backups and then upgrade to 2.0.x. Then you can just wait for the final release of 2.1 and upgrade to it with less risk of destroying your entire forum.
Title: Re: reCAPTCHA for SMF
Post by: landyvlad on December 17, 2018, 05:19:41 AM
So is this actually working 'out of the box' for 2.0.15 these days?

Also why are some mods distributed as tar.gz when the package manager requires a Zip format ?
Title: Re: reCAPTCHA for SMF
Post by: Arantor on December 17, 2018, 05:23:25 AM
Package manager can handle both tar.gz (aka tgz) and zip just fine.
Title: Re: reCAPTCHA for SMF
Post by: landyvlad on December 17, 2018, 05:32:01 AM
Hmm, maybe it was some other format I had trouble with. Thanks Arantor :)

As an aside - is a tar.gz also known as a "tarball" or is that a whole other Linux type thing?
Title: Re: reCAPTCHA for SMF
Post by: Arantor on December 17, 2018, 06:05:31 AM
Yeah, that's a tarball. Basically, tar is a thing that bundles everything up into a single file, and then you compress it separately, which is why tar.bz2 and tar.gz exist - tar is the bundle, gz or bz2 is the compression.
Title: Re: reCAPTCHA for SMF
Post by: GigaWatt on December 17, 2018, 10:26:52 AM
Think of a tarballs like an ISO image ;). It's similar ;).

Quote from: landyvlad on December 17, 2018, 05:32:01 AM
Hmm, maybe it was some other format I had trouble with. Thanks Arantor :)

There was a mod that was accidentally compressed in rar instead of zip, but I can't remember the mod right now :P :D.
Title: Re: reCAPTCHA for SMF
Post by: landyvlad on December 17, 2018, 11:54:12 PM
thanks :)
Title: Re: reCAPTCHA for SMF
Post by: tgojevic on December 22, 2018, 07:11:22 PM
Hi,

I added your mod today, latest version, and this is the error I have on my site now:

Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home/tapandtr/public_html/period/forum/Sources/recaptcha/autoload.php on line 8

can you please help me out here? I did the manual backup but nothing changed...
Title: Re: reCAPTCHA for SMF
Post by: SD-X on December 23, 2018, 12:48:00 AM
Quote from: tgojevic on December 22, 2018, 07:11:22 PM
Hi,

I added your mod today, latest version, and this is the error I have on my site now:

Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home/tapandtr/public_html/period/forum/Sources/recaptcha/autoload.php on line 8

can you please help me out here? I did the manual backup but nothing changed...
Make sure you read through the past pages in this topic. Users have been updating the mod to help each other out. A lot of fixes are published in here randomly.
Title: Re: reCAPTCHA for SMF
Post by: Deaks on December 23, 2018, 01:51:47 PM
Quote from: Sh@mbles on October 19, 2018, 02:21:55 PM
Well, the code that demands verification and issues the questions is within a loop.

If visual verification has been requested the loop shows this first, then adjusts the index into the question list accordingly (to ensure it starts at 0).

If reCaptcha is involved the loop index isn't adjusted so the questions subscript goes out of bounds.

By setting visual verification to NONE the above fix will work if reCaptcha is installed and switched on.

If both visual verification AND reCaptcha are needed, the above fix may need changing, to something like this (untested):

Code (Change To) Select
// Where in the question array is this question?
$qIndex = $verify_context['show_visual'] ? $i - 1 : $i;
                        $qIndex = $verify_context['use_recaptcha'] ? qIndex - 1 : qIndex;


Any update I using the 2.0 version and even this change gives same error message.
Title: Re: reCAPTCHA for SMF
Post by: Shambles on December 23, 2018, 02:25:32 PM
What error message?
Title: Re: reCAPTCHA for SMF
Post by: Deaks on December 23, 2018, 02:37:00 PM
https://www.simplemachines.org/community/index.php?topic=213535.msg3992561#msg3992561 < this one
Title: Re: reCAPTCHA for SMF
Post by: Shambles on December 23, 2018, 03:03:06 PM
What's your antispam setup configured as?

Mine is set to:

Use reCAPTCHA Verification System:    checked
Visual verification image to display:    none
Number of verification questions user must answer:    2

With those, the amendment I have in GenericControls.template.php is

// Where in the question array is this question?
$qIndex = ($verify_context['show_visual'] || $verify_context['use_recaptcha']) ? $i - 1 : $i;



... and it all works fine. For me. With those settings.
Title: Re: reCAPTCHA for SMF
Post by: Deaks on December 23, 2018, 03:28:42 PM
Use reCAPTCHA Verification System:    checked
Visual verification image to display:    medium
Number of verification questions user must answer:    1

and that above edit in the file

getting

Quote8: Undefined offset: 1 Apply Filter: Only show the errors from this file File: /home/<<somesime>>/public_html/Themes/default/GenericControls.template.php
Line: 348
Title: Re: reCAPTCHA for SMF
Post by: Shambles on December 23, 2018, 04:45:22 PM
What can I say? Turn off your visual verification system [=none]. Why need both visual systems?
Title: Re: reCAPTCHA for SMF
Post by: Deaks on December 23, 2018, 04:58:51 PM
after posting i  updated that seems to be the issue ... weird lol
Title: Re: reCAPTCHA for SMF
Post by: FaKiR on January 12, 2019, 10:48:18 AM
I tried to run reCAPTCHA for SMF without success

have error talking about letters not matching.

I tried to replace code as said by Sh@mbles (https://www.simplemachines.org/community/index.php?topic=213535.msg3992710#msg3992710) but have the same error.

my setup :

I want to use reCAPTCHA only

Use reCAPTCHA Verification System: checked

Visual verification image to display: none

Number of verification questions user must answer:  0

use a custom theme but there is no GenericControls.template.php
Title: Re: reCAPTCHA for SMF
Post by: SD-X on January 12, 2019, 11:09:48 AM
Quote from: FaKiR on January 12, 2019, 10:48:18 AM
I tried to run reCAPTCHA for SMF without success

have error talking about letters not matching.

I tried to replace code as said by Sh@mbles (https://www.simplemachines.org/community/index.php?topic=213535.msg3992710#msg3992710) but have the same error.

my setup :

I want to use reCAPTCHA only

Use reCAPTCHA Verification System: checked

Visual verification image to display: none

Number of verification questions user must answer:  0

use a custom theme but there is no GenericControls.template.php
There are multiple code changes throughout this topic that you may need to apply.

It would be nice if someone would compile a new version from all of these past fixes and create a new package.
Title: Re: reCAPTCHA for SMF
Post by: FaKiR on January 12, 2019, 03:30:25 PM
Thank for quick reply SugarD-x

I have solved my problem with activate allow_url_fopen

it works fine now
Title: Re: reCAPTCHA for SMF
Post by: SD-X on January 13, 2019, 09:49:38 AM
Quote from: FaKiR on January 12, 2019, 03:30:25 PM
Thank for quick reply SugarD-x

I have solved my problem with activate allow_url_fopen

it works fine now
Awesome!
Title: Re: reCAPTCHA for SMF
Post by: Web Help Forums on January 14, 2019, 07:37:32 AM
Using this

$qIndex = ($verify_context['show_visual'] || $verify_context['use_recaptcha']) ? $i - 1 : $i;

Does not solve the issue for me.

I have enabled:
- visual captcha (SMF built-in)
- two custom answers (SMF built-in)
-  ReCaptcha...

Replacing the old code line with the one above simply hides ReCaptcha.




           
$qIndex = $verify_context['show_visual'] ? $i - 1 : $i;
$qIndex = $verify_context['use_recaptcha'] ? qIndex - 1 : qIndex;


Also does not work. Hides Recapcha and text is ":" for the custom questions/answers
Title: Re: reCAPTCHA for SMF
Post by: Web Help Forums on January 14, 2019, 06:49:26 PM
Clarification:


Second code bit seems to work when:
- 2 question
- ReCaptcha

But you have to disable visual ReCaptcha




Hint for those trying out to fix this manually:

Close/Open browser when trying to login to reinitiate a completely new session (at least on Edge a CTRL+F5 did not fully always make registration form reflect changes done in settings.)
Title: Re: reCAPTCHA for SMF
Post by: pocttopus on January 18, 2019, 03:40:37 AM
Hello folks,

Here is my setup:

Use reCAPTCHA Verification System: checked
Visual verification image to display: none
Number of verification questions user must answer:  0

If I set Number of verification questions user must answer: to 1 or 2 , there is only one additional question, but two fields for filling the answers. Is this normal behaviour or should I change something?
Installation process went fine, there were no made any changes. I suppose that configuration process (only with siteKey/secretKey) of reCaptcha does not require changes in the templates. ::)
Title: Re: reCAPTCHA for SMF
Post by: pocttopus on January 18, 2019, 08:45:16 AM
I had to remove this mod because there has been a registration of spam bots. Something was wrong with the setup.  ??? :-\
Title: Re: reCAPTCHA for SMF
Post by: Deaks on January 18, 2019, 09:24:48 AM
did you actually set the mod up and use a key?
Title: Re: reCAPTCHA for SMF
Post by: pocttopus on January 18, 2019, 09:29:51 AM
Quote from: BryanD on January 18, 2019, 09:24:48 AM
did you actually set the mod up and use a key?
Yes... I used the keys.
Title: Re: reCAPTCHA for SMF
Post by: Pafeu on February 20, 2019, 04:55:07 AM
Hello, does IT work with version 3 od recaptcha by Google? I indtalled IT yesterday and IT doesnt work. Im getting 'wrong site key' message, i made sure its the correct one. Version 2 od Google recaptcha works just fine with no issues.thanks for clarifi arion.
Title: Re: reCAPTCHA for SMF
Post by: Arantor on February 20, 2019, 05:23:06 AM
This uses version 2.
Title: Re: reCAPTCHA for SMF
Post by: Pafeu on February 20, 2019, 05:59:42 AM
Are there plans on making it compatible with v3? Thanks anyway.
Title: Re: reCAPTCHA for SMF
Post by: Arantor on February 20, 2019, 06:05:09 AM
Not at this time, I believe, nor the version built into SMF 2.1.
Title: Re: reCAPTCHA for SMF
Post by: Pafeu on February 23, 2019, 01:40:44 PM
one more question - how can i change the language for "im not a robot" text? Does it change automatically or is it specified somewhere in the settings? Can it be shown in two different languages? For example, for english speakers in english, and for germans in german?
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on February 24, 2019, 11:50:10 AM
For language, it is supposed to auto-detect the user's language based on their browser settings. You can only show one language at a time.

If you need to override auto detection, you will need to edit Sources/recaptcha/recaptcha-for-smf.php manually. Find the script tag in the file and add the hl parameter to the end of the URL with api.js. You can find information about what to display over at the official reCAPTCHA documentation (https://developers.google.com/recaptcha/docs/display#js_param). Note that this will force the language to the one you set, and disable auto-detection.
Title: Re: reCAPTCHA for SMF
Post by: Daheba on March 04, 2019, 08:02:54 AM
Hi everyone

I just installed it in my site, registred my site in google and added the two keys in the setup but google keeps saying that my site is not solvig reCAPTCHA solutions, is this all right??? Do I need to do anything more???

Thanks in advance

Nos vemos 8)
Title: Re: reCAPTCHA for SMF
Post by: Arantor on March 04, 2019, 08:06:43 AM
If I remember rightly, Google only gives you data on completions once you have a site busy enough to justify it.
Title: Re: reCAPTCHA for SMF
Post by: Daheba on March 04, 2019, 08:33:45 AM
Quote from: Arantor on March 04, 2019, 08:06:43 AM
If I remember rightly, Google only gives you data on completions once you have a site busy enough to justify it.

So when my site would have more traffic the message will dissappear, isnt' it?

Thank yo for your answer Arantor  ;) ;) ;)

Nos vemos 8)
Title: Re: reCAPTCHA for SMF
Post by: landyvlad on March 05, 2019, 12:22:29 AM
When you say "google keeps saying" what do you actually mean.  Do you mean in your recaptcha account, or when trying to register as a member or... ?
Title: Re: reCAPTCHA for SMF
Post by: Arantor on March 05, 2019, 01:47:02 AM
Quote from: landyvlad on March 05, 2019, 12:22:29 AM
When you say "google keeps saying" what do you actually mean.  Do you mean in your recaptcha account, or when trying to register as a member or... ?

There's a section in the Google recaptcha stuff where it shows you activity, but it only kicks in above a certain threshold.
Title: Re: reCAPTCHA for SMF
Post by: Daheba on March 05, 2019, 02:10:23 AM
I'm talking about my Recaptcha account in Google, sorry, i didn't specify that

Nos vemos  8)
Title: Re: reCAPTCHA for SMF
Post by: landyvlad on March 06, 2019, 05:31:06 PM
I see, thanks.  Unfortunately I can't offer any solution or insight :(
Title: Re: reCAPTCHA for SMF
Post by: Arantor on March 06, 2019, 05:32:38 PM
Quote from: landyvlad on March 06, 2019, 05:31:06 PM
I see, thanks.  Unfortunately I can't offer any solution or insight :(

There isn't a problem here to solve. Google just says it won't provide traffic details until a site has a certain level of activity; the above user does not yet have that level of activity, therefore no report.
Title: Re: reCAPTCHA for SMF
Post by: coolindark on March 15, 2019, 06:15:57 AM
Hello. It looks like ReCaptcha and questions are not working together right?
If I set ReCaptcha and question together; the question place is empty but answer box is shown...

Any idea?
Title: Re: reCAPTCHA for SMF
Post by: Shambles on March 15, 2019, 06:41:14 AM
Quote from: coolindark on March 15, 2019, 06:15:57 AM
If I set ReCaptcha and question together; the question place is empty but answer box is shown...

This has been answered a few times in the topic, with various suggestions working for some.
Title: Re: reCAPTCHA for SMF
Post by: Kindred on March 15, 2019, 07:00:25 AM
Did you actually write some questions?
Title: Re: reCAPTCHA for SMF
Post by: coolindark on March 16, 2019, 05:08:23 PM
Quote from: Shambles on March 15, 2019, 06:41:14 AM
Quote from: coolindark on March 15, 2019, 06:15:57 AM
If I set ReCaptcha and question together; the question place is empty but answer box is shown...

This has been answered a few times in the topic, with various suggestions working for some.

Please show me where then...
Coz i far as i see, there is no solution provided about this problem
Title: Re: reCAPTCHA for SMF
Post by: vbgamer45 on March 17, 2019, 12:07:52 PM
Quote from: Shambles on December 23, 2018, 03:03:06 PM
What's your antispam setup configured as?

Mine is set to:

Use reCAPTCHA Verification System:    checked
Visual verification image to display:    none
Number of verification questions user must answer:    2

With those, the amendment I have in GenericControls.template.php is

// Where in the question array is this question?
$qIndex = ($verify_context['show_visual'] || $verify_context['use_recaptcha']) ? $i - 1 : $i;



... and it all works fine. For me. With those settings.
Thanks that worked for me..
Title: Re: reCAPTCHA for SMF
Post by: axscorpio on May 22, 2019, 05:27:33 PM
Quote from: wwwserfer on May 05, 2018, 07:15:46 AM
Quote from: vbgamer45 on May 04, 2018, 06:27:29 PM
It could be be done just have copy the v2 code from smf2 to smf1

Thanks for the advice! Modified to 1.1.21
Working!
Hello.
Where can I download the code?
Title: Re: reCAPTCHA for SMF
Post by: Arantor on May 23, 2019, 05:23:30 PM
Given that 1.1.21 isn't getting security fixes, now would be a good time to consider an upgrade to 2.0...
Title: Re: reCAPTCHA for SMF
Post by: UbyXSofT on August 03, 2019, 11:32:18 AM
Quote from: vbgamer45 on March 17, 2019, 12:07:52 PM
Quote from: Shambles on December 23, 2018, 03:03:06 PM
What's your antispam setup configured as?

Mine is set to:

Use reCAPTCHA Verification System:    checked
Visual verification image to display:    none
Number of verification questions user must answer:    2

With those, the amendment I have in GenericControls.template.php is

// Where in the question array is this question?
$qIndex = ($verify_context['show_visual'] || $verify_context['use_recaptcha']) ? $i - 1 : $i;



... and it all works fine. For me. With those settings.
Thanks that worked for me..

Hi everyone,
I tried as described in the post above but it doesn't work for me...

I use SMF 2.0.15 and I have a problem, when I use the "recaptcha for smf" mod ... in the SMF AntiSpam settings i use these settings: "img. cattura0"... And I get this error: "img. cattura2"... I believe the error refers to the response field I don't answer "Img. cattura1", but I don't have any questions set, do you think I am wrong in the configuration? ... or is it a problem of the mod or of the theme or of SMF? ... Is there a way to solve this problem? Thanks for any suggestions

Title: Re: reCAPTCHA for SMF
Post by: Alpay on August 04, 2019, 10:08:09 AM
Hello

   Yep, have a problem me too..



Quote from: UbyXSofT on August 03, 2019, 11:32:18 AM
Quote from: vbgamer45 on March 17, 2019, 12:07:52 PM
Quote from: Shambles on December 23, 2018, 03:03:06 PM
What's your antispam setup configured as?

Mine is set to:

Use reCAPTCHA Verification System:    checked
Visual verification image to display:    none
Number of verification questions user must answer:    2

With those, the amendment I have in GenericControls.template.php is

// Where in the question array is this question?
$qIndex = ($verify_context['show_visual'] || $verify_context['use_recaptcha']) ? $i - 1 : $i;



... and it all works fine. For me. With those settings.
Thanks that worked for me..

Hi everyone,
I tried as described in the post above but it doesn't work for me...

I use SMF 2.0.15 and I have a problem, when I use the "recaptcha for smf" mod ... in the SMF AntiSpam settings i use these settings: "img. cattura0"... And I get this error: "img. cattura2"... I believe the error refers to the response field I don't answer "Img. cattura1", but I don't have any questions set, do you think I am wrong in the configuration? ... or is it a problem of the mod or of the theme or of SMF? ... Is there a way to solve this problem? Thanks for any suggestions


Title: Re: reCAPTCHA for SMF
Post by: Arantor on August 04, 2019, 10:09:55 AM
I think this mod reuses the language string from visual verification questions to avoid having to deal with translations and when this was originally written, it made sense because you had to type things in that matched the text that was there.
Title: Re: reCAPTCHA for SMF
Post by: UbyXSofT on August 04, 2019, 10:31:52 AM
I'm trying to see if I can fix it somehow, now I can not see the input box that is under the captcha, but I still get the error report, any idea to bypass this error? ... I think that many people use this Mod, it is not possible that they cannot be used, how did they solve the others? surely there is a way, give us a hand to make this mod work
Title: Re: reCAPTCHA for SMF
Post by: Arantor on August 04, 2019, 10:32:55 AM
...if you don't fill in the CAPTCHA correctly you get the 'you did not type in the correct things' error, that's how this mod works for historical, technical reasons.
Title: Re: reCAPTCHA for SMF
Post by: UbyXSofT on August 04, 2019, 07:42:06 PM
Quote from: Arantor on August 04, 2019, 10:32:55 AM
...if you don't fill in the CAPTCHA correctly you get the 'you did not type in the correct things' error, that's how this mod works for historical, technical reasons.

That's not how Aranton works for me. Even if you enter the captcha correctly, that error message is displayed, so it is impossible to register. Sorry for my English ... I don't know if I explained myself well
Title: Re: reCAPTCHA for SMF
Post by: Shambles on August 05, 2019, 02:28:35 AM
Quote from: UbyXSofT
I'm trying to see if I can fix it somehow, now I can not see the input box that is under the captcha, but I still get the error report, any idea to bypass this error? ... I think that many people use this Mod, it is not possible that they cannot be used, how did they solve the others? surely there is a way, give us a hand to make this mod work

https://www.simplemachines.org/community/index.php?topic=213535.msg3992720#msg3992720

You'd do worse than reading other posts earlier in this topic as this issue has been covered a few times, with good results for many.
Title: Re: reCAPTCHA for SMF
Post by: UbyXSofT on August 06, 2019, 09:42:47 PM
Quote from: Shambles on August 05, 2019, 02:28:35 AM
Quote from: UbyXSofT
I'm trying to see if I can fix it somehow, now I can not see the input box that is under the captcha, but I still get the error report, any idea to bypass this error? ... I think that many people use this Mod, it is not possible that they cannot be used, how did they solve the others? surely there is a way, give us a hand to make this mod work

https://www.simplemachines.org/community/index.php?topic=213535.msg3992720#msg3992720

You'd do worse than reading other posts earlier in this topic as this issue has been covered a few times, with good results for many.


Hi Shambles, i had already read the various solutions tried, but as written above for me they didn't work, and so for the moment I uninstalled the mod
Title: Re: reCAPTCHA for SMF
Post by: Alpay on August 16, 2019, 03:20:20 AM
Quote from: Arantor on August 04, 2019, 10:09:55 AM
I think this mod reuses the language string from visual verification questions to avoid having to deal with translations and when this was originally written, it made sense because you had to type things in that matched the text that was there.

@青山 素子 ; Can you find a solution to this?

Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on August 19, 2019, 02:30:55 PM
Quote from: Alpay on August 16, 2019, 03:20:20 AM
Quote from: Arantor on August 04, 2019, 10:09:55 AM
I think this mod reuses the language string from visual verification questions to avoid having to deal with translations and when this was originally written, it made sense because you had to type things in that matched the text that was there.

@青山 素子 ; Can you find a solution to this?

I haven't had much time to do anything non-work-related recently. The only way to fix the language issue is to make a unique error message for the reCAPTCHA failure, which means it will be only in English. The existing message, while not ideal, at least gets translated versions.

Anyone who wants to contribute fixes is welcome to do so. Just send a patch via GitHub PR if you want.
Title: Re: reCAPTCHA for SMF
Post by: Yorel on August 20, 2019, 04:26:51 AM
Hi:

I see reCAPTCHA only shows up in the registration form, is it possible to configure the mod to shows it up when an user already registered tries to login?.

Thanks
Title: Re: reCAPTCHA for SMF
Post by: d3vcho on August 20, 2019, 04:59:19 AM
It will require some more coding that's for sure, but what would be the goal of what you ask?
Title: Re: reCAPTCHA for SMF
Post by: Yorel on August 20, 2019, 05:43:02 AM
Quote from: d3vcho(); on August 20, 2019, 04:59:19 AM
It will require some more coding that's for sure, but what would be the goal of what you ask?

Cause we're suffering a lot of attempts to decode the users' passwords. As we have, also, a private tracker, they're trying to know the password of the user in the forum that, the most of the cases, it'll be the same in the tracker.
Title: Re: reCAPTCHA for SMF
Post by: szinski on August 21, 2019, 01:19:17 PM
I found a bug that prevents the verification questions from displaying properly (if enabled).

This line:

$qIndex = $verify_context['show_visual'] ? $i - 1 : $i;


Needs to be changed to:

$qIndex = ($verify_context['show_visual'] || $verify_context['use_recaptcha']) ? $i - 1 : $i;


in GenericControls.template.php
Title: Re: reCAPTCHA for SMF
Post by: Shambles on August 21, 2019, 01:32:10 PM
Quote from: szinski on August 21, 2019, 01:19:17 PM
I found a bug that prevents the verification questions from displaying properly (if enabled).

This line:

$qIndex = $verify_context['show_visual'] ? $i - 1 : $i;


Needs to be changed to:

$qIndex = ($verify_context['show_visual'] || $verify_context['use_recaptcha']) ? $i - 1 : $i;


in GenericControls.template.php


https://www.simplemachines.org/community/index.php?topic=213535.msg3992720#msg3992720
Title: Re: reCAPTCHA for SMF
Post by: szinski on August 21, 2019, 01:38:04 PM
Thanks, looks I missed that and had to figure it out on my own.
Title: Re: reCAPTCHA for SMF
Post by: shadav on October 03, 2019, 11:26:27 AM
I'm having an issue :) (imagine that)

so I turned of smf captcha and I turned off the questions
and enabled this mod

but when trying to register I keep getting

The following errors were detected in your registration. Please correct them to continue:
Please enter the verification code below to continue to the results.

yes I clicked the box that i'm not a robot but it still just keeps giving this error..... if i turn this mod off (no captcha's) registration works....but obviously I don't want to do that

2.0.15 (many many mods)
Title: Re: reCAPTCHA for SMF
Post by: shadav on October 19, 2019, 01:55:51 PM
Quote from: shadav on October 03, 2019, 11:26:27 AM
I'm having an issue :) (imagine that)

so I turned of smf captcha and I turned off the questions
and enabled this mod

but when trying to register I keep getting

The following errors were detected in your registration. Please correct them to continue:
Please enter the verification code below to continue to the results.

yes I clicked the box that i'm not a robot but it still just keeps giving this error..... if i turn this mod off (no captcha's) registration works....but obviously I don't want to do that

2.0.15 (many many mods)

sorry to bump this, but can anyone try to help me with this?
I am not able to use smf captcha (not sure what broke that) and now this mod no longer works (not sure what broke it either)
Title: Re: reCAPTCHA for SMF
Post by: dodos26 on December 14, 2019, 12:51:17 PM
Quote from: Shambles on August 21, 2019, 01:32:10 PM
Quote from: szinski on August 21, 2019, 01:19:17 PM
I found a bug that prevents the verification questions from displaying properly (if enabled).

This line:

$qIndex = $verify_context['show_visual'] ? $i - 1 : $i;


Needs to be changed to:

$qIndex = ($verify_context['show_visual'] || $verify_context['use_recaptcha']) ? $i - 1 : $i;


in GenericControls.template.php


https://www.simplemachines.org/community/index.php?topic=213535.msg3992720#msg3992720


szinski this work for me:
$qIndex = ($verify_context['show_visual'] || $verify_context['use_recaptcha']) ? $i - 1 : $i;
Shambles this dont work for me:
$qIndex = $verify_context['use_recaptcha'] ? qIndex - 1 : qIndex;

How to create Recaptha + Visual + Question?
Title: Re: reCAPTCHA for SMF
Post by: SN on February 24, 2020, 12:58:10 PM
Quote from: UbyXSofT on August 03, 2019, 11:32:18 AM
Quote from: vbgamer45 on March 17, 2019, 12:07:52 PM
Quote from: Shambles on December 23, 2018, 03:03:06 PM
What's your antispam setup configured as?

Mine is set to:

Use reCAPTCHA Verification System:    checked
Visual verification image to display:    none
Number of verification questions user must answer:    2

With those, the amendment I have in GenericControls.template.php is

// Where in the question array is this question?
$qIndex = ($verify_context['show_visual'] || $verify_context['use_recaptcha']) ? $i - 1 : $i;



... and it all works fine. For me. With those settings.
Thanks that worked for me..

Hi everyone,
I tried as described in the post above but it doesn't work for me...

I use SMF 2.0.15 and I have a problem, when I use the "recaptcha for smf" mod ... in the SMF AntiSpam settings i use these settings: "img. cattura0"... And I get this error: "img. cattura2"... I believe the error refers to the response field I don't answer "Img. cattura1", but I don't have any questions set, do you think I am wrong in the configuration? ... or is it a problem of the mod or of the theme or of SMF? ... Is there a way to solve this problem? Thanks for any suggestions

Im getting the same issue also. I tried the suggested solutions. Still not working for me
Title: Re: reCAPTCHA for SMF
Post by: statusjpn on February 25, 2020, 10:28:14 AM
Tried @Shambles' fix and it only fixed part of the issue.

1) Previously when i enable reCAPTCHA and had a question, the question appeared blank with only the answer box - this has now been FIXED with @Shambles' post and the security question appears correctly

2) However, after clearing the reCAPTCHA and answering the security question, it still prompts the error:

QuoteThe following errors were detected in your registration. Please correct them to continue:
The letters you typed don't match the letters that were shown in the picture.

Anyone has a fix for problem #2?
Title: Re: reCAPTCHA for SMF
Post by: cortez on March 20, 2020, 06:34:50 AM

https://xxx/forum/index.php?action=register2
2: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0
File: /home/xxx/public_html/forum/Sources/recaptcha/ReCaptcha/RequestMethod/Post.php
Line: 68


with following:

https://xxx/forum/index.php?action=register2
2: file_get_contents(https://www.google.com/recaptcha/api/siteverify): failed to open stream: no suitable wrapper could be found
File: /home/xxx/public_html/forum/Sources/recaptcha/ReCaptcha/RequestMethod/Post.php
Line: 68


fopen is "on"
This happened after update to 2.0.17 and enabling PHP 7.2

Any ideas?

Thanks
Title: Re: reCAPTCHA for SMF
Post by: Shambles on March 20, 2020, 07:30:06 AM
Quotefopen is "on"

You need to confirm that by doing a phpinfo and examining the output.

What is a phpinfo() file? (https://wiki.simplemachines.org/smf/What_is_a_phpinfo()_file)
Title: Re: reCAPTCHA for SMF
Post by: cortez on March 20, 2020, 11:02:02 AM
Actually hosting overrides fopen parameter to be off for security reasons, so you are right.

There are apparently fixes for recaptcha which removes that dependency on fopen parameter:
https://github.com/q2a/question2answer/issues/300
Title: Re: reCAPTCHA for SMF
Post by: cortez on March 20, 2020, 12:04:03 PM
Fixed by integrating latest request/response files from github:
https://github.com/google/recaptcha/tree/master/tests/ReCaptcha

Error not occuring anymore, fopen is still off for logical security reasons.
Title: Re: reCAPTCHA for SMF
Post by: Thaxos on March 26, 2020, 02:37:44 AM
After installing this mod it drastically cut down on the spambots however I still find my forum receiving around 1-3 spam users a day...

Verified that the reCaptcha is indeed working on registration, but some are getting by somehow.

Any thoughts on how this might be occurring?
Title: Re: reCAPTCHA for SMF
Post by: Kolya on March 29, 2020, 08:52:28 AM
It happens because these "spambots" are actually humans. There is a whole industry in low wage countries that employs people to act as spammers or to let spambots into websites, past any bot counter measures.

Accordingly these cannot be beaten with automated tests. They can however be beaten rather easily with human interaction. For example you can add a text field to your registration form (doesn't require any mods) and ask people to explain why they want to join your forum. Then review these submissions.
Title: Re: reCAPTCHA for SMF
Post by: Thaxos on April 08, 2020, 01:21:23 AM
Unfortunately the volume of users registering makes that prohibitive due to how much time that would take to review pending new users.
Title: Re: reCAPTCHA for SMF
Post by: 青山 素子 on April 19, 2020, 12:36:29 PM
The older image-based (or audio-based) reCAPTCHA methods (known now as reCAPTCHA v2) is broken because human labor in some countries is cheap and spammers have been using humans to solve them for over a decade. Heck, this article is nearly 12 years old: Inside India's CAPTCHA solving economy (https://www.zdnet.com/article/inside-indias-captcha-solving-economy/).

The newer reCAPTCHA v3 (https://webmasters.googleblog.com/2018/10/introducing-recaptcha-v3-new-way-to.html) is an interesting development, but due to the way SMF works, not an easy thing to implement. At the very least, I don't have the time to implement it. It's also partly why some of the remaining issues with this modification haven't been revisited.

The best anti-spam solution to SMF at the present time is to use the anti-spam question feature. Put in some solid questions about your forum, something that's not general knowledge (no "what color is the sky", more "name the anime series created by Rumiko Takahashi that starts with the letter U") and might require either knowledge of your forum's subject or at least some searching. Spamming is a high-volume low-cost business. Spamming software will often have databases of general knowledge questions and answers for forums that use this type of protection, but not for more specialized ones. If you do this, you'll have a lot less of a spam problem. Just change your questions out once you start noticing an uptick in spammers.
Title: Re: reCAPTCHA for SMF
Post by: cortez on April 26, 2020, 03:56:04 PM
I finally managed to fix your mod to work properly with fopen=0 with following change in Subs-Editor.php:

$recaptcha = new \ReCaptcha\ReCaptcha($modSettings['recaptcha_private_key'], new \ReCaptcha\RequestMethod\SocketPost());

I've tested it now and with SocketPost and fopen=0 works fine.

Can you please update mod? Since fopen=on is security risk.

Thanks.


Title: Re: reCAPTCHA for SMF
Post by: sirfpsycho on July 23, 2020, 02:07:56 AM
The following error or errors occurred while posting this message:
The letters you typed don't match the letters that were shown in the picture.

From some days I am getting this error. Before it was working fine. I have deleted the site from google captcha and added again but still same issue. I am using v2 because v3 is not working.
Title: Re: reCAPTCHA for SMF
Post by: Electrohaxer1971 on October 14, 2020, 09:40:31 AM
Hi there guys,

Btw, I have no mods installed, just this one that has been downloaded (2.0.0) but not installed. And I'm using SMF 2.0.17.

I'm trying to install reCAPTCHA and it's saying that there is an error in the package installation. Specifically, it has a problem with the line in this file called GenericControls.template.php. It wants to replace the line that says:

if ($i == 0 && $verify_context['show_visual'])

With:

elseif ($i == 0 && $verify_context['show_visual'])

If I'm reading this correctly, the only thing that is changing is 'if' to 'elseif'. But here's the funny thing, and maybe the reason why it's failing on this replace check, the line it wants to replace doesn't exist. This line has already been changed to 'elseif'. I downloaded the file and did a search. Is this why it's failing? Should I just go ahead and say 'Install Now' despite the "error"?

Title: Re: reCAPTCHA for SMF
Post by: Мel on October 18, 2020, 05:45:42 AM
Quote from: sirfpsycho on July 23, 2020, 02:07:56 AM
The following error or errors occurred while posting this message:
The letters you typed don't match the letters that were shown in the picture.

From some days I am getting this error. Before it was working fine. I have deleted the site from google captcha and added again but still same issue. I am using v2 because v3 is not working.
The same error appeared recently.
Title: Re: reCAPTCHA for SMF
Post by: white-k on February 03, 2021, 12:22:43 PM
Quote from: Мel on October 18, 2020, 05:45:42 AM
Quote from: sirfpsycho on July 23, 2020, 02:07:56 AM
The following error or errors occurred while posting this message:
The letters you typed don't match the letters that were shown in the picture.

From some days I am getting this error. Before it was working fine. I have deleted the site from google captcha and added again but still same issue. I am using v2 because v3 is not working.
The same error appeared recently.

I also get this.
Has anyone found a solution to this?
Title: Re: reCAPTCHA for SMF
Post by: SD-X on March 10, 2021, 04:02:05 PM
Don't quote me on this, but it might be worth ensuring your keys still work. I believe one of my forums had a similar issue way back when and I issued new keys, which resolved it. ReCaptcha has been through a lot of changes lately because of Google, so it wouldn't surprise me if compatibility with older keys was broken somewhere along the way. Worst case scenario, if that doesn't fix it, you can at least rule that issue out.
Title: Re: reCAPTCHA for SMF
Post by: Мel on April 26, 2021, 03:54:04 PM
The keys were fine.
The mod, on the other hand, is not.
Title: Re: reCAPTCHA for SMF
Post by: cmcau on March 25, 2022, 05:37:18 AM
Is there a problem with this mod on SMF 2.0.18 ?
I've installed the mod, I've added reCAPTCHA v2 keys and I'm trying to disable the inbuilt image verification system but it just doesn't "save", meaning every time I change the image verification to None and save, then it doesn't save.

I don't have any verification questions if that helps ?
Title: Re: reCAPTCHA for SMF
Post by: loki66 on July 11, 2022, 02:30:30 PM
I have the same issue. Seems no one doing any support on that mod. Maybe its time to migrate to 2.1 ?
Title: Re: reCAPTCHA for SMF
Post by: dodos26 on July 17, 2022, 08:57:14 AM
Quote from: loki66 on July 11, 2022, 02:30:30 PMI have the same issue. Seems no one doing any support on that mod. Maybe its time to migrate to 2.1 ?

    GenericControls.template.php:
        Found:
            $qIndex = $verify_context['show_visual'] ? $i - 1 : $i;

        Replace to:
            $qIndex = ($verify_context['show_visual'] || $verify_context['use_recaptcha']) ? $i - 1 : $i;