Add Image verification codes To CS2.1

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">&nbsp;&nbsp;
</dd>
</dt>
<dt>Enter Code Here: <em>Required</em>
<dd>
    <asp:TextBox ID="CodeNumberTextBox" runat="server" CssClass="codebox" />
</dd>
</dt>

[From AlphaWu.Blog]

你可能感兴趣的:(image)