CodeIgniter Forums

Full Version: Windows Phone 7 user agent strings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Dracos[/eluser]
I'm implementing the design our designer made, and mixed in with the conditional comments is a specific reference to IE mobile. I enabled the user_agent library and updated its config from the latest trunk, but there's still no reference anywhere in it to WP7.

I found at reasonably complete list of UA strings at http://www.elucidsoft.com/blog/2010/11/1...er-agents/ but I'm not sure how to slice them up into the correct name/value pairs in the config. Is there a reference for how to do this?

El Forum

[eluser]CroNiX[/eluser]
I think you would just add

Code:
'Windows Phone OS 7.0' => 'Windows Mobile 7'
or maybe (for all versions?)
Code:
'Windows Phone' => 'Windows Mobile'
to the $mobile array located in /application/config/user_agents.php