WPG Detect Browser

外掛說明

This plugin do wonderful thing. For a developer like me its big problem to make website perfect for all browsers and for that I need to detect browser and write specific CSS for that.

This plugin will give you 3 things

[1] Browser Version

[2] Browser Name

[3] Operating System of user!

For example you will see following 3 classes in you body class.

“chrome 37 windows” this way you can use all these 3 classes together or separate!

Please let me know if you find any bug. Help me make this plugin better!

安裝方式

Installation is easy…

  1. Upload wpg-detect-browser to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. You are done! Check page source and you will find 3 new classes added to body 🙂

常見問題集

Is this compitible with older version?

I have tested it with WordPress 3.8 only. You can check it with older version, It should work for sure. If its not working please post in support forums, I will try to resolve it.

Can I suggest you new feature?

Yeah, I am looking to add more features in this plugin. I will add restrict content by logged in users.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈WPG Detect Browser〉的開發相關工作。

參與者

將〈WPG Detect Browser〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

2.1

  • Updated tested up to WordPress 7.0

2.0

  • Code cleanup and bug fixes
  • Fixed PHP notices when User-Agent header is missing
  • Fixed undefined variable notice for Netscape / unknown browsers
  • Fixed potential undefined index warning on empty User-Agent
  • Removed duplicate getBrowser() call for better performance
  • Added ABSPATH protection for direct file access
  • Improved PHP 8+ compatibility

1.0

  • Initial release