Talk: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:
- adds check for cellphone browser and JAPANESE carrier and loads page accordingly
- 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()){