diff --git a/user/index.php b/user/index.php index e4a6779eabe..fa6a8e68cff 100644 --- a/user/index.php +++ b/user/index.php @@ -54,7 +54,7 @@ function print_user($user, $course, $teacherlinks) { - global $COUNTRIES; + global $USER, $COUNTRIES; echo "
"; echo ""; @@ -80,13 +80,11 @@ function print_user($user, $course, $teacherlinks) { if ($teacherlinks) { $timemidnight = usergetmidnight(time()); echo "id&user=$user->id\">".get_string("activity")."
"; - echo "id&user=$user->id&date=$timemidnight\">".get_string("todaylogs")."
"; - echo "id&user=$user->id\">".get_string("alllogs")."
"; echo "id&user=$user->id\">".get_string("unenrol")."
"; if (isstudent($course->id, $user->id)) { echo "id&user=$user->id\">".get_string("loginas")."
"; } - } + } echo "id&course=$course->id\">".get_string("fullprofile")."..."; echo ""; diff --git a/user/view.php b/user/view.php index dd2fe22f453..21704ed0d8c 100644 --- a/user/view.php +++ b/user/view.php @@ -116,14 +116,27 @@ echo "
"; // Print other functions - if ($user->id == $USER->id and !isguest() ) { - echo "
"; + echo "
"; + if (isteacher($course->id) or ($user->id == $USER->id and !isguest()) ) { echo ""; - echo "

"; echo "id\">"; + echo "id\">"; echo "shortname)."\">"; echo "

\n"; } + if (isteacher($course->id)) { + echo "

"; + echo "id\">"; + echo "id\">"; + echo ""; + echo "

"; + echo "

"; + echo "id\">"; + echo "id\">"; + echo ""; + echo "

"; + } + echo "\n"; print_user_discussions($course, $user);