Closed (fixed)
Project:
Real Name
Version:
7.x-1.0-rc1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Jun 2011 at 14:30 UTC
Updated:
10 Jan 2019 at 18:05 UTC
Jump to comment: Most recent
Comments
Comment #1
nancydruOn the "General" tab, there is a setting called "Maximum allowed username length." (At least in D6.)
Comment #2
dddbbb commentedCan't see a General tab on the D7 version.
Comment #3
dave reidIt trims to 255 characters. How is that short?
Comment #4
dddbbb commented255 characters sounds like plenty, however this is not what I'm experiencing.
I'm seeing it trim at 15 characters and then an elipsis added to the end. I'm using a first name and last name field on user profiles to determine a user's 'real name' and a maximum of 15 chars just seems way short (most names are being trimmed as a result).
Comment #5
dave reidAh, you are seeing the core theme('username') behavior.
http://api.drupal.org/api/drupal/includes--theme.inc/function/template_p... automatically trims usernames to 15 characters.
Comment #6
dddbbb commentedDo you know how I might be able to override this and set it to something higher than 15?
Comment #7
dave reidThe best resource is the documentation handbook on overriding themeable output: http://drupal.org/node/341628
Comment #9
liquidcms commentedthis is ridiculous that core clips usernames like this..
as Dave suggested, in D7 the code to fix this is this.. and goes in your template.php
Comment #10
dddbbb commented@liquidcms Thanks for the suggested fix. I'll give it a try.
Comment #11
gionnibgud commentedThis was enough.
cheers
Comment #12
radziaziz commentedthanks, gionnibgud. Your solution works at least for me.
Comment #13
waverate commentedWhat's the D8 (8.6.5) equivalent of #11?