484 Commits

Author SHA1 Message Date
paca70
2ca24fc3ab Use getremoteaddr() in place of getenv("REMOTE_ADDR") and $_SERVER["REMOTE_ADDR"] 2004-09-04 11:30:16 +00:00
moodler
20229ca246 Merged fixes for display of correctanswers from stable 2004-09-04 08:12:23 +00:00
moodler
6e8d663f66 Merged from stable 2004-08-31 09:18:43 +00:00
moodler
86507185ac Merged help button fix from stable 2004-08-29 07:38:48 +00:00
moodler
fcb8e1a4eb Replacing the examples.txt that Howard deleted accidentally ;-) 2004-08-27 04:41:42 +00:00
moodler
49d74ec0ba Tidying up Howard's wierd indenting. ;-) 2004-08-23 16:46:50 +00:00
moodler
4af0e604db Straightened up a button 2004-08-23 16:36:04 +00:00
moodler
218e4d56e6 Lowercase formulas before parsing them 2004-08-23 13:49:19 +00:00
moodler
ca417031bb Better errors (include question name) 2004-08-23 13:48:09 +00:00
moodler
a07fe4ba72 Fixed import of SHORTANSWER questions 2004-08-23 13:04:50 +00:00
moodler
bb6f1955a1 Don't print empty intros 2004-08-23 12:35:13 +00:00
moodler
a8449f8c71 MOre tolerant of empty fields, and fixed heading 2004-08-23 12:29:29 +00:00
gustav_delius
ecf0cf9ac4 fixed bug 1252. But this page could do with a lot more work. 2004-08-22 19:58:54 +00:00
gustav_delius
55a7af338d fixed phantom question bug #1299 2004-08-22 19:21:02 +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
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
d7c40ba3c9 Use the same rounding for highest grade as other scores bug 1707 2004-08-17 05:47:49 +00:00
moodler
2c6d8d1d60 Fixed some typos as per bug 1717 2004-08-17 05:25:05 +00:00
moodler
886c666847 FIxed bug 1738 - questions now added to category they were started in 2004-08-16 15:55:15 +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
paca70
20cb89ec4e Quickly tested updates for postgresql. (seems to work here) 2004-08-11 10:27:00 +00:00
moodler
11558e5af4 Closed up some notices 2004-08-11 06:59:23 +00:00
moodler
338c772cc5 Removed PHP code from strings! 8-o 2004-08-11 06:46:59 +00:00
thepurpleblob
b1984b0d33 Added overidable method presave_process - allows last minute modification of
data to be exported to file. Done to get xml output working.
2004-08-09 13:56:47 +00:00
thepurpleblob
29a95feb94 more fixes - xml export now pretty much working 2004-08-09 13:55:20 +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
kaipe
7acaafc87e Support for CALCULATED questions
These are much more complex than all qtype already supported
so I have been pretty hard on the existing code.
I could not figure out what mathematical functions need
to be converted from webct to PHP format. The only function
I have converted so far is the webct x**y that was converted to PHP pow(x,y)
2004-08-08 12:08:08 +00:00
kaipe
908a708e7c Fixed a bug
Cleaned out a flaw that ruled out generation of negative random numbers
2004-08-08 11:31:40 +00:00
stronk7
9fd687e0d2 Now CALCULATED questions are in backup & restore.
It was difficult to understand but easy to implement :-)
Some mechanisms has been added to avoid to duplicate
quiz_dataset_definitions (confirmed from Henrik).

Please, test, test, test, test....
2004-08-06 23:43:19 +00:00
thepurpleblob
28e9d5d789 Whoops got rid of xml stuff - sorry my mistake 2004-08-06 15:06:17 +00:00
thepurpleblob
bbb4e32d3c Adding xml export 2004-08-06 14:59:45 +00:00
thepurpleblob
b2bf1d1d11 Copied from gift directory by mistake - removing 2004-08-06 14:52:56 +00:00
thepurpleblob
852a8212aa XML export kinda works now. 2004-08-06 14:31:30 +00:00
thepurpleblob
0890110fbc vaguely working version of xml export - much more work needed though 2004-08-06 13:03:33 +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
thepurpleblob
3cb21c9388 fixed bug that must have crept in during recent refactor. $course not being passed
to export format object.
export file extension can now be selected by overriding method in format.php
2004-08-06 11:11:05 +00:00
thepurpleblob
3102622add Changed export part so that export file extension can be changed
by overriding export_file_extension() method
2004-08-06 11:09:22 +00:00
stronk7
04bc8ed1c1 Now numerical_units support has been added to backup and restore.
Currently only working with numerical questions...
2004-08-05 23:11:31 +00:00
stronk7
1db60bdac0 Numerical questions lost their category when editing. Fixed. 2004-08-05 22:57:57 +00:00
kaipe
d02ad0f9c2 New page quiz/questiontypes/datasetdependent/categorydatasetdefinitions.php?category=XX
offers a simple editing view for category reusable dataset definitions.
It is unlinked but can be reached by specifying the URL or having a question
edit page link it in the future.
2004-08-05 09:53:17 +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
moodler
235987c596 Removed a notice 2004-08-05 05:27:18 +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
f7dea937e6 Updates that make it possible to override the options queries
This makes it easier to use this question type as the virtual question type for dataset dependent question types
2004-08-04 14:09:19 +00:00
moodler
5c5cff568f FIxed some notices 2004-08-04 08:39:29 +00:00
moodler
64e92a75fb Fixed up HTML editor 2004-08-04 07:30:38 +00:00
moodler
3a00dbfd6a Fixed some notices 2004-08-04 07:04:11 +00:00
moodler
d3f8572b41 Adding icon for calculated questions 2004-08-04 03:01:51 +00:00