Re: Detecting Mobile browsers
James Turnbull <[email protected]> Wed, 08 Feb 2006 12:38:48 +1100
| Newsgroups | gmane.comp.horde.mimp |
|---|---|
| Message-ID | <[email protected]> |
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
--
mimp mailing list - Join the hunt: http://horde.org/bounties/#mimp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]