by Jesper Persson
15. March 2010 17:19
In my previous post I tried to get rid of all the comments spam and succeeded! But I decided to upgrade to Blogengine 1.6.0 due to the new comments moderation features, and it's ok, the thing that still bothers me are that I’m still getting mails about the spam comments, surely it's easy to go in mark them and delete all the comment from a central point but still, I don't want to see those mails. So why not configure Blogengine not to send any mails? Well, I could but then I wouldn’t get alerted when real users leave their comments. So the only solution was to update the captcha package to match Blogengine 1.6.0.
First of all the structure of the package is simplified by grouping the JQuery files under the captcha folder.
It should be a simple copy and paste EXCEPT for the web.config file do not override your own with mine, it only shows what to change to enable session state. As usual backup your files in case something goes wrong.
Insert this in HTML head section under Settings in Blogengine
<script type="text/javascript" src="../captcha/latest-jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../captcha/latest-jquery-ui/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="../captcha/jquery.captcha.js"></script>
<link href="../captcha/captcha.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8">
$j = jQuery.noConflict();
$j(document).ready(function(){
$j("#btnSaveAjax").attr("disabled","disabled");
$j(function() {
$j(".ajax-fc-container").captcha({
borderColor: "silver",
text: "Verify that you are a human,<br />drag <span>scissors</span> into the circle." });
});
});
</script>
And all is good. No more spam. As always the credit goes to http://www.webdesignbeach.com
Download the source from this link:
captcha.rar (58,41 kb)