Drupal's core username theme output has a limit to the number of characters in the username until it truncates it with ellipsis.

It's a bugger because I want to use [First name] [Last name] - [Job title] via Realname, which makes it quite large, and when I retheme the user output with phptemplate, Realname doesn't recognise the replacement function in template.php.

Have you got any tips on theming username via template.php so Realname recognises the function and displays output without truncating?

Comments

NancyDru’s picture

Status: Active » Fixed

When the next -dev release rolls out, there is a new parameter to specify the maximum length. You will probably want to set it very large.

Fix committed on both branches.

transio’s picture

I want to patch this before the next version comes out. Any pointers on where to look in the code?

transio’s picture

Nevermind... I found the substr() in the theme file. Thanks!

NancyDru’s picture

Read response #1 - it is a setting now. No theme changes or code hacks are needed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.