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

mikey_p’s picture

The 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().

allisonredhead’s picture

Thanks.

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).

gbaudoin’s picture

Status: Active » Closed (works as designed)

You 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.