Here is an 0.9.5-compatible version of a component I whipped up tonight for a site with a Flash splash page that I only wanted to show once, and only to users with browsers supporting both JavaScript and cookies. This BrowsercapSplash plugin uses a slightly modified version of a component called Browsercap (see
http://garetjax.info/projects/browscap/), a PHP interface to the Browser Capabilities Project (see
http://browsers.garykeith.com/index.asp), and can probably used for any number of useful browser type and capabilities detection. I only slightly modified the PHP 4 release (0.4) of Browscap PHP, so it can be used in MODx regardless of PHP version.
Some pointers...
[*] Extract the zip to your /assets/plugins/ directory
[*] Copy the contents of the plugin.snippet.php file to a new plugin in the manager (minus the opening <?php tag)
[*] Make the /assets/plugins/browscap/cache/ directory writable; this is important so you don’t continually hit Gary Keith’s update server constant.
[*] Additional notes and hints in the plugin.snippet.php comments.
[*] There is a non-commercial attribution share-alike license on the browscap.ini database itself, so make sure you review the terms and conditions before utilizing the Browscap class to access this data. (but you can contact him directly for permission to use it commercially or if you plan to be hitting his server for updates frequently for some reason)
Let me know if you have any questions or problems using this.
Cheers...