Dave Burke : Freelance .NET Web Developer specializing in Online Communities

CSBlogs : adding CAPTCHA support

Okay, I'm nearing the end of my pre-release todo list now that CAPTCHA is working in CSBlogs.  Time to do some last minute fiddling with formatting and such, swallow hard, reload the database with my current dotText and nGallery data, and get this turd online. 

About CAPTCHA.  The mod is easy as the dotText mod.  I guess when you start with the right code (BrainJar's, not mine), and put it in the right places, things generally work.  For my history and past posts on CAPTCHA please search my blog.  Pictures, mod source.zip, everything.

The procedure is the same as dotText: Generate a random number for an image which displays on the comment form, write that number to a cookie and add a text box for the user to enter the generated number.  OnSubmit() compares the textbox with the cookie and if it matches, YouAreHuman.

Since I've posted so much on CAPTCHA in the past, I'll let you grab the app source from my Code Camp 3 presentation source or elsewhere.  What's new, of course, is the CS Skin-CommentForm.ascx and CommunityServer.Blogs.Controls.CommentForm class changes.  You'll find those in this zip.  (I've made other minor changes to the files, so I recommend taking what you need from them rather than replace your existing CommentForm skin and class.)  Hopefully you'll be seeing CSBlogs CAPTCHA in action right here in the next few days, unless someone adds it to their CSBlog in the meantime.  Personally, I haven't seen CAPTCHA on a CS blog yet.  This is one of those things those Beefcakes over at CodeBetter.com will soon add to their CS community blog, no doubt.

 

Comments (6) | Post RSS RSS comment feed

Posted on 3/28/2005 3:05:00 PM by Dave Burke
Categories: Community Server
Tags:

Related posts

Comments (6) -

3/29/2005 12:53:10 PM Permalink

Hey Dave, I saw on your home page that you're having problems.  I'm going to link to this blog entry in the CS forums though - so don't take it down.  Wink

P.S - I must be the first guy to post a comment in your new CS blog huh?

Tim |

3/29/2005 1:15:11 PM Permalink

I THINK you're the first, Tim.  But then again, my CS email isn't working so I didn't get a notice of your new comment.  Email functionality is one of those difficult things to test before going live...  Thanks for saying hello on my new blog!

admin |

3/30/2005 9:52:32 AM Permalink

Congratulations on going live with CS! And with all those great tweaks! I hope to include many of them in my site once I get the re-skinning done (designing is so much slower than coding =).

I noticed a flood of "new" posts from your RSS and figured you must have flipped the switch. Email functionality in CS has been a little flaky for me as well. Sometimes I get notified and sometimes I don't. Need to look into that...

Kevin Harder |

3/30/2005 11:59:27 AM Permalink

Kevin and Stefano, thanks for the welcome and the kind words!  Kevin, I could not have done this without your fabulous (seriously) migration app.  And you're right about designing being much slower than coding!  I'm working on the comment notification piece now.  Nasty hack, but I think I've got it.  Will post when I do.

daveburke |

3/31/2005 3:27:05 PM Permalink

Nice work Dave... I have actually gotten a couple of comment spams on my cs blog, but I did have a few even with the captcha on the .Text site also...  I was just thinking to myself I should bring captcha back...  I was also thinking It might be nice to leave the comment form up by default (for non mobile browsers anyways)  I really dont think the extra clicks encourage users to comment as freely...

Dan

Dan Bartels |

3/31/2005 3:31:47 PM Permalink

I agree with the extra click, Dan.  One of those little CS UI differences from dotText that makes me miss the more simpler UI in dotText.  Of course, with the extra click we also get Ratings and Tracking in CS...

Let me know if you need any assist with captcha.

Dave Burke |


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke