364 Commits

Author SHA1 Message Date
moodler
8966a11131 Quiz refactoring is now merged into the main development code!
I've done some basic testing using existing quizzes trying as
much as I could think of, and it all worked well!

Well done, Henrik!  Great job!

Still, this should be regarded as unstable at least until more
people have had a try.  Please test this thing solidly on new
and old quizzes.
2004-07-21 13:01:08 +00:00
moodler
8c467676c2 Two new features for quizzes! (Thanks Shane)
1)  Quizzes can be restricted by subnet

 2)  Quizzes can require a password to be entered before attempts
2004-07-08 07:50:49 +00:00
thepurpleblob
03d0e48201 Added missing handler for exporting Cloze type questions 2004-07-06 14:28:17 +00:00
thepurpleblob
6adaf83e66 fixed bug #1556 - implode could be called on non-array data 2004-06-30 12:39:22 +00:00
thepurpleblob
008589289a More question types added to support quiz exports 2004-06-30 10:11:21 +00:00
thepurpleblob
eea4477b95 Fixed mistake in category selection - now correctly shows selected category 2004-06-23 09:33:47 +00:00
julmis
684d865a49 Updates to quiztimer
- mark question result to zero if time limit is exceeded
2004-06-22 20:44:59 +00:00
thepurpleblob
105d34db95 Editing and adding question controls are now disabled where the user does
not have editing rights. Applies to published categories.
2004-06-22 11:02:37 +00:00
julmis
68a7b97074 Fixes for quiztimer.
- Lets make cheating more complicated, more javascript based.
- Mark attempt to zero if time limit is exceeded over 60 seconds
2004-06-20 10:57:27 +00:00
thepurpleblob
2ceec2d6be Added functions to only display categories that the user is actually
allowed to edit. Used in question edit screens
2004-06-18 12:59:06 +00:00
thepurpleblob
adc8ba57b2 Added function to return category name with course shortname apended
Added functions to read a complete quiz category structure into object
    for development of export functionality - working but partial question
    types at the moment.
2004-06-17 17:29:07 +00:00
julmis
f41e824f33 QuizTimer modifications added plus necessary files along. 2004-06-02 18:03:05 +00:00
moodler
565340c670 Simpler way to update events for a quiz 2004-05-23 10:25:46 +00:00
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