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

Disable Sig in XX forums ?

Discussion in 'XenForo Questions and Support' started by tafreehm, May 23, 2012.

  1. tafreehm

    tafreehm Well-Known Member

    How can I disable signatures in specific forums ?
     
  2. ragtek

    ragtek Guest

    You would need a custom add-on for this
     
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> message

    Add the red code:

    Code:
    		<xen:if is="{$visitor.content_show_signature} && {$message.signature} && {$thread.node_id} != 3">
    			<div class="baseHtml signature ugc{xen:if $message.isIgnored, ' ignored'}"><aside>{xen:raw $message.signatureHtml}</aside></div>
    		</xen:if>
    
    You need to specify the node_id.

    Or to exclude multiple forums:

    Code:
    		<xen:if is="{$visitor.content_show_signature} && {$message.signature} && !in_array({$thread.node_id}, array(1,2,3))">
    			<div class="baseHtml signature ugc{xen:if $message.isIgnored, ' ignored'}"><aside>{xen:raw $message.signatureHtml}</aside></div>
    		</xen:if>
    
     
    Learner likes this.
  4. tafreehm

    tafreehm Well-Known Member

    thanks a lot man.. appreciate it. !!!
     
  5. tafreehm

    tafreehm Well-Known Member

    I inserted following code at the bottom of template. but no result.
    Code:
    <!-sig blocked -->
            <xen:if is="{$visitor.content_show_signature} && {$message.signature} && !in_array({$thread.node_id}, array(231,257,331,661,685,348,349,634,258,684,613,543,679,620,622,623,624,625,627,471,555,256,265,247,286,464,586,589,389,533,387,388,605,556,617,630,375,658,638,673))">
                <div class="baseHtml signature ugc{xen:if $message.isIgnored, ' ignored'}"><aside>{xen:raw $message.signatureHtml}</aside></div>
            </xen:if>
    <!-sig blocked -->
     
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You add the red piece to the existing code that is already in the template.
     
  7. tafreehm

    tafreehm Well-Known Member

    Thanks man...
    works like a charm !
     

Share This Page