218 Commits

Author SHA1 Message Date
defacer
7f9def8fa9 XHTML fix 2005-11-23 22:31:52 +00:00
defacer
018881d4a9 Fixing invalind value for cellpadding ("5px") 2005-11-23 22:14:57 +00:00
defacer
3d6fc45229 Fixing defaults (copy/paste error) -- this printed notices with debug=on and
actually mangled the "create lesson instance" query so badly that you could
not add lessons!
2005-11-23 22:11:50 +00:00
michaelpenne
acab90991a BUG FIX: progress bar now does not break when student reviews the lesson.
BUG FIX: matching question type upgrade script now supports quotes.

CHANGED: Improved labels for form elements to improve accessibility.

NEW: added a skip navigation link for left menu.
2005-11-16 22:35:46 +00:00
michaelpenne
114f47a79e NEW FEATURE: Activity Link allows the teacher to display a link to another activity, which is in the same course,
at the end of the Lesson.
2005-11-07 19:56:08 +00:00
michaelpenne
16fa48c83e The Lesson dependency help button was pointing to the wrong help file. 2005-11-02 21:22:16 +00:00
michaelpenne
3eca6cf1bf NEW FEATURE: Media file now works with web pages and with text and html files. Also, the pop-up
window size is configurable as well as an optional close button at the bottom of the window.
2005-10-28 22:45:47 +00:00
michaelpenne
c83dca2287 BUG FIX: Double print of content in branch tables with slide show on 2005-10-28 18:55:58 +00:00
michaelpenne
0017b962e6 BUG FIX: essay response was still hard coded in. Replaced it with a get_string call 2005-10-26 23:11:26 +00:00
michaelpenne
3c34ce6802 reverted back some divs, minor change 2005-10-26 21:48:24 +00:00
michaelpenne
fb0f70908b BUG FIX: if one is a teacher, the left menu is always displayed. 2005-10-26 21:43:48 +00:00
michaelpenne
62eda6ea18 NEW: Progress bar option. Now a progress bar can be optionally displayed at the bottom of the lesson page.
NEW: Display Left Menu IF.  The left menu will only display if the student has a grade better than the one set in the lesson settings.  This is nice to allow only students who are reviewing the lesson to have access to the left menu.

BUG FIX: In Windows IE, the content was being aligned center.  Now, the content is explicitly aligned to left as default.
BUG FIX: High Scores variable was not spelled correctly at the End of Lesson.

ADDED: Div tags around branch tables.  This will allow users to choose to display them or not or move them around

CHANGED: converted more of the links to the stylized button.  Also, removed a lot of forms and javascript and replaced it with links with the variables in the href.
CHANGED: the slide show styles have been moved to the style sheet.
CHANGED: removed the CDC comments

Other minor changes have been made to the code as well.
2005-10-24 23:06:43 +00:00
michaelpenne
b6a64b0295 Removed a notice warning when lessons are created in a course with no category (eg: home page) 2005-10-14 19:25:11 +00:00
michaelpenne
4e644e8d50 Reverted grading back to 1.4.X for when custom scoring is turned OFF 2005-10-07 20:33:39 +00:00
michaelpenne
d6941aff55 Recoded most of the left menu:
Got rid of a table
Restructured and added more div tags in the left menu (much more logical)
Reworked the styles for the left menu in the styles sheet (everything should be customizable via style sheet)
More compatible with MacIE5
Added styles to the individual links in the menu (allows styling the for currently selected page and for all the rest)
Cleaned up the left menu link generation in locallib.php
2005-10-05 22:45:38 +00:00
michaelpenne
b8437c1cbc Removed filtering on page contents, answers and responses for lesson pages and their answers (this includes removing parameter cleaning and noclean in format_text).
Also, fixed some warning errors in action/updatepage.php.
2005-10-03 21:29:05 +00:00
michaelpenne
8b87bbde6c BIG FIX: "Edit Page Contents" button for when $pageid is empty (first page) 2005-10-03 19:46:44 +00:00
michaelpenne
544121b12d Switched buttons in lesson navigation to stylized links similar (well, the same rather for default) to the home button in the footer. This will allow for easy (hopefully) personalized customization of the buttons in lesson (ex: background images, colors, etc).
styles.php: added new styles, added comments and cleaned it up
view.php: converted the buttons for each question type to the new button standard.  Also recoded branch table button layout generation.
action/continue.php: updated the buttons there as well.
2005-09-28 21:55:05 +00:00
michaelpenne
b46d9213ba Added styles to the next and previous buttons on branch tables to allow customization 2005-09-21 21:00:36 +00:00
mjollnir_
f3221af9e5 Initial checkin of stats (from processing the log table).
I will write up some information about it for the developers wiki.
2005-09-01 04:14:31 +00:00
michaelpenne
e83348c6f0 FIXED: Removed Notice Warning. Sometimes an attempt's answerid field is not set because the answer that the student entered does not match any of the answers for the question. This error comes up for Numerical and Short answer question types. 2005-08-29 22:04:13 +00:00
michaelpenne
da2a70fadd FIXED: Bug with reporting numerical question types. 2005-08-29 19:37:33 +00:00
patrickslee
4e980e5a92 Mass cleanup of bad postgres upgrade scripts(merged from 15_stable) 2005-08-15 23:17:58 +00:00
michaelpenne
0bdb7db93f Fixed a path problem that occurs while unzipping 2005-07-22 21:09:37 +00:00
michaelpenne
afbc9cbdc3 I think I have a solution for the problems with matching question type and upgrading moodle from 1.4.x to 1.5+.
View bug 3468 and this forum post for more information: http://moodle.org/mod/forum/discuss.php?d=27354
2005-07-14 20:00:45 +00:00
michaelpenne
8d9d840a50 attempted to make the unzipping process and initial file reading more robust 2005-07-14 19:06:29 +00:00
michaelpenne
2be4ee62c1 Bug 3531 fixed 2005-07-12 23:07:31 +00:00
moodler
f5e1319ec3 Merged SC139 from stable 2005-07-12 08:00:51 +00:00
stronk7
25ef0370d5 Improved automatic relinking in backup and restore. Credits go to skodak.
Complete refactoring of the system that was really awful (my fault!).
Now everything is in its place and working like a charm, making things really
easier to be implemented and amplied. Bug 3678
(http://moodle.org/bugs/bug.php?op=show&bugid=3678)
(http://moodle.org/mod/forum/discuss.php?d=26530)

Note: Everything is merged from stable but the quiz module because it has
other changes not merged for now. I've skyped a message to Gustav about it.

Merged from MOODLE_15_STABLE
2005-07-04 18:56:03 +00:00
michaelpenne
ee3f227560 New Feature: Lesson Dependency
In a lesson's settings one can now set the current lesson to be dependent on another lesson in the same course.  Then, the user can set the conditions for the dependency.  Currently the conditions are time spent, grade better than X, and completed (yes/no).
2005-06-30 21:11:02 +00:00
michaelpenne
dd192b2692 Numerical import was still looking at min/max arrays. I changed it so numerical will now subtract the tolerance from the answer to get the min and add the tolerance to the answer to get the max 2005-06-29 23:02:12 +00:00
michaelpenne
2ef7eeec9c FIXED: was calling an old quiz class name for importing. Updated it to call the new class name 2005-06-29 23:00:12 +00:00
michaelpenne
de8598a908 FIXED: at End of Lesson with review on produced two warnings. Now they are gone 2005-06-29 18:08:37 +00:00
michaelpenne
af1cd0fe33 Made the shortanswer qtype grading much more reliable. Change to preg_match to speed things up. Also do a preg_quote on the teacher supplied answer to prevent confusion in the preg_match statements (before + signs and the like were causing the preg_match statements to fail). 2005-06-21 22:38:26 +00:00
michaelpenne
c5cbd215fb Bug Fix: The code for dealing with the * character for shortanswer question type was lost. I downloaded 1.4.5+ and merged the shortanswer grading code into 1.6 dev. 2005-06-21 21:45:04 +00:00
michaelpenne
7250297f1b changed the name for the popups, IE was failing with long names 2005-06-16 21:18:37 +00:00
michaelpenne
3f46783677 took out the 80%, not sure if it should be there or not ;) 2005-06-16 17:41:12 +00:00
michaelpenne
a972bb821f with slideshow off: set the width for print_simple_box to 80% for the page content 2005-06-16 17:38:37 +00:00
michaelpenne
804456766e now passes the media files name to the print header function 2005-06-16 17:17:58 +00:00
michaelpenne
1fd92aadb0 Fixed a problem with quotes in short answers
and

Fixed a bug with clusters.  If you enter a cluster after a page it would throw a
navigation error.  It now enters the cluster properly.
2005-06-15 23:41:01 +00:00
michaelpenne
f26cef7c22 Minor changes to support the new media file feature. 2005-06-15 23:35:11 +00:00
michaelpenne
dbda1da801 This file is used as a popup to play a media file defined in the lesson settings.
This file still needs some testing before it is ready for prime time.
2005-06-15 23:29:50 +00:00
urs_hunkler
09ade8ac05 Merged from 1.5: corrected the CSS. It is not enough to set the outer class once at the begining of a comma separated list of CSS stylings. Every item must contain the full series of classes or ids, only the properties are following once. 2005-06-15 19:28:12 +00:00
michaelpenne
5805dddbb6 put in two !== instead of != to compare NULL values 2005-06-14 17:42:12 +00:00
michaelpenne
7629332ba4 Bug: fixed a problem with the date completed value and a problem with processing shortanswer/numerical question types 2005-06-09 21:55:53 +00:00
michaelpenne
71ba4dce3c Discovered a bug with lesson grades. While calculating the grade, intval was used to truncate the decimals from the grade. intavl is now replaced with round. round will now round the grade to 5 decimal places. The database only holds int(3). So, this has been changed to float to hold decimal numbers. We have found this to be much more accurate when converting the stored percentage in the database back to a point value (before this fix, users were getting numbers like 46.5 points instead of their original 47 points due to an inaccurate percent value). Files changed for this fix include:
locallib.php
report.php
version.php
view.php
db/mysql.php
db/mysql.sql
db/postgres7.php
db/postgres7.sql
2005-06-09 21:24:17 +00:00
michaelpenne
cedac380ed Before, importppt would look for outline.htm to determine the order of the slides.
If outline.htm is not found, it would fail.  Now if outline.htm is not found
importppt will scan the directory for any file that starts with slide.
This change was added to support powerpoint 2000
2005-06-08 17:33:41 +00:00
michaelpenne
bd71134047 Bug 1650 fixed: help button calling the wrong help file 2005-06-07 20:56:37 +00:00
michaelpenne
f933effb3e Bug 3022 Fixed: got rid of uppercase tags 2005-06-07 20:47:25 +00:00
michaelpenne
e0b1a2bea9 BUG FIX for Bug #3059: if there is not a response to an answer, the response gets set to an empty string 2005-06-06 18:30:34 +00:00