diff options
author | natrak <> | 2001-07-25 12:21:48 +0000 |
---|---|---|
committer | natrak <> | 2001-07-25 12:21:48 +0000 |
commit | d016fb14f43976ba184d3e0597065b15f5eca1f0 (patch) | |
tree | d3303a5c55095cdbbc94926274a1512b1b85387c /themes | |
parent | e0dc03dccd90fb6dc0130233719f74429a547cd4 (diff) | |
download | brdo-d016fb14f43976ba184d3e0597065b15f5eca1f0.tar.gz brdo-d016fb14f43976ba184d3e0597065b15f5eca1f0.tar.bz2 |
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.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/goofy/goofy.theme | 4 | ||||
-rw-r--r-- | themes/jeroen/jeroen.theme | 4 |
2 files changed, 4 insertions, 4 deletions
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("<table border=\"0\" function node($node, $main = 0) { echo "\n<!-- node: \"$node->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 ? "<hr color=\"#404040\" size=\"1\"><div align=\"right\">[ " . $this->links(link_node($node)) . " ]</div>" : ""); print "<script language=\"JavaScript\"><!--\ns(\"". $this->stripbreaks(addslashes($title)) ."\",\"". $this->stripbreaks(addslashes($subleft)) ."\",\"". $this->stripbreaks(addslashes($subright)) ."\",\"". $this->stripbreaks(addslashes($body)) ."\"); // -->\n</script>\n"; @@ -112,7 +112,7 @@ function c(subject,mod,author,date,body) {document.writeln("<table border=\"0\" function comment($comment, $link = "") { echo "<A NAME=\"$comment->cid\"></A>\n"; - $author = "<b>" . format_username($comment->userid) . "</b>"; + $author = "<b>" . format_username($comment->userid, $comment->name) . "</b>"; 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 "<FONT SIZE=\"-1\">". strtr(t("$how by %a on %b"), array("%a" => format_username($node->userid), "%b" => format_date($node->timestamp), "large")) ."</FONT>"; + echo "<FONT SIZE=\"-1\">". strtr(t("$how by %a on %b"), array("%a" => format_username($node->userid, $node->name), "%b" => format_date($node->timestamp), "large")) ."</FONT>"; ?> </FONT> </td> @@ -192,7 +192,7 @@ // Author: echo " <tr>"; - echo " <td align=\"right\"><FONT COLOR=\"#FEFEFE\">". t("Author") .":</FONT></td><td><B>". format_username($comment->userid) ."</B> "; + echo " <td align=\"right\"><FONT COLOR=\"#FEFEFE\">". t("Author") .":</FONT></td><td><B>". format_username($comment->userid, $comment->name) ."</B> "; if ($comment->userid) { // Display extra information line: if ($comment->fake_email) $info .= format_email($comment->fake_email); |