reCAPTCHA Extension+Plugin (NEW)
Posted: 13 June 2008 11:38 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007

So rewrote my old extension/plugin.


Features:
-Per weblog recaptcha settings
-Per weblog recaptcha private key (if left empty, default one will be used)

You NEED the API keys: http://recaptcha.net/whyrecaptcha.html
-Public Key
-Private Key

Step one: Upload the extension/plugin/language files
Step two: Activate the extension and go into the settings and insert your DEFAULT PRIVATE KEY
Step three: In your CP, go to: Admin > Weblog Administration > Weblog Management and edit each recaptcha settings under “Comment Posting Preferences”
Step four: Go to your template and add the variable to your comment form:
{exp:recaptcha publickey=“YOUR_PUBLIC_KEY” weblog=“some_weblog”}
Step five: Try it out
Step six: Report bugs, feature request etc

publickey=”“ and weblog=”“ are required parameters. Else it will not work.

Depending on your weblog settings the recaptcha will appear/check.
If your weblog settings states that no recaptcha should be done, the {exp:recaptcha} tag will return nothing and no recaptcha check will be done. So no need for {if captcha} stuff.

Take it for a spin.

P.S. Turn off CAPTCHA in your weblog “Comment Posting Preferences” settings (this extension uses it’s own stuff)

Image Attachments
screen.jpg
Click thumbnail to see full-size image
File Attachments
recaptcha_2.1.0.zip  (File Size: 24KB - Downloads: 104)
 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 13 June 2008 12:02 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  247
Joined  04-12-2008

Funny, I just started coding a Recaptcha extension myself but I guess you’re first so yours should do just fine wink

One small typo: Prvate Key (Extension Settings)

EDIT: Looks good, what you might need to mention is to turn off the default captcha behaviour for a weblog if you want to use this.

What I initially had in mind was to use the

create_captcha_start

hook to modify all the captchas throughout EE to use ReCaptcha but this is however not possible as no hooks are present for gallery comments. All captchas in EE are checked against the exp_captcha table based on the post var ‘captcha’ and you can’t change this in the html ReCaptcha is giving you (without having to use js).

Another thing you might use is to display the

$resp->error

instead of the default

$LANG->line('captcha_incorrect')

sentence, but then again, this is not translatable easily.

Other than that, great work!

P.S. Check the plugin docs, it’s still saying

...

#############################
### {exp:paginatee:clean} ###
#############################

...

which probably comes from another of your extensions wink

 Signature 

Designchuchi | Twitter

URL Field Extension
Required Category Extension
DC FreeForm GeoIP Extension

Profile
 
 
Posted: 13 June 2008 12:23 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  174
Joined  10-28-2007

Works awesome, couple things as per your suggestion.  You have to turn off “captcha” in your web log preferences and remove any {if captcha} blocks.

Another feature request would be to have a way to support {if captcha} so you can turn captcha off for members who logged in.  At least have the option too, you may want to keep it on regardless in some situations but usually you want to turn it off for your members.

Also, if you are signed in as a member, it will auto accept the comment rather than allow you to moderate it.

Profile
 
 
Posted: 14 June 2008 03:52 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007

Updated extension/plugin to 2.0.0
With nice features smile
Enjoy!

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 14 June 2008 03:54 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  247
Joined  04-12-2008

What has changed?

 Signature 

Designchuchi | Twitter

URL Field Extension
Required Category Extension
DC FreeForm GeoIP Extension

Profile
 
 
Posted: 14 June 2008 04:44 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007
peschehimself - 14 June 2008 03:54 PM

What has changed?

Hey,

Recaptcha settings per weblog.

Like:
non-member: reCAPTHA YES
member: reCAPTHA NO

See first post. I edited it, and included a screenshot

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 15 June 2008 03:42 PM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007

Updated plugin to 2.1.0

-publickey=”” and weblog=”” are now required parameters. Else it will not work.

Thanks “Lexan Systems” for catching that bug.

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 16 June 2008 09:12 AM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  137
Joined  05-25-2002

Hi Victor. Thanks for the extension. In your v.2.1.0 missing language file.

 Signature 

Caleydon Media

+ CM Strange URL Interpreter
+ CM Textarea Resizer
+ CM Template Editor (EditArea)

Profile
 
 
Posted: 16 June 2008 05:07 PM   [ Ignore ]   [ # 8 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007

added the language file

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 18 June 2008 10:01 PM   [ Ignore ]   [ # 9 ]  
Grad Student
Rank
Total Posts:  84
Joined  10-02-2006

Thanks for making this!

FYI, there was whitespace after the closing PHP tag in the language file, which caused “header already sent” errors when I tested. Removing the whitespace fixed my copy.

Profile
 
 
Posted: 28 June 2008 01:35 PM   [ Ignore ]   [ # 10 ]  
Summer Student
Avatar
Total Posts:  27
Joined  05-29-2007

Can this be modified to work with a “tell-a-friend” email form?

Profile
 
 
Posted: 02 July 2008 05:17 PM   [ Ignore ]   [ # 11 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  160
Joined  06-24-2007

Working great with AnotherMuse’s fix.  Nice Victor!

 Signature 

Web Inception
Websites that work for you.
http://www.webinception.com

Profile
 
 
Posted: 15 August 2008 10:21 AM   [ Ignore ]   [ # 12 ]  
Summer Student
Total Posts:  1
Joined  12-19-2007

Hi,

As far as I can tell, this plugin/extension doesn’t replace the captcha on the user registration page with a recaptcha captcha, is this correct?

I’ve installed the plugin+extension and tried to use the extension tag in my user registration form, but it just outputs the tag in plain text.

Having had a look at the code, it appears that I need to modify it to register the hook for member_member_register before I can use it on the user registration page. Is this correct?

Are there any extensions or easier ways to implement reCaptcha on the member registration page? or is modifying this plugin in the way I’ve described the best way to achieve this?

Thanks

Lee

Profile
 
 
Posted: 15 August 2008 11:37 AM   [ Ignore ]   [ # 13 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007

Currently the extension only works in {exp:weblog:entries} tags.

For Gallery/Tell-Friend/Member Registration you need to modify the extension.
Maybe in the future i can add them.
But i am waiting for EE 2.0 before making any changes to my modules.

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 07 November 2008 10:38 AM   [ Ignore ]   [ # 14 ]  
Summer Student
Total Posts:  17
Joined  02-16-2007

Hey, I really dig this extension, but having followed all the precautions (I think), I still have a major error. Comments post successfully and redirect back to the correct page, but the page doesn’t render. Correct URL and all, but blank page.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65095 Total Logged-in Users: 60
Total Topics: 82241 Total Anonymous Users: 34
Total Replies: 442003 Total Guests: 258
Total Posts: 524244    
Members ( View Memberlist )