54 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
defacer
ef08e7ad70 Fix a notice if $attemptmark doesn't get set. 2005-02-15 01:39:12 +00:00
stronk7
e37da3a536 Now decimalpoints is used to show grades
(I had to modify quiz_get_best_grade() slighty)
2005-02-14 19:41:52 +00:00
defacer
e96ba29d6f Vastly improved styles, lots of inline styles removed, markup improved. 2005-02-12 11:37:09 +00:00
gustav_delius
8930d42124 The table on view.php now also shows the marks achieved in each attempt in addition to the rescaled grade. 2005-02-11 19:51:29 +00:00
defacer
4f0d565da6 Bringing Quiz in line with Martin's "make Chat into a showcase for pages" idea. 2005-02-10 01:59:11 +00:00
defacer
de4505fef3 Removing bad slashes from HTML. 2005-02-09 15:42:05 +00:00
defacer
d1b7d61e74 Oops! Wrong optional_param() calls. 2005-02-09 15:31:47 +00:00
defacer
d7a2023d04 Bring the param checking to the modern standard. 2005-02-09 15:30:15 +00:00
defacer
8ff1d30259 Let $PAGE print the header, as it should be, instead of doing it manually. 2005-02-09 15:08:51 +00:00
defacer
768320dcc9 Update for the new APIs and simplification. 2005-02-02 02:46:06 +00:00
defacer
fc0551248e Polishing that Add/Edit Blocks button 2005-02-01 08:35:06 +00:00
defacer
bdfa14dd7f All right, we can now have blocks in quiz pages!
Let's test it a while and see what we learn from it.
2005-02-01 07:16:19 +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
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
2d09198e5f avoid division by zero when the sum of grades is zero 2004-12-29 09:22: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
moodler
9957501099 Merged fix to allow teacher to always take quiz 2004-11-11 02:22:08 +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
gustav_delius
d1290cec39 fixed capitalization and quoting of attribute values 2004-09-12 17:34:35 +00:00
moodler
bb6f1955a1 Don't print empty intros 2004-08-23 12:35:13 +00:00
gustav_delius
90fcc576ea Removed notices by introducing new function print_header_simple() which works on site as well as in courses without extra logic. 2004-08-21 20:20:58 +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
julmis
f41e824f33 QuizTimer modifications added plus necessary files along. 2004-06-02 18:03:05 +00:00
moodler
9a5c745d92 Properly format Quiz text (filters etc) 2004-03-10 09:45:33 +00:00
moodler
037f99aa2d Upgraded add_to_log to send cm->id 2004-01-31 15:22:04 +00:00
moodler
2860b7a5f2 More accurate info on link to reports 2003-12-17 13:49:51 +00:00
moodler
6675f0141d Improved description of interim final grade 2003-12-13 02:30:20 +00:00
moodler
d8d7a2d107 Fixed some typos when defining tables 2003-09-10 14:00:18 +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
40b1a22162 Further changes to tidy up reports 2003-07-24 16:48:10 +00:00
moodler
779e79f438 Better string for teacher reports 2003-07-24 06:21:21 +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
3a4c2fd089 I knew there was something else I'd forgotten!
Added a check to all modules (well view.php anyway) to check whether a
module is hidden or not.  If it is, then students get a message.
2003-05-15 18:03:22 +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
d897cae419 Changes to enable jumping between activity modules, using a new menu in
the upper-right corner.   Caution: Not well tested at this stage.
2002-11-10 07:37:15 +00:00
moodler
95e143f4cc Ugh type in string module name 2002-10-25 08:54:29 +00:00
moodler
e11c24bc0e Added translation for Attempt quiz now 2002-10-25 08:15:03 +00:00
moodler
e331eb06fd Teacher can now regrade (recalculate grades) of all quiz attempts
(in case the quiz changed somehow)
2002-10-22 06:52:23 +00:00
moodler
2383cadbab Display tweaks 2002-10-21 13:13:33 +00:00
moodler
305ce2b33c Convert intro text to HTML 2002-10-21 11:41:36 +00:00
moodler
f9a9499a62 Guests can no longer see or attempt quizzes 2002-10-20 10:13:04 +00:00
moodler
958aafe2b4 Quiz attempts are now timed. This is done by starting the quiz_attempts
record upon showing the quiz, and completing it upon submit.

Two new fields in quiz_attempts... should be upgrade friendly.
(Old attempts will show up as being of duration zero)


Also some small fixes here and there.
2002-10-18 16:05:21 +00:00
moodler
09aebc9468 Cleaned up some buttons ... 2002-10-16 04:51:55 +00:00
moodler
49dcdd1800 Added timeopen and timeclose (instead of days) and did a few cleanups 2002-10-15 16:22:18 +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
moodler
10b9291c92 Checking in what I got so far .... Not working yet but I'm going to bed. 2002-10-14 15:57:33 +00:00