Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity 3.x: Security > How do add CAPTCHA to blogs comments

How do add CAPTCHA to blogs comments

  • lzabik avatar

    Posted on Feb 3, 2010 (permalink)

    I have question how to add CAPTCHA to blogs and news comments. I am looking some time how to do this but I cannot find solution. Can anyone help me.

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Feb 3, 2010 (permalink)

    Hi lzabik,

    You have to map the external template for details mode of NewsView and BlogPosts control. You have to work with mode template - ListPageDetail.ascx. The template have to be mapped through Advance tab of each control >> Appearance >> SingleItemTemplatePath property.

    In the template you have to enable the Spam protection from the template by setting EnableCaptcha property to true. You can download the external templates from your account >> downloads section.

    <sfWeb:SpamProtector
                    EnableCaptcha="true"
                    id="spamProtector" runat="server"
                    enableautobotdiscovery="true" enablehiddentextboxstrategy="true"
                    hiddentextboxerrormessage="Hidden TextBox has some text in it!" hiddentextboxlabel="Do not fill this textbox!"
                    hiddentextboxlabelcssclass="hide" hiddentextboxinputcssclass="hide" enablemintimeoutstrategy="true"
                    mintimeout="2" mintimeouterrormessage="Submission too fast!" />
                <asp:Button ID="submitBtn" runat="server" Text="<%$Resources:PostThisComment %>"
                    CssClass="sf_commentSubmit" />


    Greetings,
    Ivan Dimitrov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.

    Reply

  • JAllen avatar

    Posted on Mar 11, 2011 (permalink)

    Hi Ivan,
    I'm trying to do this in 3.7 for *NEWS* and the ListPageDetails.ascx doesn't have the Spam Protector, but rather a Comments List:

    <div id="comments" class="sf_contentComments">
        <sfWeb:CommentsList id="commentsList" runat="server" cssclass="sf_commentsList" ValidationGroup="commentInfo"></sfWeb:CommentsList>
    </div>

    I can see the CommentsLists.ascx in the External Templates folders and this does have the Spam Protector, so presumably I need to enable it here, but where do I have to specify to use my version of CommentsList.ascx instead of the built in one?

    EDIT:  Nevermind - I realized I needed to map it in the ControlsConfig.xml in App_Data/Configuration!

    Reply

  • Jay avatar

    Posted on Apr 27, 2011 (permalink)

    Hello,

    I am new to using Sitefinity and I was wondering if you could give me step by step instructions on how to add CAPTCHA to the comments of a blog posting.

    Thank you!

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Apr 29, 2011 (permalink)

    Hi Jay,

    Download the external templates and then follow the suggestions above.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Reply

  • Jay avatar

    Posted on May 3, 2011 (permalink)

    Ivan,

    I am a developer and my client does not have immediate access to those credentials.  Is there a direct link to download the external templates?  This is not available when I log into my account.

    Also, is the version dependent?  If so, what is the minimum version and how do I check which version I have.

    Thanks!

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on May 3, 2011 (permalink)

    Hello,

    Please use the same account from which Sitefinity has been downloaded. The templates are valid for editions from 3.6 to 3.7 SP4. Note that there are changed in some of the templates.


    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity 3.x: Security > How do add CAPTCHA to blogs comments