Talk:Moodle for Mobiles

Revision as of 01:44, 10 September 2007 by Davy Chiu (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Moodle for Mobiles.

This is a great mod but the README is FAR from useful. I had to look through the source to get it working. There is no description (conveniently located) of what it does and where to see what it does. So I will try to provide more complete info for the poor admins out there installing this.

This mod does TWO things:

  1. adds check for cellphone browser and JAPANESE carrier and loads page accordingly
  2. adds a little icon beside the Quiz and Feedback object in the course homepage edit view


Most admins installing this would probably test it with a cellphone emulator like Openwave. However, the emulators' User Agent is different from the actual browser on the cellphones and do not pass the regex in the mod as a cellphone. The mod checks whether the browser is of a cellphone and loads the page accordingly. So I installed the correct version and did what the README said to do... and doesn't work... What gives eh?!


in ../mobile/customscripts/lib/setup.php either

  • add the proper regex for you emulator or
  • temporary force the regex

for the temporary option

change the line

if ($CFG->mfm_agent=mfm_agent()){


if (1||$CFG->mfm_agent=mfm_agent()){