/****************** 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 />";
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";
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";
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>";