Advertisement:

Author Topic: reCAPTCHA for SMF  (Read 373696 times)

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,036
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
reCAPTCHA for SMF
« on: December 28, 2007, 12:16:40 PM »
Link to Mod

About
-----
This modification allows you to use the reCAPTCHA verification system
(http://recaptcha.net/) instead of the built-in Visual Verification system. It
supports SMF 1.1.2 and newer.

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 instead of built-in verification system
 - Support for built-in reCAPTCHA themes


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

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


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

The reCAPTCHA PHP library is licensed under the MIT license.


Acknowledgements
----------------
"SMF" and "Simple Machines" are trademarks of Simple Machines LLC. "reCAPTCHA"
and "CAPTCHA" are trademarks of Carnegie Mellon University.
Motoko-chan
Director, Simple Machines

Just because it's pouring down doesn't mean we're gonna drown. There's a time when all you can say is let it rain - Mat Kearney (Let It Rain)

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


Offline jossanaijr

  • SMF Hero
  • ******
  • Posts: 2,131
  • Gender: Male
    • Netbook Forum
Re: reCAPTCHA for SMF
« Reply #1 on: December 29, 2007, 05:56:50 AM »
What's the advantage of this?

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: reCAPTCHA for SMF
« Reply #2 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.

Offline Marook

  • Jr. Member
  • **
  • Posts: 187
  • Gender: Male
    • marook-online.de
Re: reCAPTCHA for SMF
« Reply #3 on: December 29, 2007, 12:33:52 PM »
Great Idea ! Never heard before about reCaptcha but really great ! Btw, also great mod ;)
SMF Rulez ;) | Meet me home ! | My Mods

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: reCAPTCHA for SMF
« Reply #4 on: December 29, 2007, 12:36:15 PM »
So its doing something for a worthy cause at the same time.

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,036
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: reCAPTCHA for SMF
« Reply #5 on: December 29, 2007, 12:57:08 PM »
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

Just because it's pouring down doesn't mean we're gonna drown. There's a time when all you can say is let it rain - Mat Kearney (Let It Rain)

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


Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: reCAPTCHA for SMF
« Reply #6 on: December 29, 2007, 01:13:56 PM »
PM sent*

;)
« Last Edit: December 29, 2007, 01:47:11 PM by karlbenson »

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,036
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: reCAPTCHA for SMF
« Reply #7 on: December 29, 2007, 01:28:11 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

Just because it's pouring down doesn't mean we're gonna drown. There's a time when all you can say is let it rain - Mat Kearney (Let It Rain)

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


Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: reCAPTCHA for SMF
« Reply #8 on: December 29, 2007, 01:48:08 PM »
Sorry.

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

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,036
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: reCAPTCHA for SMF
« Reply #9 on: December 29, 2007, 02:10:42 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

Just because it's pouring down doesn't mean we're gonna drown. There's a time when all you can say is let it rain - Mat Kearney (Let It Rain)

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


Offline fiver

  • Jr. Member
  • **
  • Posts: 319
Re: reCAPTCHA for SMF
« Reply #10 on: January 11, 2008, 02:09:24 AM »
I just clicked on the link to recaptcha.net and got this

Quote
Problem 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?
« Last Edit: January 11, 2008, 02:11:31 AM by fivearts »

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,036
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: reCAPTCHA for SMF
« Reply #11 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.
Motoko-chan
Director, Simple Machines

Just because it's pouring down doesn't mean we're gonna drown. There's a time when all you can say is let it rain - Mat Kearney (Let It Rain)

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


Offline Aileen

  • Full Member
  • ***
  • Posts: 474
  • Gender: Female
Re: reCAPTCHA for SMF
« Reply #12 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

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,036
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: reCAPTCHA for SMF
« Reply #13 on: January 13, 2008, 07:19:05 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.


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

Just because it's pouring down doesn't mean we're gonna drown. There's a time when all you can say is let it rain - Mat Kearney (Let It Rain)

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


Offline gamerxgirl

  • Semi-Newbie
  • *
  • Posts: 56
  • Gender: Female
    • Xenaverse.net
Re: reCAPTCHA for SMF
« Reply #14 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.


It's very likely that I did something wrong when making the edits manually. My registration page also becomes a little wonky.
« Last Edit: January 13, 2008, 08:46:15 PM by gamerxgirl »
Xenaverse.net Xena: Warrior Princess Forums | Gallery | Reviews | Fan Fiction

Offline johnathanamber

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
    • TSG Computers
Re: reCAPTCHA for SMF
« Reply #15 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
Do you need technical guidance? Maybe some prayer or other support? Please visit my site:


Offline johnathanamber

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
    • TSG Computers
Re: reCAPTCHA for SMF
« Reply #16 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:

Code: [Select]
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:


Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,036
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: reCAPTCHA for SMF
« Reply #17 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.
Motoko-chan
Director, Simple Machines

Just because it's pouring down doesn't mean we're gonna drown. There's a time when all you can say is let it rain - Mat Kearney (Let It Rain)

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


Offline johnathanamber

  • Semi-Newbie
  • *
  • Posts: 50
  • Gender: Male
    • TSG Computers
Re: reCAPTCHA for SMF
« Reply #18 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
Do you need technical guidance? Maybe some prayer or other support? Please visit my site:


Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,036
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: reCAPTCHA for SMF
« Reply #19 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.
Motoko-chan
Director, Simple Machines

Just because it's pouring down doesn't mean we're gonna drown. There's a time when all you can say is let it rain - Mat Kearney (Let It Rain)

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