PageRenderTime 46ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/plugins/wp-useronline/readme.txt

https://bitbucket.org/Thane2376/death-edge.ru
Plain Text | 248 lines | 202 code | 46 blank | 0 comment | 0 complexity | 8403d0acfef875c02c5c50c414b89cb7 MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0, LGPL-3.0, AGPL-1.0
  1. === WP-UserOnline ===
  2. Contributors: GamerZ, scribu
  3. Tags: useronline, usersonline, wp-useronline, online, users, user, ajax, widget
  4. Requires at least: 3.1
  5. Tested up to: 4.0
  6. Stable tag: 2.84
  7. License: GPLv2 or later
  8. License URI: http://www.gnu.org/licenses/gpl-2.0.html
  9. Enable you to display how many users are online on your Wordpress blog with detailed statistics.
  10. == Description ==
  11. This plugin enables you to display how many users are online on your Wordpress site, with detailed statistics of where they are and who they are (Members/Guests/Search Bots).
  12. = Build Status =
  13. [![Build Status](https://travis-ci.org/lesterchan/wp-useronline.svg?branch=master)](https://travis-ci.org/lesterchan/wp-useronline)
  14. = Development =
  15. [https://github.com/lesterchan/wp-useronline](https://github.com/lesterchan/wp-useronline "https://github.com/lesterchan/wp-useronline")
  16. = Credits =
  17. * Plugin icon by [Freepik](http://www.freepik.com) from [Flaticon](http://www.flaticon.com)
  18. == Installation ==
  19. You can either install it automatically from the WordPress admin, or do it manually:
  20. 1. Unzip the archive and put the `wp-useronline` folder into your plugins folder (/wp-content/plugins/).
  21. 1. Activate the plugin from the Plugins menu.
  22. = General Usage (With Widget) =
  23. 1. Go to `WP-Admin -> Appearance -> Widgets`
  24. 1. The widget name is <strong>UserOnline</strong>.
  25. 1. Scroll down for instructions on how to create a *UserOnline Page*.
  26. = General Usage (Without Widget) =
  27. * Open `wp-content/themes/<YOUR THEME NAME>/sidebar.php` and add Anywhere:
  28. `
  29. <?php if (function_exists('users_online')): ?>
  30. <p>Users online: <div id="useronline-count"><?php users_online(); ?></div></p>
  31. <?php endif; ?>
  32. `
  33. = Creating A UserOnline Page =
  34. 1. Go to `WP-Admin -> Pages -> Add New`
  35. 1. Type any title you like in the post's title area
  36. 1. If you ARE using nice permalinks, after typing the title, WordPress will generate the permalink to the page. You will see an 'Edit' link just beside the permalink.
  37. 1. Click 'Edit' and type in `useronline` in the text field and click 'Save'.
  38. 1. Type `[page_useronline]` in the post's content area
  39. 1. Click 'Publish'
  40. If you ARE NOT using nice permalinks, you need to go to `WP-Admin -> Settings -> UserOnline` and under 'UserOnline URL', you need to fill in the URL to the UserOnline Page you created above.
  41. == Screenshots ==
  42. 1. Right Now text
  43. 2. Admin page
  44. 3. Settings page
  45. == Frequently Asked Questions ==
  46. = To Display Most Number Of Users Online =
  47. * Use:
  48. `
  49. <?php if (function_exists('get_most_users_online')): ?>
  50. <p>Most Users Ever Online Is <?php echo get_most_users_online(); ?> On <?php echo get_most_users_online_date(); ?></p>
  51. <?php endif; ?>
  52. `
  53. = To Display Users Browsing Site =
  54. * Use:
  55. `
  56. <?php if (function_exists('get_users_browsing_site')): ?>
  57. <div id="useronline-browsing-site"><?php echo get_users_browsing_site(); ?></div>
  58. <?php endif; ?>
  59. `
  60. = To Display Users Browsing A Page =
  61. * Use:
  62. `
  63. <?php if (function_exists('get_users_browsing_page')): ?>
  64. <div id="useronline-browsing-page"><?php echo get_users_browsing_page(); ?></div>
  65. <?php endif; ?>
  66. `
  67. = Error on activation: "Parse error: syntax error, unexpected..." =
  68. Make sure your host is running PHP 5. The only foolproof way to do this is to add this line to wp-config.php (after the opening `<?php` tag):
  69. `var_dump(PHP_VERSION);`
  70. == Changelog ==
  71. = 2.84 =
  72. * NEW: Bump to 4.0
  73. = 2.83 =
  74. * Show user agent when hovering over IP, instead of address lookup
  75. * Use local time for UserOnline Page
  76. * Fixed 'Strict Standards: Non-static method' warnings
  77. * Update scb Framework
  78. = 2.82 =
  79. * show most recent visitors first
  80. * fix duplicate entry errors
  81. * fix ajax requests for SSL
  82. = 2.81 =
  83. * fixed settings page
  84. * fixed "Return to default" buttons
  85. * show user list in admin only to users with 'manage_options' capability
  86. * added 'useronline_bots' filter
  87. = 2.80 =
  88. * don't show url and referral links for users in the admin area
  89. * smarter detection via ajax requests
  90. * fix SQL errors
  91. = 2.72 =
  92. * fix fatal error on upgrade
  93. = 2.71 =
  94. * fix %USERONLINE_COUNT% problem
  95. = 2.70 =
  96. * added option to link user names to their author page
  97. * allow displaying online users from a different page than the current page
  98. * bundle language files
  99. * [more info](http://scribu.net/wordpress/wp-useronline/wu-2-70.html)
  100. = 2.62 (2010-03-07) =
  101. * fix integration with WP-Stats
  102. * fix error with get_admin_page_title()
  103. = 2.61 (2010-02-12) =
  104. * fix fatal error with scbWidget
  105. = 2.60 (2010-02-12) =
  106. * display admin page titles
  107. * use domaintools.com instead of arin.net
  108. * removed ip2nation code and flag images
  109. * simpler uninstallation procedure
  110. * much cleaner code
  111. * [more info](http://scribu.net/wordpress/wp-useronline/wu-2-60.html)
  112. = 2.50 (2009-06-01) =
  113. * new: Works For WordPress 2.8 Only
  114. * new: Javascript Now Placed At The Footer
  115. * new: Uses jQuery Instead Of tw-sack
  116. * new: Minified Javascript Instead Of Packed Javascript
  117. * new: Renamed useronline-js-packed.js To useronline-js.js
  118. * new: Renamed useronline-js.js To useronline-js.dev.js
  119. * new: Translate Javascript Variables Using wp_localize_script()
  120. * new: Use _n() Instead Of __ngettext() And _n_noop() Instead Of __ngettext_noop()
  121. * new: Uses New Widget Class From WordPress
  122. * new: Merge Widget Code To wp-useronline.php And Remove wp-useronline-widget.php
  123. * fixed: Uses $_SERVER['PHP_SELF'] With plugin_basename(__FILE__) Instead Of Just $_SERVER['REQUEST_URI']
  124. * fixed: Pages Without Name, Use Pages Use $_SERVER['REQUEST_URI'] Instead
  125. = 2.40 (2008-12-12) =
  126. * new: Works For WordPress 2.7 Only
  127. * new: Uses plugins_url() And site_url()
  128. * new: Cache IPs of ip2nation by Kambiz R. Khojasteh
  129. * new: Country Flags Images Are Now Included As Part Of The Plugin
  130. * new: Right To Left Language Support by Kambiz R. Khojasteh
  131. * new: Better Translation Using __ngetext() by Anna Ozeritskaya
  132. * new: Output Of useronline_page() Applied To "useronline_page" Filter by Kambiz R. Khojasteh
  133. * new: Called useronline_textdomain() In create_useronline_table() by Kambiz R. Khojasteh
  134. * fixed: SSL Support
  135. = 2.31 (2008-07-16) =
  136. * new: Works For WordPress 2.6
  137. * fixed: MYSQL Charset Issue Should Be Solved
  138. * fixed: Do Not Show WP-Stats Link If There Is No WP-Stats
  139. = 2.30 (2008-06-01) =
  140. * new: Works For WordPress 2.5 Only
  141. * new: Uses Shortcode API
  142. * new: Uses /wp-useronline/ Folder Instead Of /useronline/
  143. * new: Uses wp-useronline.php Instead Of useronline.php
  144. * new: Uses wp-useronline-widget.php Instead Of useronline-widget.php
  145. * new: Renamed useronline-js.php To useronline-js.js and Move The Dynamic Javascript Variables To The PHP Pages
  146. * new: Uses useronline-js-packed.js
  147. * new: Added Users Online To Dashboard "Right Now"
  148. * new: Use number_format_i18n() Instead
  149. * fixed: Should Use display_name Instead Of user_name If WP-Stats Is Not Installed
  150. * fixed: XSS Vulnerability
  151. = 2.20 (2007-10-01) =
  152. * new: Works For WordPress 2.3 Only
  153. * new: Templates Options Added
  154. * new: Ability To Uninstall WP-UserOnline
  155. * new: Uses WP-Stats Filter To Add Stats Into WP-Stats Page
  156. = 2.11 (2007-06-01) =
  157. * new: Referral Link Is Now Shown On The UserOnline Page
  158. * fixed: Uses WordPress's Default Date And Time Format
  159. * fixed: Able To Leave Blank For 'UserOnline URL' Option To Disable Link To UserOnline Page
  160. = 2.10 (2007-02-01) =
  161. * new: Works For WordPress 2.1 Only
  162. * new: Renamed useronline-js.js to useronline-js.php To Enable PHP Parsing
  163. = 2.06 (2007-01-02) =
  164. * new: useronline.php Now Handles The AJAX Processing Instead Of index.php
  165. * new: Localize WP-UserOnline
  166. * fixed: JavaScript onLoad Function Conflict By zeug
  167. * fixed: AJAX Not Working On Servers Running On PHP CGI
  168. * fixed: IP2Nation Will Now Work Whether Or Not WP-Stats Is Activated
  169. = 2.05 (2006-10-01) =
  170. * new: UserOnline Is Now Embedded Into A Page, And Hence No More Integrating Of UserOnline Page (Removed wp-useronline.php)
  171. * new: Changed In WP-UserOnline Structure: Members Mean Registered Users and Guests Mean Comment Authors
  172. * new: get_users_browsing_site(false) And get_users_browsing_page(false) Will Now Return An Array Containing Total Users, Total Members, Total Guests and Total Bots Online
  173. * new: Added Widget Title Option To WP-UserOnline Widget
  174. * fixed: Invalid IP Error
  175. * fixed: If Site URL Doesn't Match WP Option's Site URL, WP-UserOnline Will Not Work
  176. = 2.04 (2006-07-01) =
  177. * new: AJAX Is Now Used For Updating Users Online Every 1 Minute Without Refreshing The Page
  178. * new: You Can Now Place Users Online Count And Users Browsing Site Data On The Sidebar As A Widget
  179. * new: UserOnline Options Panel And The Code That WP-UserOnline Generated Is XHTML 1.0 Transitional
  180. * new: Added Useronline Options In WP Administration Panel Under 'Options -> Useronline'
  181. * new: If You Have ip2nation Plugin Installed, The User's/Guest's Country Flag Will Be Displayed
  182. = 2.03 (2006-04-01) =
  183. * new: Added get_users_browsing_site(); To Display Users Browsing The Site
  184. * fixed: wp-stats.php Link
  185. * fixed: Some Grammer Errors, Credit To xclouds (http://www.xclouds.com/)
  186. = 2.02 (2006-03-01) =
  187. * new: No More Install/Upgrade File, It Will Install/Upgrade When You Activate The Plugin.
  188. * fixed: IP 'Unknown' Error, Credit To Brian Layman (http://www.knitchat.com/)
  189. * fixed: ON DUPLICATE KEY Error, Credit To Brian Layman (http://www.knitchat.com/)
  190. * fixed: DUPLICATE KEY Error By Using DELETE First, Credit To Jody Cairns (http://steelwhitetable.org/blog/)
  191. = 2.01 (2006-02-01) =
  192. * new: Added Users Browsing Page
  193. * new: Added Most Users Ever Online
  194. * fixed: Added UNIQUE Key Instead Of Primary Key To Test Whether It Will Solve Duplicate Entry Errors
  195. * fixed: Quotes Issue In Page Title
  196. = 2.00 (2006-01-01) =
  197. * new: Compatible With Only WordPress 2.0
  198. * new: Better Installer
  199. * new: GPL License Added
  200. * new: Page Title Added To wp-useronline.php
  201. * new: Added Extra Bots, Credit To Greg Perry (http://www.gregrperry.com/)
  202. * fixed: Cleaner Codes