Changeset 3356333
- Timestamp:
- 09/04/2025 08:58:03 PM (6 months ago)
- Location:
- fullworks-active-users-monitor
- Files:
-
- 4 added
- 5 edited
- 1 copied
-
assets/blueprints/blueprint.json (modified) (1 diff)
-
assets/screenshot-1.png (added)
-
assets/screenshot-2.png (added)
-
assets/screenshot-3.png (added)
-
assets/screenshot-4.png (added)
-
tags/1.0.1 (copied) (copied from fullworks-active-users-monitor/trunk)
-
tags/1.0.1/fullworks-active-users-monitor.php (modified) (2 diffs)
-
tags/1.0.1/readme.txt (modified) (2 diffs)
-
trunk/fullworks-active-users-monitor.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fullworks-active-users-monitor/assets/blueprints/blueprint.json
r3356322 r3356333 1 1 { 2 "$schema": "https://playground.wordpress.net/blueprint-schema.json", 3 "landingPage": "/wp-admin/users.php", 4 "preferredVersions": { 5 "php": "8.0", 6 "wp": "latest" 7 }, 8 "phpExtensionBundles": [ 9 "kitchen-sink" 10 ], 11 "features": { 12 "networking": true 13 }, 14 "steps": [ 15 { 16 "step": "installPlugin", 17 "pluginZipFile": { 18 "resource": "wordpress.org/plugins", 19 "slug": "fullworks-active-users-monitor" 20 } 2 "landingPage": "/wp-admin/users.php", 3 "preferredVersions": { 4 "php": "7.4", 5 "wp": "5.9" 21 6 }, 22 { 23 "step": "activatePlugin", 24 "plugin": "fullworks-active-users-monitor" 25 }, 26 { 27 "step": "login", 28 "username": "admin", 29 "password": "password" 30 }, 31 { 32 "step": "setSiteOptions", 33 "options": { 34 "blogname": "Active Users Monitor Demo", 35 "blogdescription": "Testing the Fullworks Active Users Monitor plugin" 36 } 37 }, 38 { 39 "step": "runPHP", 40 "code": "<?php\n// Create some test users with different roles\n$test_users = [\n ['user_login' => 'editor_user', 'user_pass' => 'password', 'user_email' => 'editor@example.com', 'role' => 'editor', 'display_name' => 'Editor User'],\n ['user_login' => 'author_user', 'user_pass' => 'password', 'user_email' => 'author@example.com', 'role' => 'author', 'display_name' => 'Author User'],\n ['user_login' => 'subscriber_user', 'user_pass' => 'password', 'user_email' => 'subscriber@example.com', 'role' => 'subscriber', 'display_name' => 'Subscriber User']\n];\n\nforeach ($test_users as $user_data) {\n if (!username_exists($user_data['user_login'])) {\n $user_id = wp_create_user($user_data['user_login'], $user_data['user_pass'], $user_data['user_email']);\n if (!is_wp_error($user_id)) {\n $user = new WP_User($user_id);\n $user->set_role($user_data['role']);\n wp_update_user(['ID' => $user_id, 'display_name' => $user_data['display_name']]);\n }\n }\n}" 41 }, 42 { 43 "step": "writeFile", 44 "path": "/wordpress/wp-content/mu-plugins/playground-demo.php", 45 "data": "<?php\n/**\n * Playground Demo Helper for Active Users Monitor\n */\n\n// Add a notice to explain the demo\nadd_action('admin_notices', function() {\n if (get_current_screen()->id === 'users') {\n echo '<div class=\"notice notice-info\"><p><strong>Welcome to the Active Users Monitor Demo!</strong><br>';\n echo 'This is a demo environment with test users. The online status indicators show who is currently logged in.<br>';\n echo 'Try opening different browser tabs/windows and logging in as different users to see the real-time tracking!</p></div>';\n }\n});\n\n// Simulate some online activity for demo purposes\nadd_action('init', function() {\n // This would normally happen automatically when users log in\n // For demo, we'll just ensure the admin user appears as online\n if (is_user_logged_in() && current_user_can('manage_options')) {\n // The plugin will track this automatically\n }\n});" 46 } 47 ] 7 "phpExtensionBundles": [ 8 "kitchen-sink" 9 ], 10 "steps": [ 11 { 12 "step": "login", 13 "username": "admin", 14 "password": "password" 15 } 16 ] 48 17 } -
fullworks-active-users-monitor/tags/1.0.1/fullworks-active-users-monitor.php
r3356322 r3356333 4 4 * Plugin URI: https://fullworks.net/products/active-users-monitor/ 5 5 * Description: Provides real-time visibility of logged-in users for administrators with visual indicators and filtering capabilities. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Requires at least: 5.9 8 8 * Requires PHP: 7.4 … … 25 25 26 26 // Define plugin constants with unique prefix (minimum 4 characters). 27 define( 'FWAUM_VERSION', '1.0. 0' );27 define( 'FWAUM_VERSION', '1.0.1' ); 28 28 define( 'FWAUM_PLUGIN_FILE', __FILE__ ); 29 29 define( 'FWAUM_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); -
fullworks-active-users-monitor/tags/1.0.1/readme.txt
r3356322 r3356333 1 1 === Fullworks Active Users Monitor === 2 Contributors: alanef,fullworks3 Donate link: https:// fullworks.net/2 Contributors: fullworks 3 Donate link: https://ko-fi.com/wpalan 4 4 Tags: users, monitoring, active users, online users, admin tools 5 5 Requires at least: 5.9 6 6 Tested up to: 6.8 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 131 131 132 132 == Changelog == 133 134 = 1.0.1 = 135 * Fixed contributor name and donation link 136 * Added WordPress Playground blueprint for easy preview 137 * Added plugin assets to readme 138 * Minor documentation improvements 133 139 134 140 = 1.0.0 = -
fullworks-active-users-monitor/trunk/fullworks-active-users-monitor.php
r3356322 r3356333 4 4 * Plugin URI: https://fullworks.net/products/active-users-monitor/ 5 5 * Description: Provides real-time visibility of logged-in users for administrators with visual indicators and filtering capabilities. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Requires at least: 5.9 8 8 * Requires PHP: 7.4 … … 25 25 26 26 // Define plugin constants with unique prefix (minimum 4 characters). 27 define( 'FWAUM_VERSION', '1.0. 0' );27 define( 'FWAUM_VERSION', '1.0.1' ); 28 28 define( 'FWAUM_PLUGIN_FILE', __FILE__ ); 29 29 define( 'FWAUM_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); -
fullworks-active-users-monitor/trunk/readme.txt
r3356322 r3356333 1 1 === Fullworks Active Users Monitor === 2 Contributors: alanef,fullworks3 Donate link: https:// fullworks.net/2 Contributors: fullworks 3 Donate link: https://ko-fi.com/wpalan 4 4 Tags: users, monitoring, active users, online users, admin tools 5 5 Requires at least: 5.9 6 6 Tested up to: 6.8 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 131 131 132 132 == Changelog == 133 134 = 1.0.1 = 135 * Fixed contributor name and donation link 136 * Added WordPress Playground blueprint for easy preview 137 * Added plugin assets to readme 138 * Minor documentation improvements 133 139 134 140 = 1.0.0 =
Note: See TracChangeset
for help on using the changeset viewer.