Git commits in Moodle 1.5.0 by michaelpenne

commit 86b7a42880c7f4c61beee3589b3a3cb7639d1e5c
Author: michaelpenne <michaelpenne>
Date:   Wed, 06 Apr 2005 06:42:34 +0800
Tag:    v1.5.0

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.

commit 23f5e2617cb0fac8281eb643a30ebaddd6bb3b21
Author: michaelpenne <michaelpenne>
Date:   Wed, 30 Mar 2005 09:24:57 +0800
Tag:    v1.5.0

bug fix: review button no longer displays on essay questions

commit 16518f15f7c25f073855d0bcbf2fe0a13c8782d8
Author: michaelpenne <michaelpenne>
Date:   Wed, 30 Mar 2005 08:53:24 +0800
Tag:    v1.5.0

removed some debug lines

commit 845a17e6f0db22f6f37ed7400a2b0c0577786c99
Author: michaelpenne <michaelpenne>
Date:   Wed, 30 Mar 2005 08:49:18 +0800
Tag:    v1.5.0

all the actions in lesson.php are now defined in mod/lesson/lessonactions/

commit ea15ad0ece248c5008add66022f826ac8bc08b65
Author: michaelpenne <michaelpenne>
Date:   Wed, 30 Mar 2005 08:38:59 +0800
Tag:    v1.5.0

This file contains the code for a single action that used to be defined in lesson.php.  Now each action has its own file

commit c32bc595bd347454b59181b86d324d81ac79a192
Author: michaelpenne <michaelpenne>
Date:   Wed, 30 Mar 2005 06:38:27 +0800
Tag:    v1.5.0

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.

commit 93943f65706dd2d1985fd9ef13ebca13c145b115
Author: michaelpenne <michaelpenne>
Date:   Wed, 30 Mar 2005 06:04:06 +0800
Tag:    v1.5.0

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.

commit f6e200cbce9af785a7ff21caf8f5a48ce58161e5
Author: michaelpenne <michaelpenne>
Date:   Tue, 15 Mar 2005 06:18:29 +0800
Tag:    v1.5.0

changed how data is passed from overview to detailed view and fixed the timeout issue

commit 7f2ad6c2d3e5cc114919099abd3c8129595cd56d
Author: michaelpenne <michaelpenne>
Date:   Sat, 12 Mar 2005 07:15:18 +0800
Tag:    v1.5.0

changed the math for calculating the time left in a lesson to be more compatible with browsers

commit 4b63a1cbe8e02e3c6ef77f76449d3c3e9d938fb3
Author: michaelpenne <michaelpenne>
Date:   Fri, 11 Mar 2005 07:59:21 +0800
Tag:    v1.5.0

added content to these

commit 23381eef516f4c7ff4eda7ec0718130646ad6675
Author: michaelpenne <michaelpenne>
Date:   Fri, 11 Mar 2005 06:58:58 +0800
Tag:    v1.5.0

added defaultessayresponse string to the lang file (not sure why I had this in lesson.php)

commit 011cfc95eda37c160dfbdcdf01dc39e8b1080700
Author: michaelpenne <michaelpenne>
Date:   Fri, 11 Mar 2005 06:43:00 +0800
Tag:    v1.5.0

updated lesson_delete_instance to delete records from timer, branch, and high_scores tables

commit 1c97019eaf239376605c3dd214661666ea7ce1a0
Author: michaelpenne <michaelpenne>
Date:   Fri, 11 Mar 2005 04:51:26 +0800
Tag:    v1.5.0

removed lesson_clean_data_submitted() function.  Removed all instances of its use before I did this

commit d0b8bcdc8bda8ea1dc4360a436c4e414c8ffc903
Author: michaelpenne <michaelpenne>
Date:   Fri, 11 Mar 2005 04:42:09 +0800
Tag:    v1.5.0

updategrade now cleans params correctly now (i hope)

commit 801697d1709d9623e80b11dfb79db769bd51a1f8
Author: michaelpenne <michaelpenne>
Date:   Fri, 11 Mar 2005 04:34:32 +0800
Tag:    v1.5.0

insertpage and updatepage now clean params correctly (i hope)

commit b0ec882fc1687885c1f541ad303d61bf9587cd38
Author: michaelpenne <michaelpenne>
Date:   Sat, 26 Feb 2005 03:28:51 +0800
Tag:    v1.5.0

delete user attempts now deletes a users grades, attempts, and time recrods.  The email it sends is nicer as well

commit 5f3b3a084a42d9407edd2b41abfb452c01b5407a
Author: michaelpenne <michaelpenne>
Date:   Sat, 26 Feb 2005 03:12:39 +0800
Tag:    v1.5.0

updated report to find the times in timer table, now much more accurate.  Also fixed a sesskey problem

commit ff2978cea04e9a05016de29e37f9286fc49d35ad
Author: michaelpenne <michaelpenne>
Date:   Sat, 26 Feb 2005 03:11:12 +0800
Tag:    v1.5.0

updated the time code to refect the new view

commit c022b4964f090d677bc5e2638ab4f358410dd111
Author: michaelpenne <michaelpenne>
Date:   Sat, 26 Feb 2005 03:10:17 +0800
Tag:    v1.5.0

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.

commit 6899d8973f8131f1c99ee45d25c91b3dcea44154
Author: michaelpenne <michaelpenne>
Date:   Thu, 24 Feb 2005 06:24:46 +0800
Tag:    v1.5.0

removed an echo and a comment

commit 0741a566725190005ce841482a069a07cc4b228f
Author: michaelpenne <michaelpenne>
Date:   Wed, 23 Feb 2005 08:56:28 +0800
Tag:    v1.5.0

woops, took out gustavs change, yah cvs

commit 49584784acdab871f9f20ba2e280c39dfd161085
Author: michaelpenne <michaelpenne>
Date:   Wed, 23 Feb 2005 08:52:29 +0800
Tag:    v1.5.0

fixed up leftmenu some more

commit f7ffb898fa81d0a12de0f00255aedb5b62deabce
Author: michaelpenne <michaelpenne>
Date:   Thu, 10 Feb 2005 06:36:24 +0800
Tag:    v1.5.0

array/object initialization

commit 078ab023be90bf68b112308c41041448838ea2dd
Author: michaelpenne <michaelpenne>
Date:   Thu, 10 Feb 2005 06:34:14 +0800
Tag:    v1.5.0

array/object initialization and made essay question type work with unanswered lesson flow

commit d72b5b56dcf52793ec7fae9309a21d2f5f75ed9c
Author: michaelpenne <michaelpenne>
Date:   Thu, 10 Feb 2005 06:31:36 +0800
Tag:    v1.5.0

I think just array/object initialization

commit 0f4be3f6084f568e32166e562a02533c14728491
Author: michaelpenne <michaelpenne>
Date:   Thu, 10 Feb 2005 06:29:29 +0800
Tag:    v1.5.0

initialized arrays and objects, fixed a few bugs

commit 4759d2c1eb6329ab398d6ecf6defde3e80e8714f
Author: michaelpenne <michaelpenne>
Date:   Sat, 05 Feb 2005 04:49:04 +0800
Tag:    v1.5.0

changed Main Menu to Course Menu

commit 31062eefad4b895ece9c4f7f3add5fde5f19ecab
Author: michaelpenne <michaelpenne>
Date:   Sat, 05 Feb 2005 04:11:48 +0800
Tag:    v1.5.0

changed a couple of <br> to <br />

commit 5aeebbc8942f8266909613ef9c2e92140c2229ca
Author: michaelpenne <michaelpenne>
Date:   Sat, 05 Feb 2005 03:39:18 +0800
Tag:    v1.5.0

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

commit ea6c76e0f2d9c9b287168c0c1d7ceaf07bf03ecf
Author: michaelpenne <michaelpenne>
Date:   Sat, 05 Feb 2005 03:35:43 +0800
Tag:    v1.5.0

removed a lot of styles because left menu and slideshow work in a table instead of styles.  This helps with compatibility with more browsers

commit 9d1bd908f5e57a11f30c0dfe043984d98d33023c
Author: michaelpenne <michaelpenne>
Date:   Sat, 05 Feb 2005 03:34:22 +0800
Tag:    v1.5.0

fixed the clock formating.

commit 62d52913181887938caa4700135c7991a70d9faf
Author: michaelpenne <michaelpenne>
Date:   Sat, 05 Feb 2005 03:33:33 +0800
Tag:    v1.5.0

this is Petrs security fix for import

commit 9127f2494d6bdca39d62127b361c9e58549979a8
Author: michaelpenne <michaelpenne>
Date:   Sat, 05 Feb 2005 03:31:24 +0800
Tag:    v1.5.0

fixed a clean param function call

commit b7daa75d0861918060eb8180570f820daedadda9
Author: michaelpenne <michaelpenne>
Date:   Sat, 05 Feb 2005 03:30:19 +0800
Tag:    v1.5.0

most changes in continue section.  Took it out of slideshow.  Made some display changes with display left (not style sheet dependent now)

commit d9ef9b836d4f36e96084e21a0531b3feaa710f2f
Author: michaelpenne <michaelpenne>
Date:   Sat, 29 Jan 2005 03:31:41 +0800
Tag:    v1.5.0

fixed some prefixes, not sure how this didnt get noticed before ;)

commit 02959079632366b877aafb8a5f8cd5d514938ed4
Author: michaelpenne <michaelpenne>
Date:   Fri, 28 Jan 2005 05:37:41 +0800
Tag:    v1.5.0

added some new lang entries for mod.html

commit f862f00d54157cebe170271351242b10372838ac
Author: michaelpenne <michaelpenne>
Date:   Fri, 28 Jan 2005 05:36:12 +0800
Tag:    v1.5.0

variable cleaning and sesskey updates

commit 0733cc0062a7d4ab8c5e076ec0edb69ad4d97ebf
Author: michaelpenne <michaelpenne>
Date:   Fri, 28 Jan 2005 05:35:37 +0800
Tag:    v1.5.0

made a change to lesson_clean_data_submitted and added some xhtml compliance fixes

commit d6847e5d95e778b5c5d2f2570158dbd572b19179
Author: michaelpenne <michaelpenne>
Date:   Fri, 28 Jan 2005 05:33:35 +0800
Tag:    v1.5.0

uncommented the require style sheet (was there a problem?), also rearranged lesson settings into categories.

commit 07fe38c02b78da0baef011865e0cd735628a9afa
Author: michaelpenne <michaelpenne>
Date:   Wed, 26 Jan 2005 08:30:46 +0800
Tag:    v1.5.0

added function lesson_clean_data_submitted(), this cleans the object made from data_submitted() function (forgot comments before)

commit 57bfe93dca64d60bf8ec1cd7dbfe10b4bf63465f
Author: michaelpenne <michaelpenne>
Date:   Wed, 26 Jan 2005 08:25:20 +0800
Tag:    v1.5.0

added function lesson_clean_data_submitted(), this cleans the object made from data_submitted() function

commit eb65aeb7fd84d457ef5cf34fb7c41a9dce8f7179
Author: michaelpenne <michaelpenne>
Date:   Wed, 26 Jan 2005 08:22:51 +0800
Tag:    v1.5.0

security updates: parameter cleaning

commit 29a014c05a5c9e12a7407a096eddbb06a11d1d15
Author: michaelpenne <michaelpenne>
Date:   Sat, 22 Jan 2005 07:13:53 +0800
Tag:    v1.5.0

corrected the sesskey code

commit 4ea3ce2fcbfae3da3cfdb84393d9f910c86a49ce
Author: michaelpenne <michaelpenne>
Date:   Sat, 22 Jan 2005 03:02:57 +0800
Tag:    v1.5.0

added sesskey code to remove the sesskey error from updating the lesson from view.php

commit bca6b842caba761a80532892aadd92012c1be52e
Author: michaelpenne <michaelpenne>
Date:   Tue, 07 Dec 2004 04:33:44 +0800
Tag:    v1.5.0

fix class stats for essay questions

commit 8061400e0f81965275660fd5cccbe83dd708974d
Author: michaelpenne <michaelpenne>
Date:   Thu, 02 Dec 2004 05:02:07 +0800
Tag:    v1.5.0

updated essay and short answer code to work with quotes (single and double)

commit 611e79fd75405136a4a519016c2b1ce2b1f5bccc
Author: michaelpenne <michaelpenne>
Date:   Thu, 02 Dec 2004 05:00:49 +0800
Tag:    v1.5.0

updated essay code to work with quotes being used in user answer and teacher response

commit cc72031abede68d998bbd1f1fad3d57365b7e4c8
Author: michaelpenne <michaelpenne>
Date:   Wed, 17 Nov 2004 09:07:17 +0800
Tag:    v1.5.0

changed ongoingcustom definition

commit 324da715f22a77f368670e15c84727a698009230
Author: michaelpenne <michaelpenne>
Date:   Wed, 17 Nov 2004 09:05:39 +0800
Tag:    v1.5.0

updated lesson_calculate_ongoing_score to match the grading algorithm used in view.php.  Also suppressed a warning in lesson_print_tree_link_menu function.

commit 8bca120ff0810fa244c5a22b55e0a8b7fca5e073
Author: michaelpenne <michaelpenne>
Date:   Wed, 17 Nov 2004 09:02:14 +0800
Tag:    v1.5.0

Changed the grading algorithm.  Now it divides points earned by total points possible.  Before was dividing points earned by max grade.  Also updated essay grading to work much more reliably and fixed some formatting problems with essay emails.

commit f4a246d2a50df869e343c5c03d757e636266e787
Author: michaelpenne <michaelpenne>
Date:   Tue, 02 Nov 2004 04:50:54 +0800
Tag:    v1.5.0

help file for modattempts option in lesson settings.  Empty at the moment though

commit 983e7d0e2a0b9123c434194f1c6ee3931daabb40
Author: michaelpenne <michaelpenne>
Date:   Tue, 02 Nov 2004 04:48:51 +0800
Tag:    v1.5.0

added new lang entries for lesson module

commit 9390ae0017a937b06f50789a8bfc68c1fc4c4584
Author: michaelpenne <michaelpenne>
Date:   Tue, 02 Nov 2004 04:47:08 +0800
Tag:    v1.5.0

added fields: useranswer field in lesson_attempts, and added modattempts to lesson and lesson_default tables, and removed essay table creation

commit 8f4c2d41e47eb9dc9f5a454b541199cea1fcdcbb
Author: michaelpenne <michaelpenne>
Date:   Tue, 02 Nov 2004 04:44:06 +0800
Tag:    v1.5.0

added alter table commands to insert useranswer field in lesson_attempts, and added modattempts to lesson and lesson_default tables

commit 2e7551866789f73290669b9be8996f3b20fe9f3b
Author: michaelpenne <michaelpenne>
Date:   Tue, 02 Nov 2004 04:41:55 +0800
Tag:    v1.5.0

added a link to report, changed conditions for displaying essay link, modified the essay functions to reflect the new view of an essay question, and updated view.php to work with modattempts option

commit eb73cd47e04b435c5958ef1910bf1477d31c4137
Author: michaelpenne <michaelpenne>
Date:   Tue, 02 Nov 2004 04:39:30 +0800
Tag:    v1.5.0

moved output from inside this file, to lesson.php and view.php.  Also now uses lang file.

commit f50e2abc74c5c747e1d13282f0da082b22273ffd
Author: michaelpenne <michaelpenne>
Date:   Tue, 02 Nov 2004 04:37:16 +0800
Tag:    v1.5.0

can restore the new backup code now

commit 37eeba778fdec5aca5c91ab4caea147ccf64cc89
Author: michaelpenne <michaelpenne>
Date:   Tue, 02 Nov 2004 04:35:45 +0800
Tag:    v1.5.0

report displays statistics regarding users attempts for a particular lesson. If a student has attempted a lesson, a link will appear when you edit the lesson to view statistics.  This feature works best with the newest version of lesson because lesson now retains more information regarding how the user answered a given question.  Old lesson attempts will not display correctly.

commit d01e2b0ba22b9b2986df7b584c8d2c01f94a591b
Author: michaelpenne <michaelpenne>
Date:   Tue, 02 Nov 2004 04:27:28 +0800
Tag:    v1.5.0

added a new setting which is modattempts

commit 9959aab2384753119b845a39a797282f66db0f27
Author: michaelpenne <michaelpenne>
Date:   Tue, 02 Nov 2004 04:25:42 +0800
Tag:    v1.5.0

on line #277, return null instead of throwing an error

commit ecb00e05e29f01ccc23290707af4aba195099339
Author: michaelpenne <michaelpenne>
Date:   Tue, 02 Nov 2004 04:21:21 +0800
Tag:    v1.5.0

increased the lesson version number

commit b986908256b7a2c1ab62e5f012150b538c716244
Author: michaelpenne <michaelpenne>
Date:   Tue, 02 Nov 2004 04:18:26 +0800
Tag:    v1.5.0

changed lesson_calculate_ongoing_score function and added some comments

commit db227020892feae73d897371564ab34d555479d0
Author: michaelpenne <michaelpenne>
Date:   Tue, 02 Nov 2004 04:15:11 +0800
Tag:    v1.5.0

endofcluster pages are not displayed anymore, shortanswer wrong answers are interpreted correctly, added user answer tracking to attempts so it can be used later by report.php, essays are no longer insterted into an essay table... now kept in the useranswer field in attempts, fixed a problem with grading numerical questions, modified to work with modattempts option, fixed a problem with grading matching questions and fixed addpage so that it displays multichoice with the multianswer option

commit 493c24e5a8d0f135126b03e89d4036ec47ce232c
Author: michaelpenne <michaelpenne>
Date:   Tue, 02 Nov 2004 03:53:06 +0800
Tag:    v1.5.0

backup now actually backs up.  Includes all of our database changes

commit 800abfe61da6bf75525ff4da86b3ddf4f2400be3
Author: michaelpenne <michaelpenne>
Date:   Wed, 29 Sep 2004 03:22:30 +0800
Tag:    v1.5.0

fixed a wrong lang call on line #1176

commit c732188674893df44d2dbc855aec6ae31ac0034a
Author: michaelpenne <michaelpenne>
Date:   Wed, 29 Sep 2004 03:15:20 +0800
Tag:    v1.5.0

changed $pages[$count][0] to $pageid on line #617

commit 033c143250ce5ede2c3cc40fa81f8590ac42e552
Author: michaelpenne <michaelpenne>
Date:   Fri, 24 Sep 2004 04:30:00 +0800
Tag:    v1.5.0

put in Sebastien Michels change on line #911

commit 909e6c79d84b4d427f52cee5c8de588b1983b492
Author: michaelpenne <michaelpenne>
Date:   Thu, 23 Sep 2004 03:14:51 +0800
Tag:    v1.5.0

Fixed a bug regarding cluster jumps.  Before, if end of cluster's jump was next page, it would throw an error.

commit 1663b64f1e250229966629b7f4be2c95efc049c6
Author: michaelpenne <michaelpenne>
Date:   Wed, 22 Sep 2004 06:16:46 +0800
Tag:    v1.5.0

changed the order of db updates.  now the order is old to new.

commit 7143a2841e9bdce6c0e4dccfeb8c68731687b0ea
Author: michaelpenne <michaelpenne>
Date:   Wed, 22 Sep 2004 06:15:30 +0800
Tag:    v1.5.0

added an include for lib.php changed the display of page titles changed matching such that if two matching items match to the same answer, that answer only apprears once in the drop down menu. Changed how the grade essay question link apprears.  Only appears if there is an essay to grade.

commit 3de88244c46450d844247b585cf525e2ed1cb77c
Author: michaelpenne <michaelpenne>
Date:   Wed, 22 Sep 2004 06:13:08 +0800
Tag:    v1.5.0

added option to delete a users attempt records.  Sends an email if delete was seccessful or not.

commit 1535c81ba369c8a4f7eab2dfb9c9b44af9556a8e
Author: michaelpenne <michaelpenne>
Date:   Wed, 22 Sep 2004 06:12:04 +0800
Tag:    v1.5.0

added code to handle deleting of user attempts

commit d19d9ef16d53b2b5273bd390f7880e074719bb9b
Author: michaelpenne <michaelpenne>
Date:   Wed, 22 Sep 2004 06:11:00 +0800
Tag:    v1.5.0

Fixed some problems with matching

commit 7471d889aa8d6f8e66288482a62ce0c0219e084e
Author: michaelpenne <michaelpenne>
Date:   Wed, 22 Sep 2004 03:50:10 +0800
Tag:    v1.5.0

New help file.  Blank though sad

commit 0fe78d9481f066547495b8f4938805f16df89d8b
Author: michaelpenne <michaelpenne>
Date:   Wed, 22 Sep 2004 03:48:39 +0800
Tag:    v1.5.0

Added a new lang definition

commit e5c6a35c22bb020b4dc721b1c7b3ada22c2bc275
Author: michaelpenne <michaelpenne>
Date:   Fri, 17 Sep 2004 00:20:59 +0800
Tag:    v1.5.0

Fixed the primary key problem in the mysql.

commit 5e7856af581ab4554e66bba692575f42ab495ad3
Author: michaelpenne <michaelpenne>
Date:   Thu, 16 Sep 2004 04:32:24 +0800
Tag:    v1.5.0

Added a lot of new features to lesson mod.  Check them out smile MarkNielsen

commit 91d5d7b418a18abf6cf78c0b837962ffb7ed4bd3
Author: michaelpenne <michaelpenne>
Date:   Thu, 16 Sep 2004 04:28:47 +0800
Tag:    v1.5.0

Added new lang help info for lesson mod - MarkNielsen

commit 728bb2a12e4214d81af82cc633d504dae471cd4f
Author: michaelpenne <michaelpenne>
Date:   Thu, 16 Sep 2004 04:23:31 +0800
Tag:    v1.5.0

Added new lang info for lesson mod - MarkNielsen