--- /Users/daniele/Desktop/moodle/blocks/online_users/block_online_users.php 2007-05-16 04:39:41.000000000 +0200 +++ /Users/daniele/Sites/moodle18/blocks/online_users/block_online_users.php 2007-05-28 14:08:39.000000000 +0200 @@ -64,7 +64,7 @@ $users = array(); - $SQL = "SELECT u.id, u.username, u.firstname, u.lastname, u.picture, u.lastaccess, ul.timeaccess + $SQL = "SELECT u.id, u.username, u.firstname, u.lastname, u.picture, u.lastaccess, u.skype, ul.timeaccess FROM {$CFG->prefix}user_lastaccess ul, {$CFG->prefix}user u $groupmembers @@ -126,6 +126,11 @@ $this->content->text .= print_user_picture($user->id, $COURSE->id, $user->picture, 16, true, false, '', false); $this->content->text .= $user->fullname.''; } + if ($user->skype && !isset($hiddenfields['skypeid'])) { + $this->content->text .= '
'; + } if (!empty($USER->id) and ($USER->id != $user->id) and !empty($CFG->messaging) and !isguest() and $user->username != 'guest') { // Only when logged in and messaging active etc $this->content->text .= '