Sidebar User Name Styling

by Oxygen - 23-12-2015, 01:34 PM
<div class="postbit-usertitle">
Posts:
646
Joined:
Feb 2015
Likes:
50
Credits:
1,182
Reputation:
35
2 Years of Service
#1
OP
Posted: 23-12-2015, 01:34 PM
Sidebar user name styling
Not my content; Don't come to me because of links not working.



In a default installation, user group user name styling does not apply to the Members Online Now block in the sidebar.
To enable styling to show in this location, the sidebar_online_users template must be edited.

Look for this line of code in the template:
Code:
class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{$user.username}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>

Replace it with this:
Code:
class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{xen:helper richUserName, $user}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>

You can then apply styling to the user group user names as explained in the manual here:http://xenforo.com/help/user-group-styling/

However, when hovering over a user name, the underline colour from the parent <a> will be applied and may therefore differ from the text colour applied to the user name.

To resolve that, apply this toEXTRA.css:
Code:
a.username:hover > span {
text-decoration: underline;
}

[Image: UeTXrZ5.png]
Just wanna Sleep with God
Posts:
259
Joined:
Dec 2015
Likes:
3
Credits:
3
Reputation:
8
1 Year of Service
#2
Posted: 23-12-2015, 01:45 PM
Thanks for sharing , but it not working for me what i need to do :(
Newbie
Posts:
15
Joined:
May 2017
Likes:
0
Credits:
15
Reputation:
0
#3
Posted: 11-05-2017, 02:09 AM
Simplesmente absurdaabsurdo, arrow chat é realmente op.
Newbie
Posts:
17
Joined:
May 2017
Likes:
0
Credits:
19
Reputation:
0
#4
Posted: 20-05-2017, 01:05 AM
thanks for share i need this info =D
Newbie
Posts:
17
Joined:
Jun 2017
Likes:
0
Credits:
3
Reputation:
0
#5
Posted: 10-06-2017, 02:27 PM
Thanks for share i need it fa temps
Newbie
Posts:
16
Joined:
Nov 2015
Likes:
0
Credits:
9
Reputation:
0
1 Year of Service
#6
Posted: 18-06-2017, 09:04 PM
Thank you mate, this will make my site so much better
Newbie
Posts:
15
Joined:
Jul 2015
Likes:
0
Credits:
15
Reputation:
0
1 Year of Service
#7
Posted: 20-06-2017, 08:25 PM
thanks for share i need this info =D
Novice
Posts:
23
Joined:
Jul 2017
Likes:
0
Credits:
0
Reputation:
0
#8
Posted: 07-07-2017, 02:07 AM
Thanks for share this tweaks bro!.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)