Moodle for mobile

Assign Courses Exclusively for Mobile

Picture of Jim Barker
Re: Assign Courses Exclusively for Mobile


Thanks for the reply.  I don't think so.  I was looking for a way for Moodle to recognize the user was accessing from mobile phone and then serve up only the version of the course flagged for mobile phone format.

Average of ratings: -
Me at the Moodle Moot NZ11
Re: Assign Courses Exclusively for Mobile

In Moodle 2.x you can set 4 different Themes - from memory they are Standard, Legacy (for old browsers), Tablet, and Mobile.

So if you enable the Mobile Theme for mobile devices Moodle will detected this (based on the mobile browser info) and serve the course in the mobile friendly Theme format smile

If you course is designed carefully it will work OK on a mobile device as well as PC browser.

Average of ratings: -
Gareth J Barnard
Re: Assign Courses Exclusively for Mobile
Core developersParticularly helpful MoodlersPlugin developers

Dear Jim,

There is mobile detection code in 'moodlelib.php' so would be possible to change the code in some uniquie way.  But to be honest the best thing is to work out what is wrong with the mobile theme such that it does not display the course properly as it does on a desktop so that you are not managing two versions of the same course for what is essentially a display issue.



Average of ratings: Useful (1)