151 Commits

Author SHA1 Message Date
moodler
a601728c8d Fix for BUg 320 from Bernard Boucher 2004-05-19 02:53:03 +00:00
moodler
b2a3cd2d24 Quizzes with long periods (longer than 5 days) are now handled
in the calendar as two separate events ... one for open and one for close

bug 1402
2004-05-17 17:04:01 +00:00
moodler
8cadd23f98 Some cleaning up of the navigation bars in quizzes 2004-05-16 10:20:26 +00:00
moodler
b7f3582008 Use overlib feedback on cloze-style questions 2004-05-16 03:14:03 +00:00
moodler
e70bda424b Fixes to prevent users from creating bad quiz questions with not
enough answers in them.

Thanks to Shane Elliott (Ikawhero)
2004-05-14 14:36:32 +00:00
gustav_delius
dcd338ffdc Events associated to hidden activities are now invisible in calendar, using new field 'visible' in table 'event' which is updated each time a course module is hidden or unhidden. 2004-05-05 07:07:56 +00:00
moodler
d2f308c091 Support for events.
Ouch - I thought I'd checked this in days ago
2004-04-28 02:56:40 +00:00
stronk7
ff4c50a9a2 As showing/hiding "Save my answers" button was based in empty($results),
moved $results->attemptbuildsonthelast to $attemptbuildsonthelast.
This was introduced in my latest CVS version, trying to take out
some notices...solved now.
2004-04-25 09:16:19 +00:00
stronk7
c18490b89b Take our some notices... 2004-04-25 08:43:42 +00:00
stronk7
464edd6d2e Solved two small typos preventing quiz being deleted properly in
quiz_delete_instance() function:
public----------------------------------->publish
get_record("quiz_attempts")------------->get_records("quiz_attempts")
2004-04-07 23:38:48 +00:00
moodler
d396ba798f Multianswer cloze questions now show feedback (you need to hover
your mouse over the answers)
2004-03-19 14:51:29 +00:00
moodler
a384809295 Handle '+' signs in short answers 2004-03-15 14:41:19 +00:00
moodler
8c0f49667f In shortanswers you can now use \* (ie slash asterisk) to mean a real asterisk
Normally the asterisk is a wildcard
2004-03-12 13:03:51 +00:00
moodler
52a88a8726 More rubustness 2004-03-10 03:45:44 +00:00
moodler
a9f80673b6 SHortanswer field just a bit bigger 2004-03-09 05:56:43 +00:00
moodler
a8d909c77b Fix case of printing shortanswers with quotes in them 2004-03-09 05:51:16 +00:00
moodler
62b7ad7bf5 Slightly bigger input box for short answers
http://moodle.org/mod/forum/discuss.php?d=5909
2004-03-06 09:51:52 +00:00
selliott
6a0c9cf8a3 Added logic in function quiz_get_recent_mod_activity for groups 2004-02-20 21:47:55 +00:00
moodler
e8da8d7004 Format answers in multiple choice questions 2004-02-19 18:14:19 +00:00
moodler
a740ff66d9 Don't show editing icons when questions can't be edited! 2004-02-19 07:53:09 +00:00
moodler
a0beda7a7a Format quiz feedback 2004-02-18 03:07:50 +00:00
moodler
fc4a5a2f63 FIxed the logging of attempts so that clicking on the link in the log
actually shows you that attempt, rather than opening a new one!
2004-02-17 12:14:02 +00:00
selliott
740f94d8e7 Deleted quiz_print_recent_instance_activity and quiz_get_recent_quizzes (only used in course/recent.php)
Added quiz_print_recent_mod_activity and quiz_get_recent_mod_activity (for course/recent.php)
2004-02-15 06:26:55 +00:00
moodler
5cdb8a856a Quiz questions now have proper formatting controls.
Any format can be used.  This fixes a number of problems at once,
but the latest one is Bug #1047
2004-02-13 14:01:27 +00:00
moodler
0c29498ede Use format_text on question texts so we get caching, filters etc 2004-02-12 03:41:16 +00:00
selliott
0eb7764d4d Added user parameter to print_recent_instance_activity and get_recent_quizzes (for course/recent.php) 2004-02-05 20:40:59 +00:00
selliott
fdba9bb4d9 Added functions quiz_get_recent_quizzes and quiz_print_recent_instance_activity for course/recent.php (a recent activities page). 2004-02-04 15:12:06 +00:00
gustav_delius
d7143408df replaced incorrectly closed html tags, see bug 365 2004-01-25 20:34:54 +00:00
moodler
18352a55f5 For now just avoid public categories.
It would be nice if instead a check was made to make sure that the
category wasn't being used by other courses, then even public
categories could be deleted.
2004-01-21 17:13:55 +00:00
moodler
b2d594c8de New function quiz_delete_course() which deletes all the leftover stuff
while a course is being deleted
2004-01-21 16:44:22 +00:00
moodler
facbf40f92 Only list categories that belong to real courses 2004-01-21 16:04:55 +00:00
moodler
22592150f9 Slight fix for null case (Add Choose item on popup menus) 2004-01-21 03:22:16 +00:00
moodler
b0be6c79bf Some fixes for displaying empty grades in quizzes
suggested by Marilyn Fleming http://moodle.org/mod/forum/discuss.php?d=4636
2004-01-18 06:17:02 +00:00
moodler
2d1c22bb66 Menus on quiz editing no longer need the submit buttons 2004-01-15 15:26:34 +00:00
moodler
29fb5974e7 Increased QUIZ_MAX_NUMBER_ANSWERS to 10, and actually made it apply to everythin 2004-01-10 07:39:19 +00:00
kaipe
5276dc4887 Short-answer fixes:
As the wild card feature makes it possible for a response to match more than one answer alternative, I made sure that the alternative with the
highest grade would count.
I also fixed bug #945 for the short answer case.
2004-01-01 15:01:29 +00:00
kaipe
e097165541 Fixed a single/double quote issue (again) 2003-12-31 19:22:38 +00:00
moodler
89b8d337da Fixed some single/double quote issues 2003-12-30 07:28:43 +00:00
moodler
d751243549 Bodgy HTML converted to nice clean XHTML fragments.
Thanks to Jonathan Moore and all his work!
2003-12-30 07:04:04 +00:00
moodler
0ce4aa1a8a Some preliminary code to allow wildcards in short answers.
Based on code sent by Thomas Robb
2003-12-29 09:40:23 +00:00
moodler
43bf9fc2d7 Reworking of the plug-in format for import/export files.
Each format is now in it's own subdirectory, which allows the
format to have as many files as it likes.  The formats are now
detected automatically (no need to edit lib.php anymore) and
the parent class is now in mod/quiz/format.php

Lastly, I added Paul Shew's new GIFT format.
2003-12-12 07:35:55 +00:00
kaipe
1e085edc43 The Quizzes page is given an "Edit questions" button that links to a possibility to edit questions without opening a quiz. 2003-12-10 20:03:59 +00:00
moodler
0315927955 New format called "Aiken format" by Thomas Robb (and Art Lader)
to allow import of questions like this:

Every seriously injured person is likely to go into
A) shock.
B) infection.
C) hemorrhage.
D) respiratory pain.
ANSWER: A
2003-12-01 06:37:14 +00:00
kaipe
7c9c2a8da6 Made it possble to give negative grades for single multichoice answers in a question with embedded answers, as suggested by Koen Roggemans. The total score of the whole question must still be greater than or equeal to zero. 2003-11-20 19:39:08 +00:00
moodler
45376a51a9 Don't have the Javascript dialog on submitting an attempt if the quiz
doesn't have a grade.
2003-11-15 03:31:37 +00:00
kaipe
fe98ea90f9 The new quizfile.php makes it possible to view associated file material on quizes, such as images, even for questions belonging to a category on a different course. lib.php is updated accordingly... 2003-11-02 21:36:25 +00:00
kaipe
004c02e05c An improvement asked for by koen roggemans:
Especially for multianswer questions it is often desirable to have the grade of the question in a quiz larger than the earlier maximum of 10 points.
The new function quiz_gradesmenu_options($defaultgrade) makes quiz question list grade selector drop-down have the maximum grade option set to the highest value between 10 and the defaultgrade of the question.
2003-10-31 21:27:43 +00:00
moodler
16a1917250 Fix bug in NUMERICAL questions where feedback was only shown if the
question was correct
2003-10-23 15:40:17 +00:00
moodler
857e0dfdd5 Added new import format - Course Test Manager - from Russell Jungwirth.
All I've done is clean up the source code - I've not tested it at all.
2003-10-15 08:53:51 +00:00
moodler
d061d88381 MOved quiz_get_participants from the bottom to the standard functions area 2003-09-28 14:57:16 +00:00