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

How to insert the User Status in own signature (maybe a suggestion)

Discussion in 'XenForo Questions and Support' started by giorgino, Mar 14, 2011.

  1. giorgino

    giorgino Well-Known Member

    Hi all :)

    I think that the best place to put the user status is (also) in own signature. In this way, the user status became visibile to all other users without any manual operation by the user

    The question is: How to put user status in own signature?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Moved from template modifications to general support.
     
  3. giorgino

    giorgino Well-Known Member

    thank you Brogan and sorry for my (english and) confusion;)

    In the meantime I've put manually an example of what I mean.
    The "Status:" is linked to user profile. The status message isn't linked
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    That's OK, I posted just so you were aware it had been moved.

    As for your example, I have signatures turned off ;)
     
  5. giorgino

    giorgino Well-Known Member

    But it's your choice (y)

    I think that actually the status message is too much hidden and is a crime o_O
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

  7. giorgino

    giorgino Well-Known Member

  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Here is a template mod for you:

    Admin CP -> Appearance -> Templates -> message

    Replace this:

    Code:
    		<xen:if is="{$visitor.content_show_signature} && {$message.signature}">
    			<div class="baseHtml signature ugc"><aside>{xen:raw $message.signatureHtml}</aside></div>
    		</xen:if>
    
    with this:

    Code:
    		<xen:if is="{$visitor.content_show_signature} AND ({$message.signature} OR {$message.status})">
    			<div class="baseHtml signature ugc">
    			<aside>
    				<xen:if is="{$message.status}">
    					<div>My status: {$message.status}</div>
    				</xen:if>
    				<xen:if is="{$message.signature}">
    					{xen:raw $message.signatureHtml}
    				</xen:if>
    			</aside>
    			</div>
    		</xen:if>
    
    And this is the result:

    Screen shot 2011-03-14 at 11.19.55 PM.png
     
  9. giorgino

    giorgino Well-Known Member

    o_O wow :eek:
    It's perfect! (y)
    Thank you Jake! :)

    One more question: It's possible to add user statistics also?

    Schermata 2011-03-15 a 09.11.44.png
     
  10. giorgino

    giorgino Well-Known Member

    please... :rolleyes: :unsure:
     
  11. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That's doable. I will get to this later today.
     
  12. giorgino

    giorgino Well-Known Member

    Thank you Jake :)
     
  13. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Use this:

    Code:
    		<xen:if is="{$visitor.content_show_signature}">
    		<div class="baseHtml signature ugc">
    		<aside>
    			<xen:if is="{$message.status}">
    				<div>My status: {$message.status}</div>
    			</xen:if>
    			<xen:if is="{$message.signature}">
    				<div>{xen:raw $message.signatureHtml}</div>
    			</xen:if>
    			<div>
    				messages: {$message.message_count} |
    				likes: {$message.like_count} |
    				points: {$message.trophy_points}
    				<xen:if is="{$message.location}">
    					| from: {xen:string censor, $message.location}
    				</xen:if>
    			</div>
    		</aside>
    		</div>
    		</xen:if>
    
    Result:

    Screen shot 2011-03-15 at 8.48.25 PM.png
     
  14. giorgino

    giorgino Well-Known Member

    Wow Jake, Great! :)
    It's difficult to add registration date, discussions and (linked) trophies?

    Thank you!
     
  15. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Here is with the register date:

    Code:
    		<xen:if is="{$visitor.content_show_signature}">
    		<div class="baseHtml signature ugc">
    		<aside>
    			<xen:if is="{$message.status}">
    				<div>My status: {$message.status}</div>
    			</xen:if>
    			<xen:if is="{$message.signature}">
    				<div>{xen:raw $message.signatureHtml}</div>
    			</xen:if>
    			<div>
    				messages: {$message.message_count} |
    				likes: {$message.like_count} |
    				points: {$message.trophy_points} |
    				registered: {xen:date $message.register_date}
    				<xen:if is="{$message.location}">
    					| from: {xen:string censor, $message.location}
    				</xen:if>
    			</div>
    		</aside>
    		</div>
    		</xen:if>
    
    I can't find any "discussions" count or other trophy information other than trophy points.
     
  16. giorgino

    giorgino Well-Known Member

    Thank you Jake wonderful job! :)
     
  17. Pro

    Pro Active Member

    Perfect, thank you so much.
     
  18. Andy.N

    Andy.N Well-Known Member

    Do you know how we can display the signature or status once per page using conditional in the template?
     
  19. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Once per page per person? I don't know of a way to do that with just template edits.
     
  20. Andy.N

    Andy.N Well-Known Member

Share This Page