Permalink
Browse files

User Pictures to dialogue headers.

  • Loading branch information...
1 parent 706552f commit 5c2b2dd83a7bffb31b69f82a312680d8c0aae080 rkingdon committed Nov 21, 2004
Showing with 9 additions and 9 deletions.
  1. +3 −3 mod/dialogue/dialogues.php
  2. +6 −6 mod/dialogue/locallib.php
@@ -268,9 +268,9 @@
/****************** 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 />";
View
@@ -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>";

0 comments on commit 5c2b2dd

Please sign in to comment.