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

Profile Username Styling

JordanH

Well-known member
#1
I want it so if you go to a members profile, their username at the top has the css styling for which group they are in. I also want it to show up in the profile status and comments:




The photo above is what i mean where I want the CSS styling to show instead of jsut the text. How can this be done? I went through the theme templates but could not find out where to do it. Thanks in advance.
 
#2
Template member_view find it
PHP:
<h1 itemprop="name">{xen:helper richUserName, $user}</h1>
Replace by
PHP:
<h1 itemprop="name"><xen:username user="$user" rich="true" /></h1>
 

JordanH

Well-known member
#3
Thanks, and based on that I was also able to go and edit the comment part of the status's.

But now theres the actual status that needs to be done. Do you know if theres a way to do it for the example below:


Again, thanks in advance.
 
#4
Template message_simple find it
PHP:
<div class="messageContent">
<xen:username user="$message" class="poster"/>
<article><blockquote class="ugc baseHtml{xen:if $message.isIgnored, ' ignored'}">{xen:helper bodyText, $message.message}</blockquote></article>
</div>
Replace by
PHP:
<div class="messageContent">
<xen:username user="$message" class="poster" rich="true" />
<article><blockquote class="ugc baseHtml{xen:if $message.isIgnored, ' ignored'}">{xen:helper bodyText, $message.message}</blockquote></article>
</div>