<div class="footnote">
{xen:phrase online_now_x_members_y_guests_z_robots_a, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number $onlineUsers.guests}', 'robots={xen:number $onlineUsers.robots}'}
</div>
<font color="#FF0000">{xen:phrase administrators}</font>, <font color="#0000FF">{xen:phrase moderators}</font>
Thank you so very much!No add-on needed.
Open the sidebar_online_users template and find this:
Code:<div class="footnote"> {xen:phrase online_now_x_members_y_guests_z_robots_a, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number $onlineUsers.guests}', 'robots={xen:number $onlineUsers.robots}'} </div>
Add this below, adjusting the color and phrasing accordingly to match your user groups' colors and names:
Code:<font color="#FF0000">{xen:phrase administrators}</font>, <font color="#0000FF">{xen:phrase moderators}</font>
View attachment 110852
If a phrase doesn't exist, I suggest creating one instead of hard-coding it so it can be easily changed later, using your site initials so you know it's custom. For example, khflare_custom phrase.
I am having an issue in that I get a syntax error when I use a multi word title, i.e. Global Moderator, VIP Elite. The only way it works is to place an underscore in between the words. is there a character i can use that won't show up?No add-on needed.
Open the sidebar_online_users template and find this:
Code:<div class="footnote"> {xen:phrase online_now_x_members_y_guests_z_robots_a, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number $onlineUsers.guests}', 'robots={xen:number $onlineUsers.robots}'} </div>
Add this below, adjusting the color and phrasing accordingly to match your user groups' colors and names:
Code:<font color="#FF0000">{xen:phrase administrators}</font>, <font color="#0000FF">{xen:phrase moderators}</font>
View attachment 110852
If a phrase doesn't exist, I suggest creating one instead of hard-coding it so it can be easily changed later, using your site initials so you know it's custom. For example, khflare_custom phrase.
I don't under stand where or how to place your suggestion (khflare_custom).
The only way it works is to place an underscore in between the words. is there a character i can use that won't show up?
Are you referring to when trying to create a phrase? If so, that is correct. The title requires underscores, but the actual text it displays comes from the Phrase Text field.
pardon my ignorance, but i haven't a clue what that means nor how to do it.You need to create phrases for them if you're going to take the phrase approach.
Ok, I found the section, but not knowing how to write code I don't know what is required to make Phrases.Admin CP > Appearance > Phrases > Create New Phrase
Hold on! I think I got it......See my screenshot above in post #5 and then my first reply to this thread.
I had already done that, and the color is shown in post bit, profiles, etc, but NOT in the Members Online Area. I thought at one time this was an add-on.....Admin CP > Users > User Groups
Put in your desired colors in the User Name CSS box.
class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{$user.username}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}"><xen:username user="$user" rich="true" /></a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
Thanks so much again! It worked like a charm!You need to make the usernames rich in the sidebar_online_users template.
Search:
Code:class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{$user.username}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
Make this change:
Code:class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}"><xen:username user="$user" rich="true" /></a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
Thanks much! I will certainly check it out!!@Craig
you can check my old add-on for this with a little template modifications
[tLk] Usergroup Legend
We use essential cookies to make this site work, and optional cookies to enhance your experience.