Posts made by Martin Dougiamas

Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Hi,

Just to let you know, cvs.moodle.org is moving to a new server today (from 74.54.45.50 to 174.123.154.58), and you might see some "WARNING: POSSIBLE DNS SPOOFING DETECTED!" warnings from ssh because the IP number has changed.

Fear not, it's a legitimate move.

To fix the warnings, just delete your local copy of the host key and re-connect.

Cheers,
Martin
Average of ratings: Useful (1)
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I'd recommend a project-based approach.

You should also set up a Moodle site (using the docs if necessary), think of a real application for Moodle (eg a University or a school) and then try to set up Moodle for that situation). It doesn't have to be a real school, but obviously if it is then you have more motivation smile

This process will generate questions whenever you get stuck. You can then search for the answers to these questions using the resources here: http://moodle.org/support/
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Sorry, $PAGE is part of the new output layer in Moodle 2.0 code (it never existed in Moodle 1.x).

One way to do it for your 1.x module is to put all your Javascript code in a file called mod/mediaonline/javascript.php (note that you can include PHP logic in there to generate user-specific JS if you want to but you don't have to, it can just be raw JS). That file will then be included automatically on every page by lib/javascript.php.