From 491550531fbe1885a12693cecdf02a9970c2672d Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Wed, 25 Jul 2001 12:21:49 +0000 Subject: common.inc - format_username() now takes a second optional parameter which gives the real name of the user. Rest - updated the calls to format_username() where appropriate to show the name of the user instead of the account id. Clicking on a name will still give you the account info etc. If you find a place where the real name is not shown let me know. --- themes/example/example.theme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'themes/example/example.theme') diff --git a/themes/example/example.theme b/themes/example/example.theme index af4d900b4..0a34d71b9 100644 --- a/themes/example/example.theme +++ b/themes/example/example.theme @@ -63,7 +63,7 @@ format_username($node->userid), "%b" => format_date($node->timestamp, "small"))); + echo strtr(t("by %a on %b"), array("%a" => format_username($node->userid, $node->name), "%b" => format_date($node->timestamp, "small"))); ?> @@ -120,7 +120,7 @@ echo t("Author") .":"; echo " "; echo " "; - echo format_username($comment->userid) ." on ". format_date($comment->timestamp); + echo format_username($comment->userid, $comment->name) ." on ". format_date($comment->timestamp); echo " "; echo " "; -- cgit v1.2.3