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

How to hide signature in conversation?

#1
Is there a way to hide signature when in the conversation view? This will make the view a little more compact and you don't really need to see the signature of the participants over and over again.

I guess what I am after is the parameter and condition statement to be placed in the "message" template.

Any suggestion would be very much appreciated.
 

Jake Bunce

XenForo moderator
Staff member
#2
Admin CP -> Appearance -> Templates -> message

Change this code:

Code:
        <xen:if is="{$visitor.content_show_signature} && {$message.signature}">
            <div class="baseHtml signature ugc"><aside>{xen:raw $message.signatureHtml}</aside></div>
        </xen:if>
...to this (adding && !{$message.conversation_id}):

Code:
        <xen:if is="{$visitor.content_show_signature} && {$message.signature} && !{$message.conversation_id}">
            <div class="baseHtml signature ugc"><aside>{xen:raw $message.signatureHtml}</aside></div>
        </xen:if>
I tested this and it works.
 
#3
Admin CP -> Appearance -> Templates -> message

Change this code:

Code:
        <xen:if is="{$visitor.content_show_signature} && {$message.signature}">
            <div class="baseHtml signature ugc"><aside>{xen:raw $message.signatureHtml}</aside></div>
        </xen:if>
...to this (adding && !{$message.conversation_id}):

Code:
        <xen:if is="{$visitor.content_show_signature} && {$message.signature} && !{$message.conversation_id}">
            <div class="baseHtml signature ugc"><aside>{xen:raw $message.signatureHtml}</aside></div>
        </xen:if>
I tested this and it works.
Thanks Jake, works like a charm!

Cheers!
 
F

Floris

Guest
#5
Secretly I am hoping there will be an admin option to check - because I see no reason why a signature should show (and others might still want to).