By sinker on
So my users like to have long user names (not long like "supersuperlonglongname" where there are no spaces, but instead "super super long long name," with spaces. In most instances, like comments, and blog posts, their names are being truncated to just 14 characters, so instead their name is coming up as "super super lo..." How can I make it so that their entire name displays instead of the cuttoff version?
Comments
Theme the 'username' function
The cutting off occurs in theme_username (http://api.drupal.org/api/4.7/function/theme_username). Assuming your theme uses PHPTemplate engine, you can change it: in the theme directory, create a template.php file and write this in it:
If the theme already contains template.php file, append the function on its end.
Note: Drupal cuts off the username because long usernames may break some tables. Disabling it may result in unexpected behavior.