More in this section
Forums / Developing with Sitefinity / Modify Forum Quote in Replies

Modify Forum Quote in Replies

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 1 answered
  1. Brad
    Brad avatar
    28 posts
    20 Sep 2010
    11 Jan 2011
    Link to this post

    Working with the Forums Module here, we are trying to modify how the Quotes are working. Right now, it's pulling in the username, which we have modified to be the Users' e-mail address when they first sign up. Is there any way to render the Quote as a "preferred name", or just a different field in general?

    I've attached the image of where we need to change it. I know it is based within the RadEditor area for the tbQuote within the template of EditPost.ascx itself.

    Our EditPost.ascx file includes:

    <asp:Literal ID="quoteAuthor" Visible="false" runat="server"></asp:Literal></h4>
            <telerik:RadEditor Enabled="false" ID="tbQuote" runat="server" ToolsFile="~/Sitefinity/ControlTemplates/Forums/ToolsFile.xml"
                EnableEmbeddedSkins="True" Skin="Default" DialogsCssFile="~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorDialogs.css"
                Height="200px" EditModes="Design" Width="95%">

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    11 Jan 2011
    Link to this post
    Hello Brad,

    1. You can easily change the text of quoteAuthor

    <script type="text/C#" runat="server">
    protected void Page_Load(object Sender, EventArgs e)
        var mail = Telerik.Security.UserManager.Default.GetUser().Email;
        this.authorEmail.Text = mail;
    <div class="sf_forumsWrapper">
    <p class="sf_mandatoryFields">* <asp:Literal ID="Literal1" runat="server" Text="<%$Resources:MandatoryFields %>"></asp:Literal></p>
    <fieldset class="sf_forumsEditor">
        <h3><asp:Literal ID="Literal2" runat="server" Text="<%$Resources:Quote %>" /></h3>
         <h4><asp:Literal ID="authorEmail" runat="server"></asp:Literal></h4>
        <div style="display:none">
        <h4><asp:Literal ID="quoteAuthor" runat="server"></asp:Literal></h4>

    2. To change the quoted user name in the RadEditor content use the code below

    protected override void OnPreRender(EventArgs e)
        var c = tbQuote.Content;
        var val = c.Substring(c.IndexOf("<blockquote"));
        var concat = "<div class=\"quote\"><p>" + Telerik.Security.UserManager.Default.GetUser().Email + "</p>" + val;
        tbQuote.Content = concat;

    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 1 answered