Assign Courses Exclusively for Mobile

Re: Assign Courses Exclusively for Mobile

by Jim Barker -
Number of replies: 2

Hello,

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.

In reply to Jim Barker

Re: Assign Courses Exclusively for Mobile

by Stuart Mealor -

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.

In reply to Stuart Mealor

Re: Assign Courses Exclusively for Mobile

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin 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.

Cheers,

Gareth

Average of ratings: Useful (1)