0 Members and 3 Guests are viewing this topic.
*Sigh*can we keep this on topic? The topic is about what the big thing might be, NOT SEX
Could omnimaga detect if you are on an iPod, and switch to wap2 if so?
Quote from: _player1537 on January 08, 2011, 04:42:52 pmCould omnimaga detect if you are on an iPod, and switch to wap2 if so?I think that is dependent on the iPod's software.
It could probably be done via the user agent string.
Mozilla/5.0 (iPod; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7
Well, here is what an ipod user agent kinda looks like. It's faked, because it's safari making browsers think it's an iphone, but it still shows what to look for:Code: [Select]Mozilla/5.0 (iPod; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7
I'm sure it would be possible to setup SMF to detect iPods, but I don't know how and it might prevent future SMF upgrades, not to mention some people might prefer using the default forum view on their ipods.