684 Commits

Author SHA1 Message Date
thepurpleblob
8f0876a98b Added example file of the learnwise import format 2005-01-26 10:36:31 +00:00
thepurpleblob
1680925333 Adding Learnwise import - created by Alton College, Hampshire UK
Still to do testing etc.
2005-01-25 20:18:05 +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
thepurpleblob
84a93f1c24 Added empty array into question object for multiplier field in numeric questions
Stops a bunch of warnings when quiz is imported
2005-01-24 15:45:20 +00:00
defacer
9407d4563f According to the final comments in SC#65:
Made isteacher() require that the first parameter (course id) be
specified and non-empty. If it is empty, [i.e., 0, which was used to
simulate what has now become isteacherinanycourse()], then the return
value IS correct but a warning is printed on screen. This should allow
us to track down any such calls in legacy modules without breaking Moodle.

The correct way to check for teacher status in ANY course is now to
call isteacherinanycourse().
2005-01-23 21:38:01 +00:00
gustav_delius
e6d10b266b fixed sesskey bug reported by Eloy. Thanks Eloy. 2005-01-23 09:10:34 +00:00
gustav_delius
0353801a2b There is now a mechanism by which question types can have their own setup options. Because this does not change anything unless it is used I hope it is o.k. that I am submitting this without asking first. This is based on code by Mad Alex. 2005-01-22 22:27:16 +00:00
gustav_delius
0fc48cbfa5 question.php now uses sesskey. This means that all question type plug-ins will have to add it to their edit forms. 2005-01-22 20:08:45 +00:00
gustav_delius
010ec024b8 made multiple.php save to database in addition to $SESSION->modform and also introduced sesskey 2005-01-22 19:14:35 +00:00
gustav_delius
fc1bc87bb0 better parameter validation and some code cleanup for category.php 2005-01-22 19:03:05 +00:00
gustav_delius
4acc80ead1 if the current category is deleted then revert back to the default category 2005-01-22 18:59:10 +00:00
stronk7
1082105205 Modify sesskey behaviour. SC#73 2005-01-22 18:53:44 +00:00
gustav_delius
56b2152f69 better parameter validation and general code cleanup for edit.php 2005-01-22 18:17:33 +00:00
gustav_delius
873b77f0f5 previously I had forgotten to save sumgrades 2005-01-22 16:13:08 +00:00
gustav_delius
4ac04efaf7 quiz edit.php now saves changes to the quiz in the database as soon as the teacher makes them, see http://moodle.org/mod/forum/discuss.php?d=17167 2005-01-22 15:42:22 +00:00
gustav_delius
ef0921d1ff It is now possible to base new questions on existing ones, see get_string('editingquestion', 'quiz'); 2005-01-19 09:50:33 +00:00
gustav_delius
0befd376af fixed missing courseid in breadcrumbs 2005-01-19 08:11:49 +00:00
kaipe
efa9b7fa01 Fixed a bug that was reported by James Balfour:
Numerical/Calculated questions failed to grade negative responses on questions with units.
2005-01-17 20:14:16 +00:00
moodler
cbc9da2a1b FIxed a missing brace (bug 2386) 2005-01-14 16:45:35 +00:00
moodler
6710ec8713 Recent activity functions should have been in lib.php, not locallib.php 2005-01-13 03:04:48 +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
9f9cff594c Just some comment text to explain the $QUIZ_QUESTION_TYPE array. 2005-01-12 06:30:32 +00:00
stronk7
b5c5f9286a Maintain whitespace when importing glossary entries. Aplied to
blackboard import of questions too. Bug 2310.

(http://moodle.org/bugs/bug.php?op=show&bugid=2310)

Merged from MOODLE_14_STABLE
2005-01-11 11:29:01 +00:00
moodler
ba9231f5ff Merged bug 2363 fix from stable 2005-01-11 11:14:15 +00:00
skodak
577f51902e fixed typo 2005-01-10 21:32:44 +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
moodler
bb6c3f3ad2 Fixed my erroneous fix from last checkin 2005-01-06 08:46:12 +00:00
moodler
0181cf725d This bug stopped this page from even working .... 2005-01-06 02:38:50 +00:00
moodler
d6d080e26c Er, made a typo myself. This works now. 2005-01-05 17:47:01 +00:00
moodler
697fa7265d Fix faulty call to table_column 2005-01-05 17:42:57 +00:00
gustav_delius
1da1f5a890 It is now possible to have also questions in all subcategories listed on edit.php. Because there can be a large number of questions the list of questions is now paged.
The random questions have another option specifying whether they can choose their questions also from subcategories or not. This option is stored in the unused questiontext field.
2005-01-05 17:27:23 +00:00
kaipe
d70ccc495c New feature:
Maximum-number-of-questions-per-page
2005-01-03 00:41:33 +00:00
gustav_delius
ac27e47dc4 Hierarchical question categories from mediagonal, see http://moodle.org/bugs/bug.php?op=show&bugid=1947 2005-01-02 15:10:50 +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
a62356fcdd removed many php warnings and streamlined code 2004-12-30 22:51:24 +00:00
moodler
eb820b8b92 Use the proper preview image 11x11 2004-12-30 08:28:58 +00:00
gustav_delius
0dc4810a9a Changed user interface for adding multiple random questions, see http://moodle.org/mod/forum/discuss.php?d=16531#78785 2004-12-29 22:57:35 +00:00
gustav_delius
71d1ef585f added alt text to icons 2004-12-29 10:03:53 +00:00
gustav_delius
2d09198e5f avoid division by zero when the sum of grades is zero 2004-12-29 09:22:33 +00:00
gustav_delius
fa92dd2437 improved an error message, see http://moodle.org/bugs/bug.php?op=show&bugid=504&pos=0 2004-12-29 07:48:21 +00:00
gustav_delius
df4fe0009b avoids error when exporting 0 questions 2004-12-29 07:21:55 +00:00
gustav_delius
089a284b88 sort category question list by type then name as suggested in http://moodle.org/bugs/bug.php?op=show&bugid=2045
Also removed a PHP notice
2004-12-29 07:19:54 +00:00
gustav_delius
b63850e8d4 Fixed form error checking for cloze questions, see bug http://moodle.org/bugs/bug.php?op=show&bugid=697 2004-12-28 09:12:40 +00:00
moodler
a7ca4cd150 When teachers view quizzes (attempting or reviewing) they see a small
link with the actual question id of that question.  The link creates
a popup so that they can edit that question directly.
2004-12-27 14:52:24 +00:00
moodler
c9a945caed Fixed a string name 2004-12-27 14:34:38 +00:00
gustav_delius
dc511e9fdb removed php notice and fixed line endings 2004-12-26 16:09:12 +00:00
gustav_delius
8fbb315db3 fixed missing string error that I introduced when improving the breadcrumbs. 2004-12-26 14:55:50 +00:00
thepurpleblob
d75bc0b272 Now supports shortanswer import. Cleaned up the CDATA import too. 2004-12-24 11:16:43 +00:00
gustav_delius
78036f7835 Fixed event handling. Events must be deleted with delete_event.
Instead of modifying event dates the quiz module currently deletes them and adds new ones. This could be improved in the future.
2004-12-23 07:28:14 +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