How can I let my website auto change when user login as mobi

Discussion on adblockplus.org website and translations

How can I let my website auto change when user login as mobi

Postby conan1409 » Fri May 17, 2013 7:09 pm

I have a website ! and then , I design 1 theme for mobile, but I still don't know how can my website auto change when user login with mobile (iOS or Android)
Someone can tell me how, because I need it !
Thanks a lot

Vicky
conan1409
 
Posts: 1
Joined: Fri May 17, 2013 7:07 pm

Re: How can I let my website auto change when user login as mobi

Postby mapx » Fri May 17, 2013 7:29 pm

You'll have 2 sites one normal / another mobile.

You can use javascript to get the browser's user agent in order to detect if the user is using a mobile device and redirect to user to the version you want.

see for example
http://davidwalsh.name/detect-iphone
http://azharkamar.com/5610/mobile-redirect-javascript/
User avatar
mapx
 
Posts: 21947
Joined: Thu Jan 06, 2011 3:01 pm


Return to Website and translations

Who is online

Users browsing this forum: No registered users and 16 guests