Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 6th May 2010, 08:06 AM   #1
HyperActive Warrior
War Room Member
 
CarloD.'s Avatar
 
Join Date: 2009
Location: Thunder Bay ON
Posts: 403
Thanks: 14
Thanked 47 Times in 40 Posts
Default
Detecting Mobile Browsers, What do you do?
Share on: 
fb share twitter share gplus share more share

Hey Everyone,

Just looking up some info on checking for Mobile Browsers to load a Mobile version of a site.

I know you can do it with user_agent, but is there alternatives?

thoughts?

Thanks,

CarloD. is offline  
Unread 6th May 2010, 12:57 PM   #2
HyperActive Warrior
War Room Member
 
Join Date: 2010
Posts: 153
Thanks: 9
Thanked 17 Times in 17 Posts
Default
Re: Detecting Mobile Browsers, What do you do?
Share on: 
fb share twitter share gplus share more share

You can also control the site's appearance via stylesheet.

Example would be using a separate stylesheet for iphones.

Hello
ninal is offline  
Unread 6th May 2010, 01:39 PM   #3
HyperActive Warrior
War Room Member
 
CarloD.'s Avatar
 
Join Date: 2009
Location: Thunder Bay ON
Posts: 403
Thanks: 14
Thanked 47 Times in 40 Posts
Default
Re: Detecting Mobile Browsers, What do you do?
Share on: 
fb share twitter share gplus share more share

Yes,

The question is:

How can I detect if they are on a mobile browser or not....

If they are THEN load mobile.css...

I am also looking for detection of all mobile browsers not just the browser on an iPhone.

CarloD. is offline  
Unread 6th May 2010, 01:58 PM   #4
HyperActive Warrior
War Room Member
 
Join Date: 2010
Posts: 153
Thanks: 9
Thanked 17 Times in 17 Posts
Default
Re: Detecting Mobile Browsers, What do you do?
Share on: 
fb share twitter share gplus share more share

There are various scripts that can do this for you, I haven't tried them out though.

Here's a free version and a paid version (free for non-commercial sites).

Hello
ninal is offline  
Unread 6th May 2010, 03:12 PM   #5
Graphic Artist & Designer
War Room Member
 
Steve Wells's Avatar
 
Join Date: 2009
Location: Kansas City, MO
Posts: 2,063
Thanks: 123
Thanked 447 Times in 249 Posts
Blog Entries: 3
Default
Re: Detecting Mobile Browsers, What do you do?
Share on: 
fb share twitter share gplus share more share

Originally Posted by CarloD. View Post

Yes,

The question is:

How can I detect if they are on a mobile browser or not....

If they are THEN load mobile.css...

I am also looking for detection of all mobile browsers not just the browser on an iPhone.
Sent you a P.M.

Need Custom Graphics Work? - Message Me For A Design Quote!
Steve Wells is offline  
Unread 6th May 2010, 10:34 PM   #6
WebNinja
 
jminkler's Avatar
 
Join Date: 2010
Location: Atlanta GA
Posts: 444
Thanks: 19
Thanked 54 Times in 34 Posts
Default
Re: Detecting Mobile Browsers, What do you do?
Share on: 
fb share twitter share gplus share more share

wordpress has plugins for this .. otherwise use the user_agent string from the request.
jminkler is offline  
Unread 7th May 2010, 10:28 PM   #7
Advanced Warrior
War Room Member
 
ijohnson's Avatar
 
Join Date: 2009
Posts: 499
Thanks: 344
Thanked 150 Times in 126 Posts
Default
Re: Detecting Mobile Browsers, What do you do?
Share on: 
fb share twitter share gplus share more share

Unfortunately, MobiSiteGalore is no longer free. They now have a 15-day trial period and 3 different service packs to choose from that range from $8, $12 and $17 per month.

WordPress offers a free WP Mobile plugin that gives you more customizable features.

Make every day count!
ijohnson is offline  
Unread 7th May 2010, 10:37 PM   #8
Magento Certified
War Room Member
 
ryanstreet's Avatar
 
Join Date: 2007
Location: Dayton, OH, USA
Posts: 291
Thanks: 38
Thanked 209 Times in 23 Posts
Default
Re: Detecting Mobile Browsers, What do you do?
Share on: 
fb share twitter share gplus share more share

wptouch works for a wordpress site.

Other sites, you can use CSS conditional styling:

Mobile Browser
HTML Code:
<link media="only screen and (max-device-width: 480px)" href="small-device.css" type= "text/css" rel="stylesheet">
Standard Browser
HTML Code:
<link media="screen and (min-device-width: 481px)" href="not-small-device.css" type="text/css" rel="stylesheet">

The full Safari Tutorial is here for you to digest if interested:

Safari Web Content Guide: Optimizing Web Content

Here is the Wp Touch site. Free To download:

WPtouch: Mobile Plugin + Theme for WordPress ยป BraveNewCode Inc.

Hope this helps.

Later.

Ryan Street
PHP Developer Specializing in WordPress and Magento
ryanstreet is offline  
Closed Thread


Bookmarks

Tags
browsers, detecting, mobile


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 09:45 AM.