Having author names instead of usernames

jsmccul1 - July 16, 2008 - 19:40

I have looked over all other forums on this topic but I cant seem to figure out what to do. I need to change my bylines so instead of a username it just appears as a name, like Bob Smith instead of bsmith12 or something. I found where to change it in my coding of node.tpl.php where it says:

<?php
print t('!date — !username', array('!username' => theme('username', $node), '!date' => format_date($node->created)));
?>

But I don't know what to change it to to make it the way I want it. Can someone help out and tell me what to change the code to?

Thanks

You might want to check out

nevets - July 16, 2008 - 20:02

You might want to check out http://drupal.org/node/122303 which talks about this issue including ways to do this.

I tried...

jsmccul1 - July 18, 2008 - 04:11

I looked at that node and tried adding the code in template.php and it didn't seem to work...is there any way I could just rewrite that one line I put above? Sorry I'm new to drupal and I'm not great at computer programming in general.

Have a look at the Realname

Magnity - July 16, 2008 - 21:26
 
 

Drupal is a registered trademark of Dries Buytaert.