From 7ccab9b1d5bc2054b7df2081149437d086c3c32e Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 28 Dec 2004 13:50:17 +0000 Subject: [PATCH] Added messaging buttons to the online users list --- blocks/online_users/block_online_users.php | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/blocks/online_users/block_online_users.php b/blocks/online_users/block_online_users.php index 18afee531b..05a67fef51 100644 --- a/blocks/online_users/block_online_users.php +++ b/blocks/online_users/block_online_users.php @@ -106,30 +106,20 @@ class block_online_users extends block_base { foreach ($users as $user) { $this->content->text .= '
'; $timeago = format_time(time() - max($user->timeaccess, $user->lastaccess)); //bruno to calculate correctly on frontpage - if ($user->picture==0) { - $this->content->text .= ' '; - } else { + if ($user->picture) { if ($CFG->slasharguments) { $imgtag = ' '; } else { $imgtag = ' '; } $this->content->text .= $imgtag; + } else { + $this->content->text .= ' '; } - $this->content->text .= ''.$user->fullname.'
'; - } -/* - $table->align = array("right","left"); - $table->cellpadding = 1; - $table->cellspacing = 1; - $table->data[] = array("pixpath/i/user.gif\" height=\"16\" width=\"16\" alt=\"\" />",$user->fullname); + $this->content->text .= ''.$user->fullname.''; + $this->content->text .= ' '; + $this->content->text .= ''; } - // Slightly hacky way to do it but... - ob_start(); - print_table($table); - //$this->content->text .= "
".ob_get_contents(); - ob_end_clean(); -*/ } else { $this->content->text .= "
".get_string("none")."
"; } -- 2.39.5