WordPress.org

Ready to get started?Download WordPress

Forums

PHP Browser Detection
php_browser_detection_browscap.ini file outdated... (3 posts)

  1. amereservant
    Member
    Posted 2 years ago #

    The browscap.ini file this plugin relies on is outdated as I write this (version 2.1) as it won't detect the latest version of Chrome in Linux Ubuntu 11.04.
    After downloading the most recent version from http://browsers.garykeith.com/downloads.asp, it detected it just fine.

    Since this plugin completely relies on the browscap.ini data to detect the browser, I recommend adding a WP_Cron task that compares the version currently being used with the latest version via their Version API, http://browsers.garykeith.com/faq.asp#FAQ_8, and then updates the local version if a newer version remotely exists.
    The update can either be automatic or just prompt the administrator.

    Here's how I've implemented the version check: http://pastebin.com/HudNEZTg.
    It simply checks for a newer version, but I haven't added any sort of update function.

    I hope that helps...

    http://wordpress.org/extend/plugins/php-browser-detection/

  2. Mindshare Studios, Inc.
    Member
    Plugin Author

    Posted 2 years ago #

    Hi amereservant, any interest in forking this project with me and creating a version that's updated regularly? I've also indicated that I'm happy to help maintain it if the author wants help... http://wordpress.org/support/topic/plugin-php-browser-detection-update-php_browscapini

  3. MartyThornley
    Member
    Plugin Author

    Posted 2 years ago #

    I just added mindshare as a committer. Would you like to be added too, amereservant? I had always wanted to add the auto-check via their API. Would be very cool to have that added in!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic