Talk:Simple mobile skin auto change

Thanks for the info! Can you please explain how to add options for android, blackberry, windows mobile, etc.? I'm a noob and don't know how to add more than the one you have shown. Thanks!

Hello! I'm a bit of a noooooob myself and i'm not sure if this is completely the best way to go about it.... but it works for me! just add a pipe between each device so the line of code looks like the one below! try it, Hope it works

if (preg_match("/iphone|Android|Blackberry/i", $_SERVER['HTTP_USER_AGENT']))

193.108.247.114 11:42, 27 October 2010 (UTC)

Any idea's how we can add the option to choose a default skin for different mediums when logged in? I was thinking adding the option to the user preferences. 81.108.90.11 11:21, 25 February 2011 (UTC)


 * Is it possible to use this code for sites with cache? When I use it with memcached the sites are sometimes with the skin wptouch and other with vector. For all users (normal users and mobile users)... --84.112.40.63 12:48, 8 March 2011 (UTC)
 * I was having this problem too. I think it is best to disable file cache when serving two skins like this Brted 02:06, 6 February 2012 (UTC)

Automatic Redirect to some external site when run in a mobile browser
I have a website, when it is opened in a desktop browser, It opens normally, but when it is opened in a mobile browser like of iphone or operamini, it automatically redirects to en.m.wikipedia.org. I need urgent help.