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
Newbie - how do I detect opera mini?
-
- Posts: 294
- Joined: Mon Jun 20, 2011 5:04 pm
Re: Newbie - how do I detect opera mini?
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
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
-
- Posts: 2
- Joined: Fri Feb 15, 2013 6:42 am
Re: Newbie - how do I detect opera mini?
Thankssm_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
I guess something like this
$ua = $_SERVER['HTTP_USER-AGENT'];
if (eregi('opera mini', $ua)){ do this}}
-
- Posts: 294
- Joined: Mon Jun 20, 2011 5:04 pm
Re: Newbie - how do I detect opera mini?
exactly. Thanks
Who is online
Users browsing this forum: No registered users and 7 guests