[support] ***DHSPAM*** long username getting truncated at the bottom of blog posts
Michael Prasuhn
mike at mikeyp.net
Wed Jun 6 21:54:31 UTC 2007
That is probably because theme_username purposely truncates
usernames. In the code it is documented as "Shorten the name when it
is too long or it will break many tables."
If you wanted to override this, you could define a new function in
the template.php file of your theme. To do this, simply copy the of
the existing function from <http://api.drupal.org/api/5/function/
theme_username> and rename it to your-theme's-name_username. Then
depending on what you want to do, you could simply comment out the line
$name = drupal_substr($object->name, 0, 15) .'...';
or change the value (15) to something long enough to allow the user's
name to not be truncated. You could even code it so that, only this
user's name is exempt from the filter, or subject to different
filtering.
Hope this helps
-Mikey P
On Jun 6, 2007, at 2:13 PM, Jean Gazis wrote:
> I have a user with a long (real name as user) name - the "Submitted
> by" under her blog posts is truncating it as "Submitted by
> Firstname La...". There is extra space in the container - the
> author and date don't fill the entire width, but it's cutting off
> the name before the date field. How can I make it show the full
> user name? I can't tell from searching whether this needs to be
> fixed in the theme css or in the template files or what. It's not
> even an unusual name.
__________________
Michael Prasuhn
mike at mikeyp.net
http://mikeyp.net
714.356.0168
More information about the support
mailing list