207 Commits

Author SHA1 Message Date
stronk7
c6e88f1059 One more use of decimalpoints 2005-02-14 19:57:45 +00:00
stronk7
95e72c12d0 Now retrieving only needed fields! 2005-02-13 00:42:29 +00:00
gustav_delius
6eaae5bdd2 fixed my own type (missing ;) 2005-02-05 20:00:15 +00:00
gustav_delius
6f7970138a Taken out some $THEME 2005-02-05 17:28:06 +00:00
defacer
8dffa4df07 Don't forget to kill all our block instances if we are deleted. 2005-02-01 07:40:58 +00:00
defacer
d5838a4b20 Double quotes to single and blah blah. 2005-01-27 02:30:32 +00:00
defacer
9d6773603d Minor beautification, plus a detail: if the grade is 0.0, this function
would return a grade of 0, which is obviously not the intent here.
2005-01-27 02:28:04 +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
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
moodler
6710ec8713 Recent activity functions should have been in lib.php, not locallib.php 2005-01-13 03:04:48 +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
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
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
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
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
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
kaipe
c03d783201 Question type RANDOM now stores responses just like any other question type.
Therefore all workarounds are removed from lib.php and an isolated workaround is included in random/questiontype.php in order to ensure backward compability.
2004-12-18 13:55:18 +00:00
skodak
e7f927a0fc new handling of uploaded files, please TEST, TEST, TEST 2004-12-14 18:57:51 +00:00
moodler
8ac17ba443 Changes for XHTML and accessibility compatibility 2004-11-25 10:01:56 +00:00
moodler
6958042464 Merged default categpory fix from stable 2004-11-18 07:32:31 +00:00
moodler
7c6c30ed2b Changes for XHTML and accessibility compliance 2004-11-11 12:07:08 +00:00
moodler
e200a26ec0 Merged robustness check from stable 2004-11-10 14:06:20 +00:00
moodler
0e919226b1 Merged from stable 2004-10-16 17:30:51 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
kaipe
84250ebb12 Fixes bug #1854 2004-09-16 06:35:49 +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
49d74ec0ba Tidying up Howard's wierd indenting. ;-) 2004-08-23 16:46:50 +00:00
moodler
9c8047cfd0 Added a new preview/test feature for quiz questions, sent in by
Pavel <paolo@psychpan.waw.pl>

Thanks to Przemyslaw, too!
2004-08-16 15:16:26 +00:00
moodler
5f8c3e1f1a Fixed some notices 2004-08-14 12:42:54 +00:00
moodler
ba28853909 And some more 2004-08-08 15:09:39 +00:00
moodler
b71213e39a Fixed bug when calling instance_is_visible() 2004-08-08 15:08:50 +00:00
thepurpleblob
a0ffa51354 export filename does not now have .txt extension - this is selected by overridable
method on format.php
2004-08-06 11:11:51 +00:00
moodler
01d11b97d9 No checking is now done on question name and question text.
If question name is empty, then it's assigned to be same as the question text.

The question text can now be empty if people want that.
2004-08-05 05:31:40 +00:00
kaipe
79a44f05a9 Took care of some issues concerning the use of
individual quiz files in datasetdependent questions
2004-08-04 23:35:18 +00:00
kaipe
2443a13e75 New generic tools that allow the creation of dataset-dependent questions
as well as the new question type Calculated that uses this generic support.
2004-07-30 14:50:58 +00:00
moodler
11c6232781 Some cleanups with formatting and so on. 2004-07-29 06:15:54 +00:00
moodler
9350263a96 Merged fix from stable 2004-07-27 13:19:12 +00:00
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