• 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)

giorgino

Well-known member
#1
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?
 

giorgino

Well-known member
#3
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
 

Brogan

XenForo moderator
Staff member
#4
That's OK, I posted just so you were aware it had been moved.

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

Jake Bunce

XenForo moderator
Staff member
#8
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
 

Jake Bunce

XenForo moderator
Staff member
#13
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
 

Jake Bunce

XenForo moderator
Staff member
#15
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.