I want to display some characters based on roles or something else that could categorize users.
Like:
!admin #moderator %contributor +donator
!Fidelix #Fidelix %Fidelix +Fidelix
Got it? I don't want to change usernames directly, i just want to change the output when they're displayed. Thank you.
http://api.drupal.org/api/function/theme_username
Override this in your template.php file in your themes directory. You should be able to get at the roles as part of the $object variable and prepend the characters you are after based on that.
Best, William
On Sun, Aug 15, 2010 at 8:31 AM, Felipe Fidelix eu@felipefidelix.comwrote:
I want to display some characters based on roles or something else that could categorize users.
Like:
!admin #moderator %contributor +donator
!Fidelix #Fidelix %Fidelix +Fidelix
Got it? I don't want to change usernames directly, i just want to change the output when they're displayed. Thank you.
-- [ Drupal support list | http://lists.drupal.org/ ]