From d016fb14f43976ba184d3e0597065b15f5eca1f0 Mon Sep 17 00:00:00 2001
From: natrak <>
Date: Wed, 25 Jul 2001 12:21:48 +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/goofy/goofy.theme | 4 ++--
themes/jeroen/jeroen.theme | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
(limited to 'themes')
diff --git a/themes/goofy/goofy.theme b/themes/goofy/goofy.theme
index b2b7bea4c..6c338b18a 100644
--- a/themes/goofy/goofy.theme
+++ b/themes/goofy/goofy.theme
@@ -102,7 +102,7 @@ function c(subject,mod,author,date,body) {document.writeln("
title\" -->\n";
$title = check_output($node->title);
- $subleft = strtr(t("Submitted by %a on %b"), array("%a" => format_username($node->userid), "%b" => format_date($node->timestamp, "large")));
+ $subleft = strtr(t("Submitted by %a on %b"), array("%a" => format_username($node->userid, $node->name), "%b" => format_date($node->timestamp, "large")));
$subright = node_index($node);
$body = check_output($node->body, 1) . ($main ? "
[ " . $this->links(link_node($node)) . " ]
" : "");
print "\n";
@@ -112,7 +112,7 @@ function c(subject,mod,author,date,body) {document.writeln("cid\">\n";
- $author = "" . format_username($comment->userid) . "";
+ $author = "" . format_username($comment->userid, $comment->name) . "";
if ($comment->userid) {
if ($comment->fake_email) $info[] = format_email($comment->fake_email);
if (eregi("http://",$comment->url)) $info[] = format_url($comment->url);
diff --git a/themes/jeroen/jeroen.theme b/themes/jeroen/jeroen.theme
index 7c9a1a03f..b91cd71f8 100644
--- a/themes/jeroen/jeroen.theme
+++ b/themes/jeroen/jeroen.theme
@@ -117,7 +117,7 @@
case 12: $how = "Forged"; break;
default: $how = "Sneaked through";
}
- echo "". strtr(t("$how by %a on %b"), array("%a" => format_username($node->userid), "%b" => format_date($node->timestamp), "large")) ."";
+ echo "". strtr(t("$how by %a on %b"), array("%a" => format_username($node->userid, $node->name), "%b" => format_date($node->timestamp), "large")) ."";
?>
@@ -192,7 +192,7 @@
// Author:
echo " ";
- echo " ". t("Author") .": | ". format_username($comment->userid) ." ";
+ echo " | ". t("Author") .": | ". format_username($comment->userid, $comment->name) ." ";
if ($comment->userid) {
// Display extra information line:
if ($comment->fake_email) $info .= format_email($comment->fake_email);
--
cgit v1.2.3
|