User Pictures to dialogue headers.
This commit is contained in:
@@ -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 />";
|
||||
|
||||
@@ -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)." </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)." </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)." </i></td></tr>";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user