3298 Commits

Author SHA1 Message Date
stronk7
d6478d4f82 Changed "eachattemptbuildsonthelast" column name to
"attemptonlast". Seems to work.
2003-08-04 10:31:12 +00:00
danielfetzer
533af805b8 *** empty log message *** 2003-08-04 08:28:11 +00:00
moodler
688d06f442 Added mailformat to user data returned in class listings.
This fixes a bug where students were getting plain mail only
on forums that were force-subscribed.
2003-08-04 05:48:39 +00:00
moodler
7c4ee4c29f Allow site course to have custom words for student and teachers 2003-08-04 05:02:28 +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
stronk7
da2ad42086 Added string necessary to backup/restore 2003-08-03 22:55:56 +00:00
kaipe
0f36ecb9ea 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.
2003-08-03 22:54:02 +00:00
stronk7
80de201bfc Updated.
Now chat modules are included in backup and restore
2003-08-03 22:48:41 +00:00
stronk7
9934c7b0d6 Now chats are restored too !! :-) 2003-08-03 22:46:13 +00:00
stronk7
724db57661 Now chats are backuped too !! :-) 2003-08-03 22:24:01 +00:00
stronk7
74a0363f0c LIMIT is now working properly. 2003-08-03 21:49:19 +00:00
kaipe
5a24a01868 Resolving bug #576.
This solution shows the message "Recently added question!" and the question text for each question that has been added since the reviewed attempt.
The advantage with the chosen solution is that it will work fine for the (soon to come) "Each attempt builds on the last" quiz option.

As I don't have the karma needed for updating in lang/en/, the message does not yet look quite as I described it above.
2003-08-03 21:39:32 +00:00
kaipe
bdb63d64f2 Debugged question types NUMERICAL and MULTIANSWER (known as embedded answers) as these did not do things right whenever a student had not given any response (was treated as zero etc).
For numerical there was also a need to allow typical shortanswer responses whenever there could be answers like n/a, inf, -inf, nan etc.
Further more about numerical, there can be more than one answer alternative defined (just like for shortanswer). This is not supported by numerical.html but everywhere else. MULTIANSWER included, it is up to any taker to update numerical.html. This is more than likely to lead to overlappings between numerical ranges if more than one is defined. Think of the case where the highest grade answer ranges between 0 and 2 and the half grade answer ranges between 2 and 4. How should we grade 2? We should pick the highest grade!
2003-08-03 20:02:43 +00:00
mits
5ca4f1944f New translation. 2003-08-03 17:33:17 +00:00
stronk7
e5fc599647 Forget delete some debug, sorry. :-) 2003-08-03 16:41:31 +00:00
stronk7
13d0fb4bbf Now, when a category exists, if we are restoring to a different course,
set utomatically the publish field to 1.
If a question exists in DB (by category, questiontext and qtype) it isn't
duplicated.
This produce some problems restoring answes, but avoid duplicates.
2003-08-03 16:36:29 +00:00
stronk7
51de923ed1 Reuse an existing string. 2003-08-03 15:15:23 +00:00
stronk7
38fb24921c More backup related strings... 2003-08-03 15:14:08 +00:00
stronk7
fa383df984 Solved bug. Now user files are checked againt users to backup.
Before this every thir under users was in backup.
2003-08-03 09:39:27 +00:00
paca70
fdc60fd20d Ask only naminattribute when searching for user. 2003-08-03 09:20:05 +00:00
paca70
da7b210a75 Fix from Martin Wwellard to fix PHPs case issue with attribute names. 2003-08-03 09:07:42 +00:00
stronk7
4398d023a9 Updated:
- Teachers can backup/restore their courses.
- New option "restore to existing, deleting old".
- backupdata dirname harcoded.
- backup and restore buttons in main course page.
2003-08-03 01:05:38 +00:00
stronk7
be2a6fc6ca Teacher restoring and admin restoring finished.
Allow restore into new course (only admins),
      restore into existing course deleting old and
      restore into existing course adding to old
Teachers are limited to "current course" while admins ca
select any course. :-)
2003-08-03 00:42:41 +00:00
stronk7
35ea159433 delete_dir_contents function now allows excluding a dir 2003-08-03 00:40:08 +00:00
stronk7
642ac84855 Added suport to new restoreto options 2003-08-02 23:37:41 +00:00
stronk7
ed8ee0910c Take out backupdir string due to some backup
detected problems related to it.
2003-08-02 23:36:13 +00:00
giro123
565ff246e5 *** empty log message *** 2003-08-02 19:44:16 +00:00
stronk7
03162427df The restore option in course page is only showed if th
"backupdata" dir exists
2003-08-02 18:23:58 +00:00
stronk7
0c6e10b33e Now "backupdir" string is hardcoded in backup process. 2003-08-02 16:13:44 +00:00
stronk7
9e426d54ee Added preliminary support to teachers.
Not working yet.
2003-08-02 16:06:33 +00:00
stronk7
8f7ab28112 Now "backupdir" string is hardcoded in backup process.
Backup of logs in chunks is included, but the limit
clause doesn't seem to work. I'll test it later.
2003-08-02 16:03:00 +00:00
moodler
07aeb7b0bf Move the code for clearing out a course into a new function:
remove_course_contents()
2003-08-02 11:32:59 +00:00
stronk7
1692281e40 Minor change to allow continue after upgrade_backup 2003-08-02 10:32:57 +00:00
stronk7
2bd19d60cf Restore option allowed to teachers too.
The course_id is passed to restore.php as a parameter
2003-08-02 10:08:57 +00:00
danielfetzer
47c3f0d4d9 *** empty log message *** 2003-08-02 09:39:38 +00:00
danielfetzer
07f0986e16 *** empty log message *** 2003-08-02 09:00:37 +00:00
moodler
835ad8ef7a Adding missing strings.
Instead of Multi Answers, how about "Embedded Answers" ..?
2003-08-02 05:09:04 +00:00
moodler
8883c4a885 Less fiddly looking icon 2003-08-02 05:05:09 +00:00
moodler
567b01bceb Quick icon for multiple answers 2003-08-02 05:01:02 +00:00
danielfetzer
610faab9e6 *** empty log message *** 2003-08-02 00:40:18 +00:00
stronk7
e9346b95b7 backup_release is now saved to config too. It was losed in lastest changes
to update module facility !!
2003-08-01 23:46:49 +00:00
stronk7
d37ca7c7f8 Chanfed to locate the pclzip properly. 2003-08-01 23:36:07 +00:00
danielfetzer
bcd269d24d *** empty log message *** 2003-08-01 22:21:06 +00:00
danielfetzer
1ffb0f1ac3 *** empty log message *** 2003-08-01 21:06:55 +00:00
moodler
001f747fbe Detailed howto needs to be here ... 2003-08-01 15:30:08 +00:00
moodler
274bc21a11 More links 2003-08-01 15:28:53 +00:00
moodler
59d2b54235 Backup stuff 2003-08-01 15:28:07 +00:00
moodler
dd167d59c9 Added a missing help file! 2003-08-01 15:26:51 +00:00
moodler
434d01398a Backup and restore buttons on home page 2003-08-01 15:19:23 +00:00
moodler
f354106d46 Some tidying up 2003-08-01 15:14:49 +00:00