Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Changing username colors in 2.1
Zhaan
✭✭
I want to change the username colours for specific roles (primarily admins/mods), but the RoleTitle plugin doesn't seem to be fully compatible with 2.1, so I cannot use that method.
Any tips on how this can be done? Thanks in advance!
Tagged:
0
Comments
Guess it can't be done without the plugin then?
does each role title have a different ID ? if so you could use css
There was an error rendering this rich post.
As in an ID number? I'm not sure where to find those..
This is what I attempted to do earlier, but it doesn't do anything in 2.1:
.role-administrator .Comment .Meta .Author a { color: #FFC125 !important; } .role-moderator .Comment .Meta .Author a { color: #0ecae9 !important; } .role-member .Comment .Meta .Author a { color: #ffffff !important; } .role-guest .Comment .Meta .Author a { color: #ffffff !important; } .role-banned .Comment .Meta .Author a { color: #444444 !important; text-decoration: line-through !important; }
Upgrading to the latest version should fix the problem: https://github.com/vanillaforums/Addons/blob/master/plugins/RoleTitle/class.roletitle.plugin.php
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
I upgraded, but it still doesn't change anything
It works just fine, you'll just have to adjust your CSS to the 2.1 version of the plugin:
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
So like this?
As you can tell, I'm kind of clueless when it comes to CSS.
That didn't work
trololol