Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
NancyDruWhen 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.
Comment #2
transio CreditAttribution: transio commentedI want to patch this before the next version comes out. Any pointers on where to look in the code?
Comment #3
transio CreditAttribution: transio commentedNevermind... I found the substr() in the theme file. Thanks!
Comment #4
NancyDruRead response #1 - it is a setting now. No theme changes or code hacks are needed.