Closed (works as designed)
Project:
Drupal core
Version:
6.13
Component:
node system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Jul 2009 at 23:49 UTC
Updated:
5 Jan 2012 at 13:23 UTC
I've seen a few discussions about this but nothing that's helped me solve my problem. I'm trying to increase the maximum displayed length of the author name in $submitted. For the life of me I cannot find out where it's doing the cut.
Can anyone point me to a place to increase this length?
Thanks. (Using Newsflash theme).
Comments
Comment #1
mikey_p commentedThe username is shortened to 15 characters (+ ...) in theme_username(). You can easily override this theme function in your own theme, but it may break some tables, as is noted in the comments of theme_username().
Comment #2
allisonredhead commentedThanks.
Being a tinkerer, I'm having a very hard time figuring out how to do this. I've tried getting through overrides and hooks and all that but I'm all thumbs. Do you have a pointer to how I can override this exactly...? I think it would be in template.tpl.php in my theme's main dir? I've read the guide to overriding in themes, but I make a mess of it every time.
HELP? (Thanks so much for the quick reply, by the way).
Comment #3
gbaudoin commentedYou can use a profile for your users ( http://drupal.org/project/content_profile ) with first/middle/lastname and display them as you see fit instead of relying on $submitted to have the proper displayable format.