Page 1 of 1
Newbie - how do I detect opera mini?
Posted: Fri Feb 15, 2013 6:45 am
by lefthandev
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
Re: Newbie - how do I detect opera mini?
Posted: Fri Feb 15, 2013 9:39 am
by sm_support2
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
Re: Newbie - how do I detect opera mini?
Posted: Fri Feb 15, 2013 9:55 am
by lefthandev
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}}
Re: Newbie - how do I detect opera mini?
Posted: Fri Feb 15, 2013 10:06 am
by sm_support2
exactly. Thanks