Sidebar User Name Styling

by Oxygen - 23-12-2015, 02:34 PM
<div class="postbit-usertitle">
Posts:
646
Joined:
Feb 2015
Likes:
52
Credits:
1,262
Reputation:
35
2 Years of Service
#1
OP
Posted: 23-12-2015, 02: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]
Buy Private Proxies
Just wanna Sleep with God
Posts:
259
Joined:
Dec 2015
Likes:
4
Credits:
3
Reputation:
8
2 Years of Service
#2
Posted: 23-12-2015, 02: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
1/2 Year of Service
#3
Posted: 11-05-2017, 03:09 AM
Simplesmente absurdaabsurdo, arrow chat é realmente op.
Newbie
Posts:
16
Joined:
May 2017
Likes:
0
Credits:
19
Reputation:
0
1/2 Year of Service
#4
Posted: 20-05-2017, 02:05 AM
thanks for share i need this info =D
Newbie
Posts:
17
Joined:
Jun 2017
Likes:
0
Credits:
3
Reputation:
0
1/2 Year of Service
#5
Posted: 10-06-2017, 03:27 PM
Thanks for share i need it fa temps
Newbie
Posts:
16
Joined:
Nov 2015
Likes:
0
Credits:
9
Reputation:
0
2 Years of Service
#6
Posted: 18-06-2017, 10:04 PM
Thank you mate, this will make my site so much better
Newbie
Posts:
14
Joined:
Jul 2015
Likes:
0
Credits:
15
Reputation:
0
2 Years of Service
#7
Posted: 20-06-2017, 09:25 PM
thanks for share i need this info =D
Closed Account
Posts:
15
Joined:
Aug 2017
Likes:
0
Credits:
15
Reputation:
0
#8
Posted: 01-08-2017, 06:50 PM
thank you for that code!
Lurker
Posts:
4
Joined:
Dec 2015
Likes:
0
Credits:
4
Reputation:
0
2 Years of Service
#9
Posted: 05-08-2017, 11:53 AM
Excellent

Thanks for the share
Newbie
Posts:
15
Joined:
Aug 2017
Likes:
0
Credits:
0
Reputation:
0
#10
Posted: 08-08-2017, 02:27 AM
Thanks for share this tweaks bro!.
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
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)