Are you wanting different colored Titles, Banners, or username?
It should be a simple template change. Lemme take a look...
So, what would the color be based on? Just randomly assigned? User specified? Groups of users? It starts getting really complicated and I think the result would be ugly/confusing if every user has a different color. If it's groups, that's the easiest - you can have different groups for different levels of premiumness or based on number of posts, etc. and just promote people to those groups. It's easy to change the color of user name in groups.
That would require custom development. Or template edits and custom fields.
OK, here's how to do (tested it on my forum):User specific, whatever the user want. He request a color, and I'll assign it, as long as it isn't a color that looks completely off on the style. Yes I'm aware that you can assign it to user groups, and that would be the easiest way of course. That said, I don't want a to split it into many different user groups. I want all my lifetime premiums in one group
Nono, I doubt it would come to that. It is a premium, lifetime option, which means there will be few users with it. I currently only have 3, out of about 160 members.
<h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="name" /></h4>
<xf:if is="$user.Profile.custom_fields.usernameColor">
<h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="name" style="color: {$user.Profile.custom_fields.usernameColor} !important" /></h4>
<xf:else />
<h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="name" /></h4>
</xf:if>
We use essential cookies to make this site work, and optional cookies to enhance your experience.