1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Reply button

Discussion in 'Styling and Customization Questions' started by Mark3121, Sep 16, 2012.

  1. Mark3121

    Mark3121 Well-Known Member

    I wanted to make a new reply button in posts, the current reply quotes the post which is fine, but I'd like another beside it that just puts the cursor in the quick reply without a quote.

    I know it's the 'post' template, so far I've added this

    Code:
    <xen:if is="{$canReply}">
                        <a href="{xen:link threads/reply, $thread}" data-postUrl="{xen:link posts/quote, $post}" class="Reply item control reply" title="Reply to this message"><span></span>Reply</a>
                    </xen:if>
    which does work but opens a new window.

    Is there a bit of code that just puts the cursor into the bottom of page in the quick reply?

    Thanks.
     
  2. Arty

    Arty Well-Known Member

    Try this:
    Code:
    <a href="{$requestPaths.requestUri}#QuickReply" class="Reply item control reply" title="Reply to this message"><span></span>{xen:phrase reply}</a>
    It won't focus editor because editor is not a usual input that can be focused, but it will scroll down to reply form.
     
    Mark3121 likes this.
  3. Mark3121

    Mark3121 Well-Known Member

    thanks
     

Share This Page