From 1e4308a939723529b665ac7e0e0356950a0507f7 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Tue, 2 Apr 2002 09:45:57 +0000 Subject: - made the user information block into two different blocks. One for login and one for user information. - added link to help in book module (post-patch, see below). - applied various patches: Patch by Greg Tyrelle - tracker module now shows usernames next to comments. Patch by Moshe Weitzman - book module has a more complete help. - added administrative link to export book to html - fixed non book nodes not showing up in trees. Patch by moshe weitzman - links can be defined in the configuration file. --- modules/user.module | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'modules/user.module') diff --git a/modules/user.module b/modules/user.module index 78c233300..e90c2e702 100644 --- a/modules/user.module +++ b/modules/user.module @@ -464,9 +464,10 @@ function user_block() { $output .= @implode("
\n", $links); $output .= ""; + $block[0]["content"] = $output; } else { - $block[0]["subject"] = t("Log in"); + $block[1]["subject"] = t("Log in"); $output .= "
\n"; $output .= "
\n"; @@ -477,11 +478,15 @@ function user_block() { if (variable_get("account_register", 1)) $output .= " ". t("REGISTER") ."\n"; $output .= "
\n"; $output .= "
\n"; + $block[1]["content"] = $output; } - $block[0]["content"] = $output; + $block[0]["info"] = t("User information"); $block[0]["link"] = "module.php?mod=user"; + $block[1]["info"] = t("Log in"); + $block[1]["link"] = "module.php?mod=user"; + // Who's online block $time = 60 * 60; // minutes * seconds $limit = 5; // List the X most recent people @@ -494,10 +499,10 @@ function user_block() { $output .= '
  • '. (strlen($account->name) > 10 ? substr($account->name, 0, 10) . '...' : $account->name) .'
  • '; } $output .= ""; - $block[1]["content"] = $output; + $block[2]["content"] = $output; } - $block[1]["subject"] = t("Who's online"); - $block[1]["info"] = t("Who's online"); + $block[2]["subject"] = t("Who's online"); + $block[2]["info"] = t("Who's online"); return $block; } -- cgit v1.2.3