1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
    Dismiss Notice
  3. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Hide Signatures In Personal Conversations

Discussion in 'Template Modifications [Archive]' started by Jake Bunce, Nov 9, 2010.

  1. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    This will remove signatures from personal conversations. Pretty simple.

    Edit this template:

    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>
    
    Now signatures will no longer show in personal conversations. But they will continue to show in other messages like forum posts.
     
    Michael, Iversia, account8226 and 7 others like this.
  2. Ranger375

    Ranger375 Well-Known Member

    Awesome
     
  3. Peggy

    Peggy Well-Known Member

    Excellent! Thanks for this.
     
  4. ChemicalKicks

    ChemicalKicks Well-Known Member

  5. Fuhrmann

    Fuhrmann Well-Known Member

    You could use this:

    Code:
    !in_array({$forum.node_id}, array(5,6))
    Where 5,6 are the node_id that you dont want to show the signatures. Complete code, copied from above, just adding the new conditional: (scroll to the right)

    Code:
    <xen:if is="{$visitor.content_show_signature} && {$message.signature} && !{$message.conversation_id} && !in_array({$forum.node_id}, array(5,6))">
                <div class="baseHtml signature ugc"><aside>{xen:raw $message.signatureHtml}</aside></div>
            </xen:if>
     
    ChemicalKicks likes this.
  6. ChemicalKicks

    ChemicalKicks Well-Known Member

    Thank you Fuhrmann :)
     
  7. ChemicalKicks

    ChemicalKicks Well-Known Member

    Would it also be similar for user profile text, is that what you call it? The text you can have underneath your avatar?
     
  8. Fuhrmann

    Fuhrmann Well-Known Member

    You mean the user title?
     
  9. ChemicalKicks

    ChemicalKicks Well-Known Member

    Yes I believe so. For example where it says "active user" for me and "just being me" for Peggy. :)
     
  10. Fuhrmann

    Fuhrmann Well-Known Member

    Yes, you can use the same conditional:

    Code:
    <xen:if is="!in_array({$forum.node_id}, array(5,6))">
    <xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em></xen:if>
    </xen:if>
     
    ChemicalKicks likes this.
  11. ChemicalKicks

    ChemicalKicks Well-Known Member

    Hmmm that would allow me to save.

    The following templates contained errors and were not saved: message_user_info: 1) Line 15: Template syntax error.
     
  12. Eagle

    Eagle Well-Known Member

    Awesome, thank you Jake :)
     

Share This Page