For help with installing plugins please refer to our Plugin installation guide.
Once installed navigate to Plugins in the network admin dashboard and Network Activate the plugin.
- That’s it! No configuration necessary!
This plugin can be used two ways:
- By monitoring user activity inside Network Admin > Settings > User Activity
- To place the number of active users anywhere on your main site or another site.
Monitoring User Activity in Network Admin
1. Go to Settings > User Activity in your Network Admin dashboard
2. Check number of users in last:
- 5 minutes
See at a glance who’s been active in your network.
Using To Display Number of Active Users
The plugin also has 2 functions you can use to display user activity anywhere on your main site, or any other site in your network.
user_activity_output(PERIOD_IN_MINUTES, TOTAL_TO_DISPLAY, 'TEXT_BEFORE_ALL', 'TEXT_BEFORE_EACH', 'TEXT_AFTER_ALL', 'TEXT_AFTER_EACH', AVATARS 'yes' OR 'no', AVATAR_SIZE)
Below are some examples of how you might use them. Just pop either of these examples in a template of your theme, and adjust to suit your needs. Don’t forget to ensure they are wrapped in php tags. We’ve used images here instead of code to prevent it from executing on this site, so you’ll need to actually type this stuff in :)
The 1st example will display the number of users online in the last 24 hours.
The 2nd will output a nice list of network users online right now.
Notice in the second example how you can also wrap the parameters in HTML tags so you can style ‘em in your theme’s style-sheet. The output might look something like this with a bit of basic CSS applied: