News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

reCAPTCHA for SMF

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

Previous topic - Next topic

青山 素子

Link to Mod

About
-----
This modification allows you to use 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
--------

  • Use reCAPTCHA on your forum in place of or in combination with the built-in verification options.
  • Support for built-in reCAPTCHA themes


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
------------

  • The error messages are the built-in ones, so they will talk about letters not being filled in or matching.


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.
Motoko-chan
Director, Simple Machines

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


jossanaijr

What's the advantage of this?

karlbenson

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.

Marook

Great Idea ! Never heard before about reCaptcha but really great ! Btw, also great mod ;)
SMF Rulez ;) | Meet me home ! | My Mods

karlbenson

So its doing something for a worthy cause at the same time.

青山 素子

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.
Motoko-chan
Director, Simple Machines

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


karlbenson

#6
PM sent*

;)

青山 素子

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?
Motoko-chan
Director, Simple Machines

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


karlbenson

Sorry.

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

青山 素子

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.
Motoko-chan
Director, Simple Machines

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


fiver

#10
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?

青山 素子

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.
Motoko-chan
Director, Simple Machines

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


Aileen

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

青山 素子

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.
Motoko-chan
Director, Simple Machines

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


gamerxgirl

#14
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.


It's very likely that I did something wrong when making the edits manually. My registration page also becomes a little wonky.
Xenaverse.net Xena: Warrior Princess Forums | Gallery | Reviews | Fan Fiction

johnathanamber

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
Do you need technical guidance? Maybe some prayer or other support? Please visit my site:


johnathanamber

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
Do you need technical guidance? Maybe some prayer or other support? Please visit my site:


青山 素子

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.
Motoko-chan
Director, Simple Machines

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


johnathanamber

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
Do you need technical guidance? Maybe some prayer or other support? Please visit my site:


青山 素子

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.
Motoko-chan
Director, Simple Machines

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


Advertisement: