Newbie - how do I detect opera mini?

Questions about the WURFL Cloud service.
lefthandev
Posts: 2
Joined: Fri Feb 15, 2013 6:42 am

Newbie - how do I detect opera mini?

Postby lefthandev » Fri Feb 15, 2013 6:45 am

Hi

I'd like to be able to detect if a user is viewing a page via the Opera Mini browser.

Is there a code example that I can use, or a capabilities config I can use to help me achieve this?

Best
P

sm_support2
Posts: 294
Joined: Mon Jun 20, 2011 5:04 pm

Re: Newbie - how do I detect opera mini?

Postby sm_support2 » Fri Feb 15, 2013 9:39 am

This will be possible through the Cloud only with a major update to the API happening a few months down the road.

For the time being you can easily work around this by checking for the presence of "Opera Mini" in the UA string.

Not very elegant, but certainly effective.

Thanks

lefthandev
Posts: 2
Joined: Fri Feb 15, 2013 6:42 am

Re: Newbie - how do I detect opera mini?

Postby lefthandev » Fri Feb 15, 2013 9:55 am

sm_support2 wrote:This will be possible through the Cloud only with a major update to the API happening a few months down the road.

For the time being you can easily work around this by checking for the presence of "Opera Mini" in the UA string.

Not very elegant, but certainly effective.

Thanks
Thanks

I guess something like this

$ua = $_SERVER['HTTP_USER-AGENT'];

if (eregi('opera mini', $ua)){ do this}}

sm_support2
Posts: 294
Joined: Mon Jun 20, 2011 5:04 pm

Re: Newbie - how do I detect opera mini?

Postby sm_support2 » Fri Feb 15, 2013 10:06 am

exactly. Thanks


Who is online

Users browsing this forum: No registered users and 62 guests