Linux 软件免费装

WP-UserAgent

开发者 kyleabaker
更新时间 2020年10月17日 06:50
PHP版本: 2.0 及以上
WordPress版本: 5.5.1

标签

web apple mac windows browser web browser phone user agent os useragent user-agent linux win platform operating system

下载

详情介绍:

WP-UserAgent is a simple plugin that allows you to display details about a computer's operating system or web browser that your visitors comment from. It uses the comment->agent property to access the User-Agent string. Through a series of regular expressions, this plugin is able to detect the operating system and browser which can be integrated in comments or placed in custom places through your template(s). I’m adding new web browsers and operating systems frequently, as well as updating and optimizing the source code. Your feedback is very important, new features have been added by request, so if there’s something you would like to see in WP-UserAgent, leave a comment, and I’ll see what I can do. WP-UserAgent was written with Geany - http://www.geany.org/ Images created with The Gimp - http://www.gimp.org/

安装:

  1. Upload the "wp-useragent" folder to /wp-contents/plugins/
  2. Login to your WordPress Admin menu, go to Plugins, and activate it.
  3. In your WordPress Admin menu, you will find a new menu under Settings called WP-UserAgent. There you can choose the displayed icons size, and select where to display the plugin. There are three options for displaying the plugin:
  4. Before the comment text. User's WebBrowser and OS will be displayed before comment text.
  5. After the comment text.User's WebBrowser and OS will be displayed after comment text.
  6. Custom (Advanced). You can specify the location using the wpua_custom_output() function inside the comments loop in your template (Generally in comments.php).
Example: <?php foreach ($comments as $comment) : ?> <?php comment_author_link() ?> <?php wpua_custom_output(); ?> says: <?php comment_text() ?> CAUTION: If you select "Custom" and don't use <?php wpua_custom_output(); ?> in your template, you won't get the information displayed. Other options include the text to use when displaying the user's web browser and operating system as well as whether or not to show the full User-Agent string.

屏幕截图:

  • Example of web browser and operating system detection displayed by WP-UserAgent
  • Screenshot of the plugin's Settings page

升级注意事项:

v1.1.8
  • Fixed WP Hook bug introduced by upgrade to WP 5.5+

更新日志:

v1.1.8 v1.1.7 v1.1.6 v1.1.5 v1.1.4 v1.1.3 v1.1.2 v1.1.1 v1.1.0 v1.0.12 v1.0.11 v1.0.10 v1.0.9 v1.0.8 v1.0.7 v1.0.6 v1.0.5 v1.0.4 v1.0.3 v1.0.2 v1.0.1 v1.0.0 v0.10.15 v0.10.14 v0.10.13 v0.10.12 v0.10.11 v0.10.10 v0.10.9 v0.10.8 v0.10.7 v0.10.6 v0.10.5 v0.10.4 v0.10.3 v0.10.2 v0.10.1 v0.10.0 v0.9.11 v0.9.10 v0.9.9 v0.9.8 v0.9.7 v0.9.6 v0.9.5 v0.9.4 v0.9.3 v0.9.2 v0.9.1 v0.9 v0.8.9 v0.8.8 v0.8.7 v0.8.6 v0.8.5 v0.8.4 v0.8.3 v0.8.2 v0.8.1 v0.8 v0.7 v0.6.2 v0.6.1 v0.6 0.5.3.4 0.5.3.3 0.5.3.2 0.5.2 0.5.1 0.5 0.4.2 0.4.1 0.4 0.3.1 0.3 0.2 0.1 TO-DO: