351 Commits

Author SHA1 Message Date
stronk7
378b613d8e Some changes to add format_text() to answers
and feedback across all the module.

Note: Essay questions and their teacher's feedback. I'm not
pretty sure it they should support the format_text() too. And
currently, they are cleaned at input, so it is impossible
to write <lang> or <span> tags with them!
2005-04-29 18:32:13 +00:00
stronk7
68dfc4deb6 Now lesson_pages->title supports filterall 2005-04-26 22:30:40 +00:00
michaelpenne
e5ee4adfd4 FIX: removed the unsetting of a SESSION variable that kept track of logins for lesson (password protected). This allows for reviewing of lessons that have passwords. Only downside, once logged in to a lesson, dont need to reenter password for that login session. Prolly not a problem 2005-04-26 21:24:06 +00:00
michaelpenne
544a4b8a4d FIX: quotes in matching questions were not grading correctly. Used htmlspecialchars on the values in the select box in view.php and then use stripslashes on the answers in continue.php 2005-04-26 20:37:34 +00:00
stronk7
c6807fea65 Page titles can contain now HTML. Needed to be able to
apply the filterall thing here.
2005-04-26 19:08:06 +00:00
stronk7
0a2c2599b6 Now lesson->name supports filterall 2005-04-24 16:46:51 +00:00
stronk7
0679acbe14 Events created by the lesson module were double-slashed. 2005-04-24 16:10:50 +00:00
michaelpenne
0f2bff9d7b FIXED: questiontypes help button was looking for the wrong help file 2005-04-13 00:01:43 +00:00
michaelpenne
97c4410778 added calendar event code to add, update, and delete instance 2005-04-08 21:38:09 +00:00
michaelpenne
86b7a42880 now if you leave the lesson the the middle of a bunch of branch tables, you will return to the last one you answered. Also, if show grades is off in course settings, the lesson will process and store the grade for the student but then redirect the student to the course page immediatly. 2005-04-05 22:42:34 +00:00
moodler
1aef65946b Removed obselete THEME and sme spacing 2005-03-30 03:16:37 +00:00
moodler
6656bf0af1 Security fixes
Fixed up styles handling to be more standard (the themes include them
already so no need for modules to do it)
2005-03-30 03:07:39 +00:00
moodler
d1465c3d12 Naming, people, naming ... keep it clear but minim 2005-03-30 02:59:41 +00:00
michaelpenne
23f5e2617c bug fix: review button no longer displays on essay questions 2005-03-30 01:24:57 +00:00
michaelpenne
16518f15f7 removed some debug lines 2005-03-30 00:53:24 +00:00
michaelpenne
845a17e6f0 all the actions in lesson.php are now defined in mod/lesson/lessonactions/ 2005-03-30 00:49:18 +00:00
michaelpenne
ea15ad0ece This file contains the code for a single action that used to be defined in lesson.php. Now each action has its own file 2005-03-30 00:38:59 +00:00
michaelpenne
c32bc595bd on multichoice questions with multianswer, the code was not cleaning the variables correctly. Now sends the array through a foreach and then clean_param on each element in the array. Fix is around line 855. 2005-03-29 22:38:27 +00:00
michaelpenne
93943f6570 on line 1030, there was a division by zero when a student has not viewed any pages. Now it checks to makes sure $nviewed != 0. This is for the ongoing score feature. 2005-03-29 22:04:06 +00:00
michaelpenne
f6e200cbce changed how data is passed from overview to detailed view and fixed the timeout issue 2005-03-14 22:18:29 +00:00
stronk7
28b09d7057 Now hidden lessons cannot be viewed.
Thanks to Javier Gil detecting it. Bug 2733.
(http://moodle.org/bugs/bug.php?op=show&bugid=2733)
2005-03-12 18:00:05 +00:00
michaelpenne
7f2ad6c2d3 changed the math for calculating the time left in a lesson to be more compatible with browsers 2005-03-11 23:15:18 +00:00
michaelpenne
011cfc95ed updated lesson_delete_instance to delete records from timer, branch, and high_scores tables 2005-03-10 22:43:00 +00:00
michaelpenne
1c97019eaf removed lesson_clean_data_submitted() function. Removed all instances of its use before I did this 2005-03-10 20:51:26 +00:00
michaelpenne
d0b8bcdc8b updategrade now cleans params correctly now (i hope) 2005-03-10 20:42:09 +00:00
michaelpenne
801697d170 insertpage and updatepage now clean params correctly (i hope) 2005-03-10 20:34:32 +00:00
stronk7
bbab80d1fc Some minor XML indentation, some changes in the XML structure and
some important bugs. Now everything seems to work properly with
lessons and backup/restore.

Only 1 pending change: Should the answer->grade field in old backups
  go to the new score field??????
2005-03-07 01:32:05 +00:00
moodler
832b9f8204 Removed filter and put badwords list in string files 2005-03-05 03:14:45 +00:00
stronk7
ac8e16be13 Bye. Now all those tabs are out 2005-03-05 00:09:39 +00:00
stronk7
8032acc64c Simple replace of tabs to spaces!! 2005-03-04 00:30:02 +00:00
stronk7
d698fea233 Some $ME are now out!
Merged from MOODLE_14_STABLE
2005-02-27 00:12:25 +00:00
michaelpenne
b0ec882fc1 delete user attempts now deletes a users grades, attempts, and time recrods. The email it sends is nicer as well 2005-02-25 19:28:51 +00:00
michaelpenne
5f3b3a084a updated report to find the times in timer table, now much more accurate. Also fixed a sesskey problem 2005-02-25 19:12:39 +00:00
michaelpenne
ff2978cea0 updated the time code to refect the new view 2005-02-25 19:11:12 +00:00
michaelpenne
c022b4964f changed the time code, now the timer table keeps track of time spent per attempt per lesson for each student. It is also used for timed tests. Also, moved check navigation link so it wont show up when there are no lesson pages. 2005-02-25 19:10:17 +00:00
michaelpenne
6899d8973f removed an echo and a comment 2005-02-23 22:24:46 +00:00
michaelpenne
0741a56672 woops, took out gustavs change, yah cvs 2005-02-23 00:56:28 +00:00
michaelpenne
49584784ac fixed up leftmenu some more 2005-02-23 00:52:29 +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
stronk7
95e72c12d0 Now retrieving only needed fields! 2005-02-13 00:42:29 +00:00
gustav_delius
48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00
michaelpenne
f7ffb898fa array/object initialization 2005-02-09 22:36:24 +00:00
michaelpenne
078ab023be array/object initialization and made essay question type work with unanswered lesson flow 2005-02-09 22:34:14 +00:00
michaelpenne
d72b5b56dc I think just array/object initialization 2005-02-09 22:31:36 +00:00
michaelpenne
0f4be3f608 initialized arrays and objects, fixed a few bugs 2005-02-09 22:29:29 +00:00
moodler
fafd89a0f1 Removed $THEMEs and stuff.
I'm a little worried about this spaghetti code ... it's a mess!
2005-02-09 15:36:29 +00:00
moodler
a710d8c616 Improved feedback after an action (on redirect) and also put a
navigation check link up the top.
2005-02-09 15:21:56 +00:00
stronk7
e09087bc76 Some minor changes to each module to XHTMLise the restore process 2005-02-07 23:33:17 +00:00
michaelpenne
5aeebbc894 re-arranged a lot of code. Only branch tables appear in slide show mode. Display left and slideshow works with tables now instead of stylesheets (helps with browser compatibility). Some XHTML fixes. Fixed grading essay questions for non-custom scoreing. Reformated a lot of output 2005-02-04 19:39:18 +00:00
michaelpenne
ea6c76e0f2 removed a lot of styles because left menu and slideshow work in a table instead of styles. This helps with compatibility with more browsers 2005-02-04 19:35:43 +00:00