Please test the new version released today.
Thanks for the feedback sir. Unfortunately it is still not working. Something must be wrong on Opera’s end that makes it difficult to detect
Ok… I will test this further and follow up if we can figure anything out.
Wow! Thanks. I’d really appreciate that sir. Thanks again
Plugin could not be activated cause it triggered an error sir
Parse error: syntax error, unexpected T_STRING in /home3/xxxxxxx/public_html/wp-content/plugins/php-browser-detection/php-browser-detection.php on line 46
Looks like your PHP version is out-of-date. Can you check to make sure you are running PHP 5.3 or above?
(The new version of the plugin uses PHP namespaces.)
Ok sir. I’ve done that and the plugin has been activated but it’s still not detecting Opera sir. π
So this might be a bug in the browscap.INI database. If you go to this page: http://browscap.org/ua-lookup
You can see all of the data available to the plugin. It looks like Opera Mobile uses Chrome’s useragent string, so that’s why is_opera() is failing. You could report this bug to the browscap maintainers here: https://github.com/browscap/browscap
I’m going to mark this resolved because the bug does not appear to be in this plugin but the browser database itself.
Thanks a lot sir. You’ve been very helpful. I’ll do just that sir. Do have a great day π
Quick question sir, what of Opera Mini? It doesn’t have Chrome in its user agent string. Will you be adding it to your list of functions in the future?
I just updated the Beta version to fix this for Opera Mini.
Thanks. Please what function code do I use? <?php if (is_opera()) : ?>
or <?php if (is_operamini()) : ?>
There is no function called is_operamini()
I know that sir. So I guess the opera function will work for the mini version as well. Let me install and try it. Be right back sir