Title: Quick Browscap
Author: Marko-M
Published: <strong>18 Tháng 7, 2012</strong>
Last modified: 29 Tháng 8, 2012

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

![](https://s.w.org/plugins/geopattern-icon/quick-browscap.svg)

# Quick Browscap

 Bởi [Marko-M](https://profiles.wordpress.org/marko-m/)

[Tải về](https://downloads.wordpress.org/plugin/quick-browscap.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/quick-browscap/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/quick-browscap/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/quick-browscap/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/quick-browscap/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/quick-browscap/)

## Mô tả

Quick Browscap allows you to quickly get detailed browser capabilities from user
agent string using database provided by [Browser Capabilities Project](http://browsers.garykeith.com/).
It also supports updating browser capabilities database using single click without
updating Quick Browscap as well as updating this database automatically. This plugin
doesn’t have end user functionality because it’s meant to be used by other WordPress
plugins.

#### Quick Browscap feature highlights

 * When compared to native PHP [get_browser()](http://php.net/manual/en/function.get-browser.php)
   function, Quick Browscap can be easily used on shared hosting environments.
 * Browser capabilities database can be updated using single click without updating
   Quick Browscap plugin.
 * Browser capabilities database can be auto updated weekly without updating Quick
   Browscap plugin.
 * After database update PHP cache file is created to avoid parsing database on 
   every access.

#### Other WordPress plugins supporting Quick Browscap

 * Who is online plugin [Quick Count](http://www.techytalk.info/wordpress-plugins/quick-count/)
 * Voting polls plugin [Quick Poll](http://www.techytalk.info/wordpress-plugins/quick-poll/)

For more information please visit Quick Browscap [official page](http://www.techytalk.info/wordpress-plugins/quick-browscap/)
page at [TechyTalk.info](http://www.techytalk.info/).

## Ảnh màn hình

 * [[
 * Quick Browscap inside voting polls plugin [Quick Poll](http://www.techytalk.info/wordpress-plugins/quick-poll/)

## Cài đặt

Quick Browscap can be installed using integrated WordPress plugin installer or manually.

#### Integrated WordPress plugin installer method:

 1. Go to Plugins > Add New.
 2. Under Search, type in “Quick Browscap”.
 3. Click Install Now to install the WordPress Plugin.
 4. A popup window will ask you to confirm your wish to install the Plugin.
 5. If this is the first time you’ve installed a WordPress Plugin, enter the FTP login
    credential information. If you’ve installed a Plugin before, it will still have
    the login information.
 6. Click Proceed to continue with the installation. The resulting installation screen
    will list the installation as successful or note any problems during the install.
 7. If successful, click Activate Plugin to activate it, or Return to Plugin Installer
    for further actions.
 8. Have fun using geolocation trough your own plugin.

#### Manual method:

 1. Upload “quick-browscap” folder from quick-count.zip file downloaded from [Quick Browscap WordPress plugin directory page](https://wordpress.org/extend/plugins/quick-browscap/)
    to the “/wp-content/plugins/” directory.
 2. Activate “Quick Browscap” plugin through the “Plugins” menu in WordPress.

## Hỏi đáp

  1. How can I get detailed browser capabilities from user agent string from my 
own PHP code?

Here’s typical example:

    ```
    global $quick_browscap;
    if(isset($quick_browscap) && is_object($quick_browscap)){
        $agent = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_2; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.18';

        /*
        * First argument is user agent (string, optional, default is $_SERVER['HTTP_USER_AGENT']).
        * Second argument is return array or not (bool, optional, default is false to return object).
        * Example to return capabilities for given agent string $agent as PHP array.
        */
        $bw_info = $quick_browscap->get_browser($agent, true);

        /* Output $bw_info array */
        echo '<pre>'.print_r($bw_info, true).echo '</pre>';
    }
    ```

This is output of the preceeding code:

    ```
    Array
    (
        [browser_name] => Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_2; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.18
        [browser_name_regex] => ^mozilla/5\.0 \(macintosh; .; .*mac os x.*\) applewebkit/.* \(.*\) version/3\.1.* safari/.*$
        [browser_name_pattern] => Mozilla/5.0 (Macintosh; ?; *Mac OS X*) AppleWebKit/* (*) Version/3.1* Safari/*
        [Parent] => Safari 3.1
        [Platform] => MacOSX
        [Browser] => Safari
        [Version] => 3.1
        [MajorVer] => 3
        [MinorVer] => 1
        [Frames] => 1
        [IFrames] => 1
        [Tables] => 1
        [Cookies] => 1
        [BackgroundSounds] => 1
        [JavaApplets] => 1
        [JavaScript] => 1
        [CSS] => 2
        [CssVersion] => 2
        [supportsCSS] => 1
        [Alpha] =>
        [Beta] =>
        [Win16] =>
        [Win32] =>
        [Win64] =>
        [AuthenticodeUpdate] =>
        [CDF] =>
        [VBScript] =>
        [ActiveXControls] =>
        [Stripper] =>
        [isBanned] =>
        [WAP] =>
        [isMobileDevice] =>
        [isSyndicationReader] =>
        [Crawler] =>
        [AOL] =>
        [aolVersion] => 0
        [netCLR] =>
        [ClrVersion] => 0
    )
    ```

  2. How can end user update browser capabilities database?

If users hosting environment supports fetching remote content user can go to Admin-
> Settings -> Quick Browscap and click “Update” button. User will be informed if
update was successful or not. Quick Browscap works out the box because it bundles
latest browser capabilities database at the time of release.

  3. Is it possible for end user to update browser capabilities database automatically?

Yes. Default behavior is to update browser capabilities database automatically every
seven days (weekly). Auto update can be toggled using Admin -> Settings -> Quick
Browscap -> Enable automatic weekly database update check checkbox.

  4. How to debug Quick Browscap browser capabilities database update functionality?

Define `WP_DEBUG` constant in your wp-config.php or turn on the debug mode from 
Admin -> Settings -> Quick Browscap -> Debug mode.

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“Quick Browscap” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ Marko-M ](https://profiles.wordpress.org/marko-m/)

[Dịch “Quick Browscap” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/quick-browscap)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/quick-browscap/), check 
out [SVN repository](https://plugins.svn.wordpress.org/quick-browscap/), hoặc theo
dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/quick-browscap/)
qua [RSS](https://plugins.trac.wordpress.org/log/quick-browscap/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.03 (29.08.2012.)

 * Fix database parse errors when using PHP versions older than 5.3.0
 * Database updated to 5014 version released 28.08.2012.

#### 1.02 (23.07.2012.)

 * Code refactoring and minor cleanup
 * Method $quick_browscap->getBrowser() renamed to $quick_browscap->get_browser()
 * Database updated to 5007 version released 20.07.2012.

#### 1.01 (19.07.2012.)

 * Minor database auto update code change

#### 1.00 (19.07.2012.)

 * Initial release
 * Database updated to 5006 version released 18.07.2012.

## Meta

 *  Phiên bản **1.03**
 *  Cập nhật lần cuối **14 năm trước**
 *  Số lượt cài đặt **30+**
 *  Phiên bản WordPress ** 3.0 hoặc cao hơn **
 *  Đã kiểm tra lên đến **3.4.2**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/quick-browscap/)
 * Thẻ
 * [user agent](https://vi.wordpress.org/plugins/tags/user-agent/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/quick-browscap/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

[Your review](https://wordpress.org/support/plugin/quick-browscap/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/quick-browscap/reviews/)

## Những người đóng góp

 *   [ Marko-M ](https://profiles.wordpress.org/marko-m/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/quick-browscap/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CZQW2VZNHMGGN)