[support] How can i prepend tags do usernames?

William Smith william.darren at gmail.com
Sun Aug 15 18:57:06 UTC 2010


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 at felipefidelix.com>wrote:

> 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/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100815/8ea9fbf4/attachment.html 


More information about the support mailing list