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.

Talk:Moodle for Mobiles

From MoodleDocs
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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


Problem

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?!

Solution

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()){

to

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