Hi there,
Is there a way to change the color of the members online based on their groups? Like in other forums, admins are usually red in color, mods blue, etc. I’d like to be able to do that on these boards as well.
Thanks!
Hi there,
Is there a way to change the color of the members online based on their groups? Like in other forums, admins are usually red in color, mods blue, etc. I’d like to be able to do that on these boards as well.
Thanks!
yup, already there… you just have to add the styling you want…
check the display name html… you will see multiple classes added to the div based on user attributes (ie type, usergroup, etc)… you just have to add the style (ie the color)….
Hi, I understand what you’re saying, but where do I find that? Is that in the main stylesheet? And if so, what do I search for? I didn’t see in there where to add or change color.
Thanks
you would need to add the styles to your sp theme – be sure to have your own vice editing one of ours… see: http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/
as to the styles needed, inspect the css using your browser dev tools for the needed classes… they will be dependent on your usergroup names, so I cannot exactly tell you with out more… but here, for example, is your name styling:
<div id=”post139159″ class=”spTopicPostSection spOdd spUnreadPosts spType-User spRank-member spSpecialRank-gold-member spUsergroup-gold-members spUserPost
so lots of classes in there… your rank, user type, special rank and usergroup… so say I wanted to style the usergroup you are in, spUsergroup-gold-members, I could do:
.spUsergroup-gold-members .spPostUserName a {
color: #ff0000;
}
and your name would appear in red… this would be for the user name in the user section next to posts…
Just to be sure, is it in my main styles.php or the theme overlay? And yes, I have a different theme, I just want to make sure of the exact file I need to edit.
Thanks!
If you want to add very specific classes, styles and colours then use the main theme CSS file – or PHP file if a theme that utilises overlays.
But… I suspect Steve (Mr Papa) may have misinterpreted the question. Yes – these classes are added to the name of the user in the post areas in a topic but you have specified ‘currently online’ and I interpret that to mean the list of users online in the stats area at the bottom. Such classes are not applied there – actually for the very simple reason that it would add query/data overhead that most would not want.
Having said that – I rather like the notion that we should be consistent so I think I will write up a request on getting the classes added.
If, of course, you did mean as Steve interpreted it then yes – the classes are added to the html output.
argh… yeah, sorry thought you meant the user info area of topic view (post list)… As Andy said, will have to make an update for that…
Yep, you’re current. I want it to show up in the “current users online” area on the bottom
So just to be clear, it’s not possible yet, but will be in an update?
Thanks!
Yes – I added the code this morning. 5.4.2 will coincide with the release of WordPress 3.9.0 currently in beta 2 phase.