60 Commits

Author SHA1 Message Date
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
stronk7
72036f9305 New quiz option addded: decimalpoints
(used to decide the number of decimals showed in grades)
2005-02-14 18:24:24 +00:00
defacer
28926a08e9 Changing that despicable grade column from mdl_quiz_grades to a
floating point data type, as it should be.
2005-01-27 03:10:57 +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
moodler
f5a1c0c064 New field popup to control new feature: launch quiz in fullscreen popup window 2004-12-14 06:43:22 +00:00
kaipe
2ad1b388f7 Updating database and backup/restore in order to make it possible
for teachers to choose number of decimals for calculated questions.
Can someone please check if the database update for postgres7 turns out alright?
2004-12-05 12:56:01 +00:00
mjollnir_
905e80d273 Merged from MOODLE_14_STABLE: Attempt to fix the unique index on quiz_attemptonlast_datasets for postgres (requires version bump in quiz AND requires bump in quiz for the getting rid of adodb feedback in execute_sql 2004-11-23 05:04:53 +00:00
mjollnir_
556b96786e Merged from MOODLE_14_STABLE: Indexes for quiz and version bump (honoring partial freeze) 2004-11-19 04:14:13 +00:00
kaipe
813ac2e00a The previous update was supposed to be an enlargement of answer in quiz_responses (not quiz_answers)
It is now correct and the mistake never made it to the stable version :-)
2004-11-13 19:25:13 +00:00
moodler
193ba8e7c4 Enlarge answer field to TEXT (see http://moodle.org/mod/forum/discuss.php?d=10333) 2004-10-17 04:08:32 +00:00
mjollnir_
eee8d9c8f5 bumps for version and requires for modules that use new upload class 2004-09-17 05:46:12 +00:00
gustav_delius
d1290cec39 fixed capitalization and quoting of attribute values 2004-09-12 17:34:35 +00:00
kaipe
8c5a95facb Database update to support new question type Calculated
as well as units for Calculated and Numerical questions
2004-07-30 14:40:16 +00:00
moodler
8ba9a36f88 Just to delineate the refactored version 2004-07-21 13:15:15 +00:00
moodler
c288e6d6ee Update requirement for address_in_subnet function in moodlelib.php 2004-07-08 07:53:50 +00:00
moodler
88c898f590 Added new fields for quiz password and subnet restrictions 2004-07-07 07:47:33 +00:00
moodler
4a6cfa32d9 Updated requirements for quiz module 2004-06-28 16:25:14 +00:00
moodler
070528fc79 MOdules are dependent on this version of course/mod.php 2004-06-04 07:28:34 +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
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
d2f308c091 Support for events.
Ouch - I thought I'd checked this in days ago
2004-04-28 02:56:40 +00:00
moodler
1b899e00a2 Small bump to fix a particular site 2004-03-05 13:38:41 +00:00
moodler
004f8037f4 Fixed missing log_displays - thanks Eloy! 2004-02-19 13:28:31 +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
af7d68413f Update old quiz logs 2004-02-05 05:00:52 +00:00
moodler
a7f4452d11 Updating version numbers of all Modules to make things a bit clearer 2004-02-01 04:42:39 +00:00
moodler
9423833cd9 All modules now require the very latest because of the changes to add_to_log 2004-01-31 15:25:00 +00:00
moodler
83f007bf39 Define minimum required versions of Moodle 2004-01-28 04:27:57 +00:00
moodler
4340a83ae8 Added some bug-fixing code from Eloy Lafuente that fixes a quiz problem.
What happens is that adding random questions used to set the timestamps
of these questions to the same value.  This is fine in normal operation,
but it stuffs up the backup of that course, overwriting the question.
When the course is restored, the missing questions cause quizzes to
have lots of red notices like "Question not found".

Anyhow, this patch should safely fix older installations that may have
these duplicate questions lying around.

THANKS ELOY!
2003-11-11 16:13:57 +00:00
moodler
23b4848794 Quiz categories now also have a unique stamp in them.
This is to make it easier when restoring backups,
especially when the questions are in a published
category from another course that still exists.
2003-08-27 12:53:21 +00:00
moodler
757a0abd94 Corrected the stamp I just added and added a separate version field instead 2003-08-23 14:18:44 +00:00
moodler
e9d8777ffb New "stamp" field on quiz questions with a unique identifier, as well as
some PostgreSQL fixes (Multianswer stuff had not been done on Postgres yet)
2003-08-23 13:28:32 +00:00
stronk7
03877c6c61 Changed "eachattemptbuildsonthelast" column name to
"attemptonlast". Seems to work.
2003-08-04 18:39:25 +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
kaipe
8b439f8c16 New question type - multianswer 2003-08-01 08:37:11 +00:00
moodler
29d5d0b40c New modular plugin structure for quiz reports.
The code for reviewing an existing attempt is now separate
in review.php and now has a log entry of it's own.

The overview and regrade reports are now in separate subdirectories
under the "report" directory.  Each has a primary "report.php" file
which implements the report as a class.

These existing reports are very simple, but now more complex ones
can easily be written.  (I am about to do one).
2003-07-24 05:18:00 +00:00
moodler
9c02661096 Added a question field to numerical table for completeness 2003-07-10 14:09:43 +00:00
moodler
361f649d7a New question type: Numerical questions.
Mostly coded by Henrik Kaipe - I changed a few things on the way in.
2003-07-10 13:25:07 +00:00
paca70
5352ceba67 quiz_match was missing... 2003-04-27 15:33:31 +00:00
moodler
4b85b71712 New quiz switches to
- shuffle questions order
  - shuffle answers order
2003-04-09 13:57:08 +00:00
moodler
54a67a5921 First cut at adding new "fixed" Match question type, which is manually
created.  Works OK after limited testing.

I've also renamed some strings to do with "Random Match", so that this
question type is now called "Random Short-Answer Match".

Later there will be a new 'Random Match' which randomly selects one of the
existing "Match" questions.
2003-03-30 16:46:50 +00:00
moodler
036d3c1f90 Typo! 2003-03-26 05:48:21 +00:00
moodler
6eff984aee Added some new indexes on quiz tables in MySQL 2003-03-26 05:46:09 +00:00
moodler
0d1a40f00a Updated versions only 2003-03-03 17:48:39 +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
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
49220fa70c Various quiz changes. Most importantly is the new framework for importing
quiz questions.   Importing works but is still being tested.
2003-02-16 07:08:57 +00:00
moodler
a2fe7cc0dc Changed three fields to avoid SQL problems with PostgreSQL etc:
quiz_truefalse:  true->trueanswer  and false->falseanswer
quiz_questions:  type->qtype
2003-01-03 16:01:48 +00:00