From:http://communityserver.org/forums/thread/557086.aspx
Find More in:http://dbvt.com/search/SearchResults.aspx?q=JpegImage.aspx&s=5
DownLoad The Patch at:http://dbvt.com/files/folders/addons/entry5198.aspx
1) Drop the DaveBurke.CS21.Captcha.dll into your \bin directory
2) Copy JpegImage.aspx into your web\blogs folder.
3) Now you'll need to update your Comment form and your Contact form. Complete samples located in \samples folder. DO NOT copy the sample files to your site, since they have been customized for my installation and will most likely conflict with your blog's theme.
COMMENT FORM
3A) Open your theme's SKIN-ENTRYVIEWCONTAINER.ASCX file and add the following register statement and replace the <blog:CommentForm /> with the line listed below.
<%@ Register TagPrefix="DBVT" Namespace="DaveBurke.CS21.Captcha" Assembly="DaveBurke.CS21.Captcha" %>
<DBVT:CommentForm runat="Server" id="form" />
3B) Open SKIN-COMMENTFORM.ASCX and add the following HTML between the tbComment Textbox and the ChkRemember Checkbox. Feel free to reformat to match your comment form style.
<dt>
<dd>
<asp:RequiredFieldValidator ID="reqCaptcha" runat="server" Display="Dynamic"
ErrorMessage="Please enter the code" ControlToValidate="CodeNumberTextBox"></asp:RequiredFieldValidator>
<asp:Label runat="server" ID="lblImage" Font-Bold="true" ForeColor="RED" />
<p>
</p>
</dd>
<dd>
<img src="http://communityserver.org/blogs/JpegImage.aspx">
</dd>
</dt>
<dt>Enter Code Here: <em>Required</em>
<dd>
<asp:TextBox ID="CodeNumberTextBox" runat="server" CssClass="codebox" />
</dd>
</dt>
本文详细介绍了如何在社区服务器中安装和配置Captcha模块,包括必要的DLL文件和ASPX页面的放置位置,以及如何更新评论和联系表单以增强网站的安全性。

被折叠的 条评论
为什么被折叠?



