Moodle (edu)

Moodle: Modular Object-Oriented Dynamic Learning Environment.
A free open-source learning management system (LMS)

Moodle: a few common queries

May 2, 2020

php command to see a lot of moodle global variables in memory echo '< pre >'; #var_dump ( get_defined_vars($CFG) ); print_r($CFG); echo '< /pre > '; examples $CFG->dbname $CFG->release ex: “3.3.4 (Build: 20180115)” echo '< pre >'; #var_dump ( get_defined_vars($USER) ); print_r($USER); echo '< /pre > '; example: $USER->id $USER->username   display all users who upper cased their name etc. … or were too...

Read more »

moodle: Time Spent in a lesson saved in the lesson timer table is distorted, wrecked

October 29, 2016

updated 2020-05-17 Moodle: Time Spent in a lesson is being falsified since mdl 2.3 note: As of moodle 3.0, a time limit on the lesson can be seconds, minutes, hours, days or weeks. A person can leave and re-enter a lesson at will, but the termination time is set with the first entry into the lesson. Moodle: To require a minimum time spent in...

Read more »

moodle 2 & 3: exclude my-moodle from admin

November 16, 2014

updated 2018-06-20 How to re-exclude admin, administrators, from the my-moodle dashboard. The moodle Administrator is no longer excluded from the my-moodle module. Starting with moodle 2.0, if we activate the my-moodle {dashboard in mdl 3} front page for students, administrators get thrown into it also upon logging in and it, awkwardly, becomes the admin home page. Throughout the moodle 1.x versions, you could turn...

Read more »

moodle: A query to see where course lessons are in the database

June 18, 2014

updated 2019-11-06 To see where-how the modules for each “Topic” are stored and kept in order. To see the record-id (instance) for the particular lesson, questionnaire, feedback request, or etc. The instance is the mdl_{MODULE}.id for a long time, if the module id is 11, it is the lesson module; if the module id is 19, it is the feedback module; etc. 1st query...

Read more »

Moodle: config.php, for debugging and flexible control

December 13, 2013

updated 2018-06-19 If you do not hard-code anything that is not necessary, you can avoid having multiple copies of files. If you have a test copy of moodle in a different folder (ex: mdl-test), add an if statement to handle it. if (stripos(dirname(__file__), 'mdl-test') ) {$CFG->dbname = 'mdl_backup'; } else {$CFG->dbname = 'mdl_production'; } I broke wwwroot up into 2 steps: $wwwroot = 'http://'...

Read more »

moodle 2 lessons: grade errors

October 11, 2011

updated 2018-06-26 Unreliable grade tracking in lesson module moodle has known for years that their grades (course >> grades) are unreliable and that their calculations of “time spent in a lesson” are wrong, but have still, as of now, (moodle 2.1.2, October 10th, 2011) not done anything about it. 2017-2018: in moodle 3.3 the lesson module has been greatly enhanced. Much that has been...

Read more »

How to keep a moodle database clean and trim

August 22, 2011

updated 07-25-2020 If your database is becoming very large “Help, my moodle database is huge!” How to delete old records in a huge moodle database How to clean moodle database tables. How to keep a moodle database clean and trimmed How to delete old log table records from a moodle database Moodle has “Site administration” settings to “Moodle keeps extensive logs of user activity....

Read more »

Open Source LMS, MOODLE, ATutor, Sakai, Canvas, and others

December 29, 2010

Because moodle has abandoned so many of its installed client base with the release of moodle version 2.0, it’s seems to be the right time to look at the alternatives. Moodle has only about 10% of the on-line education market. “Moodle has been in a downward spiral for a few years” – educhalk.org ATutor ver. 2.0 PHP 5 meg tar.gz Claroline ver. 1.10 PHP...

Read more »