Oct 3 2008

Get BE.Net to recognise the iPhone

Category: .Net | Applications — Rory Primrose @ 09:29

Here is an easy one. Update the web.config to include iphone in the regular expression used by BlogEngine.Net to determine whether the browser is a mobile device.

<!-- The regex used to identify mobile devices so a different theme can be shown -->
<add key="BlogEngine.MobileDevices" value="(iphone|nokia|sonyericsson|blackberry|samsung|sec\-|windows ce|motorola|mot\-|up.b|midp\-)"/>

Tags:

Comments (2) -

1.
Bryan Avery Bryan Avery United Kingdom says:

I'm also working on an iPhone Theme, as you can't use an iPhone on the web with the BE without a cool looking theme just for the iPhone

2.
Rory Primrose Rory Primrose Australia says:

Looks like the iPod user agent includes the string "iPod" so this could be added as well.

See groups.google.com/.../cd7163a1aad3b9a5

Pingbacks and trackbacks (1)+

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading