]> git.mjollnir.org Git - moodle.git/commitdiff
User Pictures to dialogue headers.
authorrkingdon <rkingdon>
Sun, 21 Nov 2004 15:30:14 +0000 (15:30 +0000)
committerrkingdon <rkingdon>
Sun, 21 Nov 2004 15:30:14 +0000 (15:30 +0000)
mod/dialogue/dialogues.php
mod/dialogue/locallib.php

index 9bba7443bfd1f8c42f072a40c71ddb48e235b12d..65576be057a7289d44cabdf4ea6ecd8a37ad8133 100644 (file)
     /****************** print dialogue (allowing new entry)********************/
     elseif ($action == 'printdialogue') {
     
-        if (!$conversation = get_record("dialogue_conversations", "id", $_GET['cid'])) {
-            error("Print Dialogue: can not get conversation record");
-        }
+        // if (!$conversation = get_record("dialogue_conversations", "id", $_GET['cid'])) {
+        //     error("Print Dialogue: can not get conversation record");
+        // }
             
         print_simple_box( text_to_html($dialogue->intro) , "center");
         echo "<br />";
index 599421e21758c1303a92a9b8be8e7ce24d760008..d48f43a011d28590e8ab992013f7b2c6d1cb718a 100644 (file)
@@ -455,8 +455,8 @@ function dialogue_list_conversations_self($dialogue) {
                     error("User not found");
                 }
             }
-            // print_user_picture($user->id, $course->id, $user->picture);
-            echo "<b>".get_string("dialoguewith", "dialogue", fullname($otheruser)).
+            $picture = print_user_picture($otheruser->id, $course->id, $otheruser->picture, false, true);
+            echo $picture." <b>".get_string("dialoguewith", "dialogue", fullname($otheruser)).
                 "</b></td>";
             echo "<td bgcolor=\"$THEME->cellheading2\"><i>".clean_text($conversation->subject)."&nbsp;</i><br />\n";
             echo "<div align=\"right\">\n";
@@ -560,8 +560,8 @@ function dialogue_print_conversation($dialogue, $conversation) {
             error("User not found");
         }
     }
-    // print_user_picture($user->id, $course->id, $user->picture);
-    echo "<b>".get_string("dialoguewith", "dialogue", fullname($otheruser)).
+    $picture = print_user_picture($otheruser->id, $course->id, $otheruser->picture, false, true);
+    echo $picture." <b>".get_string("dialoguewith", "dialogue", fullname($otheruser)).
         "</b></td>";
     echo "<td bgcolor=\"$THEME->cellheading2\"><i>".clean_text($conversation->subject)."&nbsp;</i><br />\n";
     echo "<div align=\"right\">\n";
@@ -728,8 +728,8 @@ function dialogue_show_conversation($dialogue, $conversation) {
             error("User not found");
         }
     }
-    // print_user_picture($user->id, $course->id, $user->picture);
-    echo "<b>".get_string("dialoguewith", "dialogue", fullname($otheruser)).
+    $picture = print_user_picture($otheruser->id, $course->id, $otheruser->picture, false, true);
+    echo $picture." <b>".get_string("dialoguewith", "dialogue", fullname($otheruser)).
         "</b></td>";
     echo "<td bgcolor=\"$THEME->cellheading2\" valign=\"top\"><i>".clean_text($conversation->subject)."&nbsp;</i></td></tr>";