{"id":763,"date":"2006-01-03T07:46:46","date_gmt":"2006-01-03T07:46:46","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-useronline\/"},"modified":"2025-01-11T03:55:07","modified_gmt":"2025-01-11T03:55:07","slug":"wp-useronline","status":"publish","type":"plugin","link":"https:\/\/ibo.wordpress.org\/plugins\/wp-useronline\/","author":259,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.88.9","stable_tag":"2.88.9","tested":"6.7.5","requires":"4.6","requires_php":"","requires_plugins":null,"header_name":"WP-UserOnline","header_author":"Lester 'GaMerZ' Chan","header_description":"","assets_banners_color":"e9eaec","last_updated":"2025-01-11 03:55:07","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/lesterchan.net\/site\/donation\/","header_plugin_uri":"https:\/\/lesterchan.net\/portfolio\/programming\/php\/","header_author_uri":"https:\/\/lesterchan.net","rating":4.6,"author_block_rating":0,"active_installs":10000,"downloads":959569,"num_ratings":38,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":{"1.00":{"tag":"1.00","author":"GamerZ","date":"2007-03-17 07:34:52"},"1.50":{"tag":"1.50","author":"GamerZ","date":"2009-06-08 10:47:21"},"2.00":{"tag":"2.00","author":"GamerZ","date":"2007-03-17 07:34:52"},"2.01":{"tag":"2.01","author":"GamerZ","date":"2007-03-17 07:34:52"},"2.02":{"tag":"2.02","author":"GamerZ","date":"2007-03-17 07:34:52"},"2.03":{"tag":"2.03","author":"GamerZ","date":"2007-03-17 07:34:52"},"2.04":{"tag":"2.04","author":"GamerZ","date":"2007-03-17 07:34:52"},"2.05":{"tag":"2.05","author":"GamerZ","date":"2007-03-17 07:34:52"},"2.06":{"tag":"2.06","author":"GamerZ","date":"2007-03-17 07:34:52"},"2.10":{"tag":"2.10","author":"GamerZ","date":"2007-04-08 03:30:26"},"2.11":{"tag":"2.11","author":"GamerZ","date":"2007-06-02 10:44:04"},"2.20":{"tag":"2.20","author":"GamerZ","date":"2007-09-30 08:18:27"},"2.31":{"tag":"2.31","author":"GamerZ","date":"2008-07-15 19:40:13"},"2.40":{"tag":"2.40","author":"GamerZ","date":"2009-02-07 13:57:57"},"2.50":{"tag":"2.50","author":"GamerZ","date":"2009-10-07 19:17:09"},"2.62":{"tag":"2.62","author":"scribu","date":"2010-03-08 15:15:00"},"2.70":{"tag":"2.70","author":"GamerZ","date":"2014-04-17 16:29:32"},"2.72":{"tag":"2.72","author":"scribu","date":"2010-05-09 17:44:30"},"2.73":{"tag":"2.73","author":"scribu","date":"2010-08-30 19:20:52"},"2.80":{"tag":"2.80","author":"scribu","date":"2011-09-06 15:27:12"},"2.81":{"tag":"2.81","author":"scribu","date":"2011-12-04 15:41:16"},"2.82":{"tag":"2.82","author":"scribu","date":"2012-10-30 22:08:47"},"2.83":{"tag":"2.83","author":"GamerZ","date":"2014-04-17 01:18:28"},"2.84":{"tag":"2.84","author":"GamerZ","date":"2014-09-05 14:18:20"},"2.85":{"tag":"2.85","author":"GamerZ","date":"2015-04-21 10:22:41"},"2.86":{"tag":"2.86","author":"GamerZ","date":"2015-11-23 02:41:58"},"2.87":{"tag":"2.87","author":"GamerZ","date":"2016-04-14 05:26:19"},"2.87.1":{"tag":"2.87.1","author":"GamerZ","date":"2017-03-31 03:42:30"},"2.87.2":{"tag":"2.87.2","author":"GamerZ","date":"2018-12-19 06:19:25"},"2.87.3":{"tag":"2.87.3","author":"GamerZ","date":"2019-10-23 03:28:04"},"2.87.4":{"tag":"2.87.4","author":"GamerZ","date":"2020-05-20 01:54:02"},"2.87.5":{"tag":"2.87.5","author":"GamerZ","date":"2020-05-23 04:08:35"},"2.87.6":{"tag":"2.87.6","author":"GamerZ","date":"2022-02-05 06:23:39"},"2.88.0":{"tag":"2.88.0","author":"GamerZ","date":"2022-07-19 07:32:20"},"2.88.1":{"tag":"2.88.1","author":"GamerZ","date":"2023-08-09 03:06:48"},"2.88.2":{"tag":"2.88.2","author":"GamerZ","date":"2023-10-13 10:20:32"},"2.88.3":{"tag":"2.88.3","author":"GamerZ","date":"2023-11-21 14:44:05"},"2.88.4":{"tag":"2.88.4","author":"GamerZ","date":"2024-11-16 01:34:51"},"2.88.5":{"tag":"2.88.5","author":"GamerZ","date":"2024-11-24 14:10:19"},"2.88.6":{"tag":"2.88.6","author":"GamerZ","date":"2024-12-16 03:19:42"},"2.88.7":{"tag":"2.88.7","author":"GamerZ","date":"2024-12-19 01:07:47"},"2.88.8":{"tag":"2.88.8","author":"GamerZ","date":"2024-12-21 03:35:49"},"2.88.9":{"tag":"2.88.9","author":"GamerZ","date":"2025-01-11 03:55:07"}},"upgrade_notice":[],"ratings":{"1":2,"2":0,"3":1,"4":6,"5":29},"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":978026,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":1206770,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":1206770,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.00","1.50","2.00","2.01","2.02","2.03","2.04","2.05","2.06","2.10","2.11","2.20","2.31","2.40","2.50","2.62","2.70","2.72","2.73","2.80","2.81","2.82","2.83","2.84","2.85","2.86","2.87","2.87.1","2.87.2","2.87.3","2.87.4","2.87.5","2.87.6","2.88.0","2.88.1","2.88.2","2.88.3","2.88.4","2.88.5","2.88.6","2.88.7","2.88.8","2.88.9"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1206770,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":1206770,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":1206770,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Admin - Dashboard's Right Now","2":"UserOnline Page","3":"Admin - Settings Page"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4187,63822,42965,162,71595],"plugin_category":[43,59],"plugin_contributors":[77620],"plugin_business_model":[],"class_list":["post-763","plugin","type-plugin","status-publish","hentry","plugin_tags-online","plugin_tags-useronline","plugin_tags-usersonline","plugin_tags-widget","plugin_tags-wp-useronline","plugin_category-customization","plugin_category-utilities-and-tools","plugin_contributors-gamerz","plugin_committers-brianlayman","plugin_committers-gamerz","plugin_committers-scribu"],"banners":{"banner":"https:\/\/ps.w.org\/wp-useronline\/assets\/banner-772x250.jpg?rev=1206770","banner_2x":"https:\/\/ps.w.org\/wp-useronline\/assets\/banner-1544x500.jpg?rev=1206770","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/wp-useronline\/assets\/icon.svg?rev=978026","icon":"https:\/\/ps.w.org\/wp-useronline\/assets\/icon.svg?rev=978026","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-useronline\/assets\/screenshot-1.png?rev=1206770","caption":"Admin - Dashboard's Right Now"},{"src":"https:\/\/ps.w.org\/wp-useronline\/assets\/screenshot-2.png?rev=1206770","caption":"UserOnline Page"},{"src":"https:\/\/ps.w.org\/wp-useronline\/assets\/screenshot-3.png?rev=1206770","caption":"Admin - Settings Page"}],"raw_content":"<!--section=description-->\n<p>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).<\/p>\n\n<h3>Usage (With Widget)<\/h3>\n\n<ol>\n<li>Go to <code>WP-Admin -&gt; Appearance -&gt; Widgets<\/code><\/li>\n<li>The widget name is <strong>UserOnline<\/strong>.<\/li>\n<li>Scroll down for instructions on how to create a <em>UserOnline Page<\/em>.<\/li>\n<\/ol>\n\n<h3>Usage (Without Widget)<\/h3>\n\n<ul>\n<li>Open <code>wp-content\/themes\/&lt;YOUR THEME NAME&gt;\/sidebar.php<\/code> and add Anywhere:<\/li>\n<\/ul>\n\n<pre><code>&lt;?php if (function_exists('users_online')): ?&gt;\n    &lt;p&gt;Users online: &lt;div id=\"useronline-count\"&gt;&lt;?php users_online(); ?&gt;&lt;\/div&gt;&lt;\/p&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<h3>Development<\/h3>\n\n<p><a href=\"https:\/\/github.com\/lesterchan\/wp-useronline\" title=\"https:\/\/github.com\/lesterchan\/wp-useronline\">https:\/\/github.com\/lesterchan\/wp-useronline<\/a><\/p>\n\n<h3>Credits<\/h3>\n\n<ul>\n<li>Plugin icon by <a href=\"http:\/\/www.freepik.com\">Freepik<\/a> from <a href=\"http:\/\/www.flaticon.com\">Flaticon<\/a><\/li>\n<\/ul>\n\n<h3>Donations<\/h3>\n\n<p>I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='creating%20a%20useronline%20page'><h3>Creating A UserOnline Page<\/h3><\/dt>\n<dd><ol>\n<li>Go to <code>WP-Admin -&gt; Pages -&gt; Add New<\/code><\/li>\n<li>Type any title you like in the post's title area<\/li>\n<li>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.<\/li>\n<li>Click 'Edit' and type in <code>useronline<\/code> in the text field and click 'Save'.<\/li>\n<li>Type <code>[page_useronline]<\/code> in the post's content area<\/li>\n<li>Click 'Publish'<\/li>\n<\/ol>\n\n<p>If you ARE NOT using nice permalinks, you need to go to <code>WP-Admin -&gt; Settings -&gt; UserOnline<\/code> and under 'UserOnline URL', you need to fill in the URL to the UserOnline Page you created above.<\/p><\/dd>\n<dt id='to%20display%20most%20number%20of%20users%20online'><h3>To Display Most Number Of Users Online<\/h3><\/dt>\n<dd><ul>\n<li>Use:<\/li>\n<\/ul>\n\n<pre><code>&lt;?php if (function_exists('get_most_users_online')): ?&gt;\n   &lt;p&gt;Most Users Ever Online Is &lt;?php echo get_most_users_online(); ?&gt; On &lt;?php echo get_most_users_online_date(); ?&gt;&lt;\/p&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre><\/dd>\n<dt id='to%20display%20users%20browsing%20site'><h3>To Display Users Browsing Site<\/h3><\/dt>\n<dd><ul>\n<li>Use:<\/li>\n<\/ul>\n\n<pre><code>&lt;?php if (function_exists('get_users_browsing_site')): ?&gt;\n   &lt;div id=\"useronline-browsing-site\"&gt;&lt;?php echo get_users_browsing_site(); ?&gt;&lt;\/div&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre><\/dd>\n<dt id='to%20display%20users%20browsing%20a%20page'><h3>To Display Users Browsing A Page<\/h3><\/dt>\n<dd><ul>\n<li>Use:<\/li>\n<\/ul>\n\n<pre><code>&lt;?php if (function_exists('get_users_browsing_page')): ?&gt;\n   &lt;div id=\"useronline-browsing-page\"&gt;&lt;?php echo get_users_browsing_page(); ?&gt;&lt;\/div&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre><\/dd>\n<dt id='error%20on%20activation%3A%20%22parse%20error%3A%20syntax%20error%2C%20unexpected...%22'><h3>Error on activation: \"Parse error: syntax error, unexpected...\"<\/h3><\/dt>\n<dd><p>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 <code>&lt;?php<\/code> tag):<\/p>\n\n<pre><code>var_dump(PHP_VERSION);\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h3>2.88.9<\/h3>\n\n<ul>\n<li>FIXED: Check scbWidget exists first before loading scbWidget. Props @whiteshadow.<\/li>\n<\/ul>\n\n<h3>2.88.8<\/h3>\n\n<ul>\n<li>FIXED: Remove widget code from useronline_init<\/li>\n<\/ul>\n\n<h3>2.88.7<\/h3>\n\n<ul>\n<li>FIXED: WP SCB Framework use init hook<\/li>\n<li>FIXED: Widget now loads seperately in it is own hook<\/li>\n<\/ul>\n\n<h3>2.88.6<\/h3>\n\n<ul>\n<li>FIXED: Revert WP SCB Framework to use plugins_loaded hook<\/li>\n<\/ul>\n\n<h3>2.88.5<\/h3>\n\n<ul>\n<li>FIXED: Update WP SCB Framework to fix load_textdomain_just_in_time warning<\/li>\n<li>FIXED: Remove load_plugin_textdomain since it is no longer needed since WP 4.6<\/li>\n<\/ul>\n\n<h3>2.88.4<\/h3>\n\n<ul>\n<li>FIXED: Add load_plugin_textdomain during init<\/li>\n<li>NEW: Update bots<\/li>\n<\/ul>\n\n<h3>2.88.3<\/h3>\n\n<ul>\n<li>FIXED: Strip all tags before inserting data into the DB.<\/li>\n<\/ul>\n\n<h3>2.88.2<\/h3>\n\n<ul>\n<li>FIXED: Fixed XS. Props Alex.<\/li>\n<\/ul>\n\n<h3>2.88.1<\/h3>\n\n<ul>\n<li>FIXED: Fixed XSS. Props Juampa Rodriguez.<\/li>\n<\/ul>\n\n<h3>2.88.0<\/h3>\n\n<ul>\n<li>NEW: Bump to WordPress 6.0.<\/li>\n<li>FIXED: Fixed XSS. Props @steffinstanly.<\/li>\n<\/ul>\n\n<h3>2.85.6<\/h3>\n\n<ul>\n<li>NEW: Bump to WordPress 5.6<\/li>\n<li>NEW: Added more bots<\/li>\n<li>NEW: Remove hardcoded Archive text in page title<\/li>\n<li>FIXED: Update SCB Framework to support PHP 8<\/li>\n<\/ul>\n\n<h3>2.85.5<\/h3>\n\n<ul>\n<li>NEW: Bump to WordPress 5.4<\/li>\n<li>NEW: Added more bots<\/li>\n<\/ul>\n\n<h3>2.87.4<\/h3>\n\n<ul>\n<li>NEW: Bump to WordPress 5.3<\/li>\n<li>NEW: Added more bots<\/li>\n<li>FIXED: Update SCB Framework To Remove contextual_help<\/li>\n<\/ul>\n\n<h3>2.87.3<\/h3>\n\n<ul>\n<li>FIXED: Duplicated Settings Saved admin_notices<\/li>\n<li>FIXED: Missing arrow<\/li>\n<li>FIXED: Updated bots list<\/li>\n<\/ul>\n\n<h3>2.87.2<\/h3>\n\n<ul>\n<li>NEW: Bump to 4.9<\/li>\n<li>FIXED: Notices in SCB Framework<\/li>\n<\/ul>\n\n<h3>2.87.1<\/h3>\n\n<ul>\n<li>NEW: Bump to 4.7<\/li>\n<li>NEW: New useronline_custom_template filter<\/li>\n<\/ul>\n\n<h3>2.87<\/h3>\n\n<ul>\n<li>NEW: Remove po\/mo files from the plugin<\/li>\n<li>NEW: Use translate.wordpress.org to translate the plugin<\/li>\n<li>FIXED: Update SCB Framework<\/li>\n<li>FIXED: Incompatible scbAdminPage::validate()<\/li>\n<\/ul>\n\n<h3>2.86<\/h3>\n\n<ul>\n<li>FIXED: Notices in Widget Constructor for WordPress 4.3<\/li>\n<\/ul>\n\n<h3>2.85<\/h3>\n\n<ul>\n<li>NEW: Uses WordPress native uninstall.php<\/li>\n<\/ul>\n\n<h3>2.84<\/h3>\n\n<ul>\n<li>NEW: Bump to 4.0<\/li>\n<\/ul>\n\n<h3>2.83<\/h3>\n\n<ul>\n<li>Show user agent when hovering over IP, instead of address lookup<\/li>\n<li>Use local time for UserOnline Page<\/li>\n<li>Fixed 'Strict Standards: Non-static method' warnings<\/li>\n<li>Update scb Framework<\/li>\n<\/ul>\n\n<h3>2.82<\/h3>\n\n<ul>\n<li>show most recent visitors first<\/li>\n<li>fix duplicate entry errors<\/li>\n<li>fix ajax requests for SSL<\/li>\n<\/ul>\n\n<h3>2.81<\/h3>\n\n<ul>\n<li>fixed settings page<\/li>\n<li>fixed \"Return to default\" buttons<\/li>\n<li>show user list in admin only to users with 'manage_options' capability<\/li>\n<li>added 'useronline_bots' filter<\/li>\n<\/ul>\n\n<h3>2.80<\/h3>\n\n<ul>\n<li>don't show url and referral links for users in the admin area<\/li>\n<li>smarter detection via ajax requests<\/li>\n<li>fix SQL errors<\/li>\n<\/ul>\n\n<h3>2.72<\/h3>\n\n<ul>\n<li>fix fatal error on upgrade<\/li>\n<\/ul>\n\n<h3>2.71<\/h3>\n\n<ul>\n<li>fix %USERONLINE_COUNT% problem<\/li>\n<\/ul>\n\n<h3>2.70<\/h3>\n\n<ul>\n<li>added option to link user names to their author page<\/li>\n<li>allow displaying online users from a different page than the current page<\/li>\n<li>bundle language files<\/li>\n<li><a href=\"http:\/\/scribu.net\/wordpress\/wp-useronline\/wu-2-70.html\">more info<\/a><\/li>\n<\/ul>\n\n<h3>2.62 (2010-03-07)<\/h3>\n\n<ul>\n<li>fix integration with WP-Stats<\/li>\n<li>fix error with get_admin_page_title()<\/li>\n<\/ul>","raw_excerpt":"Enable you to display how many users are online on your Wordpress blog with detailed statistics.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=763"}],"author":[{"embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/gamerz"}],"wp:attachment":[{"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=763"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=763"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=763"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=763"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=763"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}