Hi all,
I have started using mobile theme with basic PHP detection at the moment, but have noticed that on an Android tablet it is still picking up the mobile theme - I'd actually prefer it to take the desktop version in this particular case. Which is the best detection method to use with mobile theme to do this? Is it possible?

I appreciate the world of Android devices is vast with hundreds of user agent strings, but I know the Mobile_Detect.php script has this distinction in. I'm just not sure where the PHP detection script is that Mobile Theme uses. :-/

Comments

Rhicreate’s picture

Title: Android Tablet theme switch? » Add support for Mobile Detect as method
Category: support » feature

I'm updating this from a support request as I have now spent a bit of time delving in to the world of Drupal 7 mobile switching, and actually Mobile Theme is already one of the lightest-weight and yet robust modules that I've tried on my website.

Now, I'm not much of a module developer, but I'm thinking that my perfect solution would be to be able to include Mobile_Detect.php (which already has a Drupal module here) as a detection option in Mobile Theme. Then to have a second option for setting a different tablet theme (if you want) or more likely un-setting the mobile theme on tablet devices...

I know that in the module desc, links to more "full featured" modules are offered, but it seems that in reality most of these have not been released for D7.