[mimp] Detecting Mobile browsers

James Turnbull james at lovedthanlost.net
Tue Feb 7 17:38:48 PST 2006


Jan Schneider wrote:

> Jan Schneider wrote:
>> framework/Browser/Browser.php, or lib/Horde/Browser.php, depending on
>> how you installed Horde.
>>
> Thanks Jan.  I found that and this line:
> 
> if (preg_match('/; (120x160|240x240|240x280|240x320|320x320)\)/',
> $this->_agent))
> 
> I added the 240x240 in myself but the user agent is still not matched.
> The user agent is:
> 
> Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; PPC; 240x240; HP iPAQ
> hw6500)"
> 

Sorry Jan I thought I had replied all to the group also.  I edited the 
line above to add the 240x240 screen size in but Horde still thinks the 
device is a normal browser.

The user agent is:

Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; PPC; 240x240; HP iPAQ
 > hw6500)

Any ideas?

Thanks

James Turnbull



More information about the mimp mailing list