53 Commits

Author SHA1 Message Date
defacer
9173a5671c Searching around in the langfile, it seems that these are the correct
strings for the helpbuttons' title attribute. I added the first helpbutton
back in as well (exists in 1.5.3+ but not in HEAD???).
2005-11-23 21:16:47 +00:00
defacer
8635a2824a Fixing one get_string() that didn't specify the Quiz langfile, and changing
another to be uniform with the help file title.

Some things in the langfile need fixing too, coming right up.
2005-11-23 21:00:40 +00:00
gustav_delius
aca55f679c A bit of code cleanup as suggested by Olaf Rempel in bug 3881 2005-08-26 19:12:17 +00:00
gustav_delius
c0bbeb675a Removed the restriction that the quiz timelimit has to be less than the session timeout 2005-08-26 18:47:24 +00:00
gustav_delius
9235fb7977 Removed the restriction that the quiz timelimit has to be less than the session timeout 2005-08-26 17:57:36 +00:00
gustav_delius
bb52d44c6a Due date and start date are now optional, as requested in bug 867 and bug 3635 2005-07-07 17:16:56 +00:00
gustav_delius
8c95e97fec merged from stable 2005-06-21 06:57:30 +00:00
gustav_delius
7bbe08a267 Merged from stable 2005-06-04 09:58:35 +00:00
gustav_delius
75e1df6fd2 "Attempt builds on last" feature reenabled 2005-05-07 18:50:32 +00:00
gustav_delius
ef76e0326d Some work on the penalty mechanism. Took out the multiplicative scheme because it is just too difficult to understand. Made all question types print grading details when quiz is in adaptive mode. Made improvements to the presentation of the grading details. Enabled the penalty mechanism in a few more (on my way towards doing it for all). 2005-05-07 13:30:35 +00:00
gustav_delius
ee1fb969c8 Merging in from the MOODLE_15_QUIZREFACTOR branch.
The quiz module now can handle adaptive questions and can render remote questions via RQP web services.
2005-05-06 06:24:04 +00:00
gustav_delius
4fe082e86c quiz_decimalpoints now works correctly also as an advanced option. 2005-04-12 04:48:11 +00:00
gustav_delius
a5c5a1807f fixed bug 2782 2005-03-29 19:24:04 +00:00
gustav_delius
ee930c461d made appearance of quiz setup page look like the resource setup pages, see bug 2587. Also added the new variable quiz_questionsperpage properly. 2005-02-18 17:20:06 +00:00
stronk7
ee40f7a720 Added configuration support for decimalpoints 2005-02-14 18:56:53 +00:00
gustav_delius
48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00
moodler
d3c8056258 Changes for XHTML and accessibility compatibility.
Tidied up layout and other minor changes.
2005-01-25 09:39:29 +00:00
stronk7
1082105205 Modify sesskey behaviour. SC#73 2005-01-22 18:53:44 +00:00
gustav_delius
c1edf51947 When setting up a new quiz the teacher is always redirected to the question edit page so there is no need for two buttons on mod.html 2005-01-12 07:03:25 +00:00
gustav_delius
76cacec819 split quiz lib.php into a locallib.php for functions that are only used from within the quiz module and a much smaller lib.php for functions that are used from elsewhere in Moodle. 2005-01-08 20:06:00 +00:00
kaipe
d70ccc495c New feature:
Maximum-number-of-questions-per-page
2005-01-03 00:41:33 +00:00
gustav_delius
34283aa87d The teacher now can choose whether to see the advanced quiz
options or not. This is handled as in the resource module. The
"Show advanced options" button is only shown if the admin has
chosen to declare some of the options as advanced.

There are now 4 review options as suggested by Martin in
http://moodle.org/mod/forum/discuss.php?d=16709

Provides separate buttons "Update this quiz" and "Edit questions",
see http://moodle.org/mod/forum/discuss.php?d=16708. To make this
possible edit.php can now be called with a quiz id and it saves
its data itself rather than relying on mod.php.

mod.html now has a "Save changes" and a "Save changes and edit questions" button.

"Attempt quiz now" button gets a different language string for
re-attempts. This is currently set to "Re-attempt quiz".

After viewing the feedback for an attempt the "Continue" button
leads back to the course homepage, as requested in bugs 1224 and
1976. If there is no feedback the user is brought straight to quiz/view.php.
2005-01-02 07:15:19 +00:00
gustav_delius
a5c0990e5d New quiz config page to allow admin to set defaults and hide options on the quiz setup page. 2004-12-23 07:09:33 +00:00
moodler
6c83959e33 Quizzes can now be opened in a popup window. Javascript must be enabled.
An attempt has been made to make the popup as secure as possible by disabling
various browser capabilities through javascript.
2004-12-16 08:05:23 +00:00
moodler
7c6c30ed2b Changes for XHTML and accessibility compliance 2004-11-11 12:07:08 +00:00
gustav_delius
d1290cec39 fixed capitalization and quoting of attribute values 2004-09-12 17:34:35 +00:00
gustav_delius
a9ef4a630a closed <input /> <br /> <hr /> 2004-09-12 14:41:49 +00:00
moodler
d0a1d0483e Fixed a notice 2004-07-29 03:43:48 +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
moodler
19ebd1557a Minor formatting of timelimit stuff 2004-06-21 12:36:13 +00:00
moodler
7613890851 BRANCH MERGE
These are the changes from MOODLE_13_STABLE, merged into trunk

The tag MOODLE_13_MERGED on the MOODLE_13_STABLE branch now refers to this point

The biggest changes here are the fixes for HTML editor in all standard modules
2004-06-04 06:17:30 +00:00
julmis
f41e824f33 QuizTimer modifications added plus necessary files along. 2004-06-02 18:03:05 +00:00
moodler
081bf74fb1 All grades are hidden now when zero grade is chosen ... even the marks.
This mode is only really useful when feedback is turned on.
2003-09-10 08:22:16 +00:00
moodler
ed1daaa9d7 Quiz grades can be set to zero.
If so, then grades are not shown to students, nor is a column added to
the gradebook (although they are still stored and calculated internally)
2003-09-10 05:02:39 +00:00
moodler
ce9aeca5bd Changing that help file name to something shorter 2003-08-18 07:39:23 +00:00
stronk7
d6478d4f82 Changed "eachattemptbuildsonthelast" column name to
"attemptonlast". Seems to work.
2003-08-04 10:31:12 +00:00
kaipe
586b2c82ed New quiz option - "Each attempt builds on the last"
This makes it possible for students to take a tedious quiz, save it half-way and have it graded. The student can then, at a later point, get back to the quiz and have the previous answers already filled in and graded. The student can then continue with the remaining questions as well as redo all the answers that got wrong at the previous attempt.
It seems to work fine with one little twisted exception:
Say that the student attempts the quiz first and that the teacher thereafter edits the quiz and removes or adds a few questions. This will work out fine for as long as the teacher do not get the idea of adding a question with question type RANDOM. The quiz will be fully functional again after removing that RANDOM question or resetting the option 'Each attempt builds on the last" to NO.
Not a very serious problem but it takes someone with greater insight in question type RANDOM to resolve it.

As always, I can not commit lang/en/quiz.php.
---
As I was using the function quiz_get_attempt_responses I had it refactored removing the obsolete argument $quiz. I also changed the call from review.php
2003-08-03 23:00:45 +00:00
moodler
f65ed9726a Don't shuffle quiz questions by default (confusing to newcomers) 2003-07-06 04:08:46 +00:00
moodler
717f40c6d8 Some fixes to avoid pointless uses of $ME 2003-06-16 14:40:51 +00:00
moodler
21b1125f63 Make form destinations relative (to course/mod.php) to avoid
some form problems on mis-configured servers (wwwroot not quite right)
2003-06-10 05:33:58 +00:00
moodler
11697b48ea Minor code cleanups
- lowercasing
  - removing short php tags
  - adding some emoticon help here and there
2003-05-20 08:03:12 +00:00
moodler
52c018a0b5 More logical position for shuffle options 2003-04-09 14:27:58 +00:00
moodler
4b85b71712 New quiz switches to
- shuffle questions order
  - shuffle answers order
2003-04-09 13:57:08 +00:00
moodler
54d0590b47 Robustness fixes 2003-01-24 07:48:54 +00:00
moodler
b0e3a92523 Clean sweep through all the important changing all include(), include_once()
and require() to require_once()
2003-01-05 14:19:20 +00:00
moodler
8e6c87ccf3 Teachers can choose to allow review of quizzes, which means that students
are allowed to see past quizzes.  This only works once the quiz is completely
closed (to perhaps prevent easy cheating).
2003-01-01 14:47:11 +00:00
moodler
8ac3158791 Robustness fixes 2003-01-01 13:17:27 +00:00
moodler
cd63d77e08 Added help pages to quiz module.
A few little cleanups, such as trim() on shortanswers
2002-10-22 10:38:00 +00:00
moodler
a8a372ccf7 Various fixes and additions. It now does quiz feedback pretty well
(though it doesn't show correct answers yet).
2002-10-16 09:35:04 +00:00
moodler
49dcdd1800 Added timeopen and timeclose (instead of days) and did a few cleanups 2002-10-15 16:22:18 +00:00