Welcome Guest, Not a member yet? Register   Sign In
is_mobile()
#1

[eluser]Unknown[/eluser]
The site I am working on will need to support mobile devices. Blackberry devices to be specific. I want to redirect my mobile users to a different template, but that isn't the problem.

The problem is the BlackBerry Browser Identification. When using is_mobile() and the browser Identification is set to "BlackBerry" it works as expected. But if I change it to Internet Explorer it does not identify the browser as a mobile device.

Does anyone have a work around for this? I know a user is going to change this setting and the mobile site is not going to function as expected.

I have also been messed around with the following:

agent->browser() returns "Internet Explorer"
agent->platform() returns go figure on this one "Windows XP"
agent->string() returns "Mozilla/4.0(compatible; MSIE 7.0; Windows NT 5.1; .net CLR 2.0.50727)"

any insight would be most helpful!


Messages In This Thread
is_mobile() - by El Forum - 06-16-2011, 02:59 PM
is_mobile() - by El Forum - 07-19-2011, 03:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB