More in this section

Forums / Developing with Sitefinity / SpamProtector Layout change

SpamProtector Layout change

5 posts, 0 answered
  1. Armen
    Armen avatar
    9 posts
    Registered:
    26 Oct 2011
    19 Jan 2009
    Link to this post
    Hi,

    Can you please give me a hint regarding how to change the Layout of Spamprotector? I have included in my form using below mentioned way and it shows fine, the simple task is to show CaptchaTextBoxLabel text befor image in new line and text box with some padding. I can't find a template for changing it to show as I wish. Can you please tell me how to solve this.

    <%

    @ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Web.UI.SpamProtection"

     

     

    TagPrefix="cc1" %>

     

    <

    cc1:SpamProtector ID="spamProtector" runat="server" CaptchaImageHeight="31" CaptchaImageWidth="100" CaptchaLength="4" CaptchaPossibleChars="Letters"

     

     

    CaptchaTextBoxLabel="Copy text to the right into box below:" EnableCaptcha="True" CaptchaImageAltText="Remeat the text"

     

     

    CapcthaInvalidInputMsg="Invalid validation code." ValidationGroup="forms" />

    Thanks,
    Armen

     

  2. Parvan
    Parvan avatar
    151 posts
    Registered:
    24 Sep 2012
    22 Jan 2009
    Link to this post
    Hello Armen,

    Thank you for contacting us.

    Currently the SpamProtector's layout cannot be customized.

    In the upcoming release of Sitefinity(version 3.6) we will add the required customization for this control:

    1. You will be able to use an inline template directly in the markup:

    <sfweb:spamprotector id="SpamProtector1" runat="server" EnableCaptcha="true" ...> 
                    <CaptchaLayoutTemplate> 
                        <p> 
                            <asp:Image ID="CaptchaImage" runat="server" /> 
                        </p> 
                        <br /> 
                        <p> 
                            <asp:TextBox ID="CaptchaTextbox" runat="server"/>  
                            <asp:Label ID="CaptchaTextBoxLabel" runat="server"/>  
                        </p> 
                    </CaptchaLayoutTemplate> 
    </sfweb:spamprotector> 

    or 

    2. Specify a path to an external template in the new property CaptchaLayoutTemplatePath of the SpamProtector control.

    We hope this information will help you.

    Greetings,
    Parvan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Armen
    Armen avatar
    9 posts
    Registered:
    26 Oct 2011
    23 Jan 2009
    Link to this post
    Thanks Parvan,

    That really makes a sense. Looking forward to 3.6 version. Are there any time expectations for that?

    Thanks,
    Armen
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    23 Jan 2009
    Link to this post
    Hello Armen,

    Here is some more information about the upcoming 3.6 release, and an estimate - 3.6 Beta this week

    Regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Armen
    Armen avatar
    9 posts
    Registered:
    26 Oct 2011
    23 Jan 2009
    Link to this post
    Thanks, seems it is right here!
Register for webinar
5 posts, 0 answered