User Live Status lets users set a status (Online, Busy, Away or Offline) and shows everyone else, live, who is around. When one user switches to Busy, the others see it within seconds, without reloading the page.

It is made for intranets, team sites, community sites and any site where people want to know who is available right now.

Features

  • Set your status from the toolbar, from the Who is online block, or on your account page.
  • See who is online:
    • a People list in the status menu of the toolbar;
    • a Who is online block for any region, which can also list offline users with when they were last seen;
    • optionally, a status dot next to user names across the site, such as content authors and comments.
  • Live updates: open pages check for changes every 30 seconds by default, and stop checking while in a background tab.
  • Real presence: a user's chosen status is only shown while that user is on the site.
    • Users who log out are shown as Offline right away.
    • Users who close the site without logging out are shown as Offline after a set time, 10 minutes by default.
    • Choosing Offline hides you while you browse.
  • Permissions to set one's own status and to see the status of others.
  • Secure: status changes are protected against cross-site requests, and only the four statuses can be set.

Requirements

  • Drupal 10.3 or later, or Drupal 11.
  • Presence works best with Drupal's default database sessions. With other session storage, the user's last access time is used.

Installation

Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

composer require drupal/user_live_status
drush pm:enable user_live_status

Logged-in users get the permissions to set their status and to see the status of others.

Configuration

  1. Permissions (People » Permissions):
    • Set own live status
    • View the status of other users: everyone with this permission sees the names of the users who are online.
    • Administer user live status
  2. Place the block Who is online (Structure » Block layout), especially for users who do not use the toolbar. In the block settings, choose how many users to show, whether to show offline users, and whether users can set their own status in the block.
  3. Settings at Configuration » People » User live status (/admin/config/people/user-live-status):
    • after how many minutes without activity users are shown as offline;
    • how often open pages refresh statuses;
    • whether to show a status dot next to user names.

Upgrading from 1.0

Run drush updatedb. The update gives logged-in users the new permissions and adds the settings. The statuses users already chose are kept.

Support

Report bugs and request features in the issue queue.

Supporting organizations: 

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: User engagement
  • Created by chaitanyadessai on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    Look for the shield icon below.

Releases