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

XF 1.4 Hide Quick Reply in ONE Thread

Discussion in 'XenForo Questions and Support' started by Solidus, Aug 16, 2015.

  1. Solidus

    Solidus Well-Known Member

    As the title states.
    I guess it'll be something in extra.css or a template conditional, just need pointing in the right direction.

    Thanks!
     
  2. batpool52!

    batpool52! Well-Known Member

    In thread_view
    Find:
    PHP:
    <xen:if is="{$canQuickReply}">
        <
    xen:include template="quick_reply">
            <
    xen:set var="$formAction">{xen:link 'threads/add-reply'$thread}</xen:set>
            <
    xen:set var="$lastDate">{$lastPost.post_date}</xen:set>
            <
    xen:set var="$lastKnownDate">{$thread.last_post_date}</xen:set>
            <
    xen:set var="$showMoreOptions">1</xen:set>
            <
    xen:set var="$multiQuoteAction">{xen:link 'threads/multi-quote'$thread'formId=#QuickReply'}</xen:set>
        </
    xen:include>
    </
    xen:if>
    Replace with
    PHP:
    <xen:if is="{$canQuickReply} && {$thread.thread_id} != 420">
        <
    xen:include template="quick_reply">
            <
    xen:set var="$formAction">{xen:link 'threads/add-reply'$thread}</xen:set>
            <
    xen:set var="$lastDate">{$lastPost.post_date}</xen:set>
            <
    xen:set var="$lastKnownDate">{$thread.last_post_date}</xen:set>
            <
    xen:set var="$showMoreOptions">1</xen:set>
            <
    xen:set var="$multiQuoteAction">{xen:link 'threads/multi-quote'$thread'formId=#QuickReply'}</xen:set>
        </
    xen:include>
    </
    xen:if>
    420 is your thread id
     
    Solidus likes this.
  3. Solidus

    Solidus Well-Known Member

    Thanks!
    I now realize I should hide the Quote and Reply buttons too.
     
  4. Solidus

    Solidus Well-Known Member

    Code:
    <xen:if is="{$canReply} && {$thread.thread_id} != 999999">
                        <xen:if is="{$xenOptions.multiQuote}"><a href="{xen:link threads/reply, $thread, 'quote={$post.post_id}'}"
                            data-messageid="{$post.post_id}"
                            class="MultiQuoteControl JsOnly item control"
                            title="{xen:phrase toggle_multi_quote_tooltip}"><span></span><span class="symbol">{xen:phrase multiquote_add}</span></a></xen:if>
                        <a href="{xen:link threads/reply, $thread, 'quote={$post.post_id}'}"
                            data-postUrl="{xen:link posts/quote, $post}"
                            data-tip="#MQ-{$post.post_id}"
                            class="ReplyQuote item control reply"
                            title="{xen:phrase reply_quoting_this_message}"><span></span>{xen:phrase reply}</a>
                    </xen:if>
    (y)
    in post template
     
  5. batpool52!

    batpool52! Well-Known Member

Share This Page