From 5325f8b8cf04b223e97c16b2a0746ebf2a9458ad Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 23 May 2003 15:20:41 +0000 Subject: [PATCH] A little more guidance on the quiz page. --- lang/en/quiz.php | 1 + mod/quiz/lib.php | 20 ++++++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/lang/en/quiz.php b/lang/en/quiz.php index bd893244384..e6149037adf 100644 --- a/lang/en/quiz.php +++ b/lang/en/quiz.php @@ -6,6 +6,7 @@ $string['modulenameplural'] = "Quizzes"; #------------------------------------------------------------ $string['addquestions'] = "Add questions"; +$string['addingquestions'] = "This side of the page is where you manage your database of questions. Questions are stored in categories to help you keep them organised, and can be used by any quiz in your course or even other courses if you choose to 'publish' them.

After you select or create a question category you will be able to create or edit questions. You can select any of these questions to add to your quiz over on the other side of this page."; $string['addquestionstoquiz'] = "Add questions to current quiz"; $string['addselectedtoquiz'] = "Add selected to quiz"; $string['allowreview'] = "Allow review"; diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index 4489242640a..dadd39d3ec3 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -33,7 +33,8 @@ $QUIZ_FILE_FORMAT = array ( "custom" => get_string("custom", "quiz"), "aon" => "AON" ); -define("QUIZ_PICTURE_DEFAULT_HEIGHT", "200"); +define("QUIZ_PICTURE_MAX_HEIGHT", "600"); // Not currently implemented +define("QUIZ_PICTURE_MAX_WIDTH", "600"); // Not currently implemented define("QUIZ_MAX_NUMBER_ANSWERS", "8"); @@ -421,7 +422,7 @@ function quiz_print_question($number, $question, $grade, $courseid, } echo text_to_html($question->questiontext); if ($question->image) { - print_file_picture($question->image, $courseid, QUIZ_PICTURE_DEFAULT_HEIGHT); + print_file_picture($question->image, $courseid); } if ($response) { $value = "VALUE=\"$response[0]\""; @@ -456,7 +457,7 @@ function quiz_print_question($number, $question, $grade, $courseid, } echo text_to_html($question->questiontext); if ($question->image) { - print_file_picture($question->image, $courseid, QUIZ_PICTURE_DEFAULT_HEIGHT); + print_file_picture($question->image, $courseid); } $truechecked = ""; @@ -501,7 +502,7 @@ function quiz_print_question($number, $question, $grade, $courseid, } echo text_to_html($question->questiontext); if ($question->image) { - print_file_picture($question->image, $courseid, QUIZ_PICTURE_DEFAULT_HEIGHT); + print_file_picture($question->image, $courseid); } echo ""; echo "
$stranswer:  "; @@ -557,7 +558,7 @@ function quiz_print_question($number, $question, $grade, $courseid, echo text_to_html($question->questiontext); } if (!empty($question->image)) { - print_file_picture($question->image, $courseid, QUIZ_PICTURE_DEFAULT_HEIGHT); + print_file_picture($question->image, $courseid); } if ($shuffleanswers) { @@ -607,7 +608,7 @@ function quiz_print_question($number, $question, $grade, $courseid, } echo text_to_html($question->questiontext); if ($question->image) { - print_file_picture($question->image, $courseid, QUIZ_PICTURE_DEFAULT_HEIGHT); + print_file_picture($question->image, $courseid); } /// First, get all the questions available @@ -1066,9 +1067,12 @@ function quiz_print_cat_question_list($categoryid) { $strcreatemultiple = get_string("createmultiple", "quiz"); if (!$categoryid) { - echo "

"; + echo "

"; print_string("selectcategoryabove", "quiz"); - echo "

"; + echo "

"; + echo "

"; + print_string("addingquestions", "quiz"); + echo "

"; return; }