Login  Register

Re: Change the color of the name of the administrators and moderators

Posted by GregChapman on Jun 12, 2014; 11:19pm
URL: https://support.nabble.com/Change-the-color-of-the-name-of-the-administrators-and-moderators-tp7590462p7590491.html

Mmm! Tricky!  That text is a link, so is designed to change colour depending on whether you have visited the user's profile page. I was hoping that you meant change the colour of the word "Administrator", not the user's name - and would have given you the wrong answer.

You will need to do several things to achieve what you want:
• Edit the NAML macro "user_link" that generates the code that displays the name so that it interrogates the user database to check in which group the user belongs and then insert an appropriate a class for the HTML tag in which the user's name appears.
• Edit the NAML macro that sets the styling for the appropriate link (but no other) so the username never changes colour after the profile page is visited.

I regret I am not a NAML expert and don't know how to write such code.
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.