I actually changed the line above like this:<br><br> if (drupal_strlen($object->name) > 22) {<br> $name = drupal_substr($object->name, 0, 15)<br><br>- where the 22 used to be 20. She happens to have a 21-letter name, what are the odds? (Probably not actually that small.)
<br><br>Anyway, it seems to have worked fine. Thanks to you and whoever else it was that answered my question.<br><br>Jean Gazis<br><br><div><span class="gmail_quote">On 6/6/07, <b class="gmail_sendername">Michael Prasuhn
</b> <<a href="mailto:mike@mikeyp.net">mike@mikeyp.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">That is probably because theme_username purposely truncates
<br>usernames. In the code it is documented as "Shorten the name when it<br>is too long or it will break many tables."<br><br>If you wanted to override this, you could define a new function in<br>the template.php
file of your theme. To do this, simply copy the of<br>the existing function from <<a href="http://api.drupal.org/api/5/function/">http://api.drupal.org/api/5/function/</a><br>theme_username> and rename it to your-theme's-name_username. Then
<br>depending on what you want to do, you could simply comment out the line<br><br>$name = drupal_substr($object->name, 0, 15) .'...';<br><br>or change the value (15) to something long enough to allow the user's
<br>name to not be truncated. You could even code it so that, only this<br>user's name is exempt from the filter, or subject to different<br>filtering.<br><br>Hope this helps<br><br>-Mikey P<br><br><br>On Jun 6, 2007, at 2:13 PM, Jean Gazis wrote:
<br><br>> I have a user with a long (real name as user) name - the "Submitted<br>> by" under her blog posts is truncating it as "Submitted by<br>> Firstname La...". There is extra space in the container - the
<br>> author and date don't fill the entire width, but it's cutting off<br>> the name before the date field. How can I make it show the full<br>> user name? I can't tell from searching whether this needs to be
<br>> fixed in the theme css or in the template files or what. It's not<br>> even an unusual name.<br><br>__________________<br>Michael Prasuhn<br><a href="mailto:mike@mikeyp.net">mike@mikeyp.net</a><br><a href="http://mikeyp.net">
http://mikeyp.net</a><br>714.356.0168<br><br><br><br>--<br>[ Drupal support list | <a href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><br>-- <br>Jean Gazis<br><a href="http://www.jeangazis.com">
www.jeangazis.com</a><br><a href="http://www.boxofrain.us">www.boxofrain.us</a><br><br>"Believe those who are seeking the truth; doubt those who find it." - André Gide