Posted on 9/5/2008 12:01:46 AM by Justin Etheredge
So, I have been having problems for a while now with my blog not accepting comments from people that don't enter a website into the comment form. Well, I wasn't sure why this was happening, and I finally had a chance to trace down the issue. It took all of 10 seconds once I remembered to look for it, and embarrassingly it was my own code. Mea Culpa. Anyways, it all had to do with the fact that I was not checking the website property on the comment object for null before I made this assignment:
askimetComment.CommentAuthorUrl = comment.Website.OriginalString;
Geez. I have no one to blame but myself for not testing this properly, and I sincerely apologize to anyone that used the extension and has lost comments due to it. I have fixed it and updated the latest zip. You can grab it here:
BlogEngine.net 1.4 Akismet Extension
Posted on 7/8/2008 9:01:33 PM by Justin Etheredge
Just take the two files and drop them into your App_Code\Extensions folder. You can then go into the Admin and you should see it under the extension tab. Just click on edit to change the settings and enter your API Key and Blog url and you should be ready to go! This extension should also be backwards compatible with BlogEngine.net 1.3.
You can go download it here.
Posted on 12/12/2007 8:43:00 PM by Justin Etheredge
I had been long planning on adding an extension to BlogEngine.net for Askimet, but I had been talked out of it by the fact that I wasn't really getting any comment spam. Well recently it appears that Mads Kristensen (the creator of BlogEngine.net) has had a bit of trouble with spam on his blog and so I decided to go ahead and implement it. Since there is a wonderful Akismet API for C# out there already, I just decided to go ahead and use that. It is BSD licensed, so everyone should be happy. Well, it took all of about 10 minutes to implement, since Joel Thoms did all the hard work writing the API. So here it is, just drop the two files into your App_Code/Extensions folder and change the apiKey and blogUrl variables in AkismetExtension.cs to whatever you need them to be. I was going to use the Utils.AbsoluteWebRoot, but I wasn't sure if Akismet used this info to see if you have registered the site with your key. So I figured I would leave it configurable if you want to use the same key for more than one site. Anyways, here is the download:
Download the BlogEngine.net 1.2 Akismet Extension
Download the BlogEngine.net 1.3 Akismet Extension