On my website, I have a document management system that will show the edit history of a particular page. I would like to show, next to each user’s name, a small indicator if that person is an editor or admin, for example.
Could this be done in any way, perhaps using ure_role_additional_options and add a CSS class on the user’s name?
You need to change the template which outputs user’s name, add user’s roles there using a function like below. It returns the string of comma separated user roles by user ID: