55 Commits

Author SHA1 Message Date
gustav_delius
55a77c6c66 navigation bar now uses appropriate strings for editing quesitons or editing quiz. 2005-04-12 08:48:13 +00:00
stronk7
b681000402 Now quiz->name supports filterall. 2005-04-03 00:19:11 +00:00
gustav_delius
4dd7a7fd6e Fixed log, bug 2778 2005-03-21 00:06:04 +00:00
gustav_delius
2f2aad664d implemented fix for bug 2745 contributed by kagotani 2005-03-16 12:35:19 +00:00
gustav_delius
a9222637f4 When removing question from quiz delete all responses for that question in that quiz 2005-03-14 06:55:01 +00:00
gustav_delius
90abbc9e15 I had forgotten to check that single questions are added only once to quiz 2005-03-14 06:22:55 +00:00
gustav_delius
9274189f25 small fix to the versioning code 2005-03-07 19:45:39 +00:00
gustav_delius
03f9425fd2 The teacher can now move selected questions to a chosen category or delete them, see http://moodle.org/mod/forum/discuss.php?d=16239 and http://moodle.org/mod/forum/discuss.php?d=19734
There is also a 'Deselect all' button which I implemented provisionally by putting an extra function checknone() into javascript-static.js. This should be cleaned up by someone who knows javascript.
2005-03-06 12:00:46 +00:00
gustav_delius
fef9b51dac Now can add a single question to quiz with a single click. 2005-03-05 12:55:26 +00:00
gustav_delius
c6bfdec3fc Versioning of questions: when editing questions the teacher is told about the quizzes in which the question is used and is asked whether to replace them with the new version or not. If there are already attempts at a question than the original version is always kept in the database for audit purposes. More details at http://moodle.org/mod/forum/discuss.php?d=16479 2005-03-03 15:17:45 +00:00
gustav_delius
ec81373f50 In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
gustav_delius
f0148d973c If a question is removed from a quiz then also all existing responses (e.g. from teacher attempts) are removed. Thanks to Eloy for pointing out that this was missing, http://moodle.org/mod/forum/discuss.php?d=17167#83331 2005-02-06 07:45:40 +00:00
gustav_delius
b37cacae47 It is now no longer possible to add or delete questions in a quiz that students have already attempted, see http://moodle.org/mod/forum/discuss.php?d=16479#86488 2005-02-05 21:03:04 +00:00
gustav_delius
6f7970138a Taken out some $THEME 2005-02-05 17:28:06 +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
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
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
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
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
267ef6f28f Improved breadcrumbs on editing pages 2004-12-20 14:26:37 +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
a8449f8c71 MOre tolerant of empty fields, and fixed heading 2004-08-23 12:29:29 +00:00
gustav_delius
f950af3c43 All modules are now suitable for the site page. They now all follow the same rules, namely that any students enrolled in at least one course is considered to be a student on the site.
All the page headers work correctly also on the site course.

On the site page the modules don't require login unless necessary or required by $CFG->forcelogin.
2004-08-22 14:38:47 +00:00
moodler
bd76032e1b Fixed the link I just added 2004-05-19 03:52:34 +00:00
moodler
56215ed40f If a quiz has been attempted and the teacher is editing the quiz,
then let them know about the attempts.

bug 321

Thanks, Bernard!
2004-05-19 03:22:21 +00:00
moodler
8cadd23f98 Some cleaning up of the navigation bars in quizzes 2004-05-16 10:20:26 +00:00
moodler
12c20fffc6 Fixed a small bug introduced yesterday 2004-01-09 12:57:33 +00:00
moodler
544fe071bd Fixed header 2004-01-07 13:16:21 +00:00
moodler
93394a9018 Some cleaning up of the edit screen (especially in non-quiz mode) 2004-01-07 13:10:13 +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
7829b7d98b Fixed background colours in quix editing page body-> cellcontent2 2003-10-25 02:38:47 +00:00
moodler
145cb8f9ab More short tags 2003-09-11 13:21:56 +00:00
moodler
c559bcf6f0 Fixed some PHP short_tags 2003-09-09 12:34:51 +00:00
moodler
401c8de6c5 New question type called "Description". All it does is print some
text and/or an image, without requiring an answer.  Can be used
to provide text for a following group of questions, or to insert
a joke in the quiz etc ...

This code is based on code sent in by Ursula Raab.  Thanks!

See: http://moodle.org/mod/forum/discuss.php?d=508
2003-07-06 04:00:05 +00:00
moodler
df103e8212 Questions now have a defaultgrade column (which defaults to 1)
... this grade is used as the default grade when adding questions
to a quiz.

At the moment it's just so that some imported questions can have
different defaults, but a field should be added to all question
editing pages.
2003-03-03 17:43:13 +00:00
moodler
c363d9d11f Added QUIZ_DEFAULT_SCORE ... later this will be a quiz option 2003-03-03 17:05:35 +00:00
moodler
3e7542449b Removed save_session() - no longer necessary 2003-02-27 02:49:18 +00:00
moodler
95dbc030a8 First version of code to implement new "Random Matching" type
of questions.  These use 2 or more short answer questions at
random to construct a questions where you have to match
answers to questions.  Only lightly tested so far.

Quiz questions can now be edited with Richtext editor.

Sundry little fixes along the way.
2003-02-24 10:37:56 +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
607809b3ba OK a number of small changes here.
Firstly, I'm replacing all use of old-style global variables like
$HTTY_REFERER with their new-style equivalent $_SERVER["HTTP_REFERER"]
Also using $_POST instead $HTTP_POST_VARS  etc

Secondly, if gdversion == 0 (ie GD is not installed) then:

 - users are not even allowed to upload new images
 - graphs now just print a message instead of failing.

this allows Moodle to still be used even if GD is not present
2003-01-05 06:45:20 +00:00
moodler
36b4f9852e buggy_referer is dead! Long live buggy_referer!
Should be fixed now.  As a bonus, I've removed all the uses of
HTTP_POST_VARS from all scripts.

All forms should use the new data_submitted() function to collect
form data (it does the match_referer thing internally now).

Much nicer.
2003-01-02 14:49:23 +00:00
moodler
c04c41c7d2 Many little fixes and cleanups for robustness 2002-12-30 05:10:01 +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
92a3c884f5 Small bugfixes ... (yawn) 2002-10-15 17:32:50 +00:00
moodler
8d94f5a08e OK, it seems reliable enough now for alpha testing.
If you have existing quizzes, delete them all, then
drop all the quiz tables and delete the quiz line from
the modules table.

Things to do still:

  - add/edit/remove categories
  - display question feedback on submissions ...
  - record the time they started the quiz, as well as the completion.
  - place time limits between attempts
  - add full specification of quiz open time and quiz close time
2002-10-15 12:54:11 +00:00