/onlineCounter

This WordPress plugin displays the number of users currently online on your website.

Primary LanguagePHP

onlineCounter

This WordPress plugin displays the number of users currently online on your website.

Online Users Counter WordPress Plugin

This WordPress plugin displays the number of users currently online on your website.

Description

The Online Users Counter plugin allows you to easily track and display the number of users currently active on your WordPress website. It uses session-based tracking to determine which users are currently online and updates the count dynamically without requiring a page refresh.

Features

  • Display the number of users currently online in real-time.
  • Session-based tracking to accurately determine user activity.
  • Customizable CSS styles for the display.
  • User configuration page in the WordPress dashboard for adjusting session time and custom CSS.

Installation

  1. Download the plugin ZIP file.
  2. Upload the ZIP file via the WordPress admin dashboard (Plugins -> Add New -> Upload Plugin).
  3. Activate the plugin.
  4. Use the [display_online_users_count] shortcode in your posts, pages, or widgets to display the online users count.

Configuration

To configure the plugin, navigate to the "Online Users Counter" settings page in the WordPress admin dashboard. From there, you can adjust the session time for tracking user activity and input custom CSS rules for styling the display.

Requirements

  • WordPress 4.7 or higher

Frequently Asked Questions

How does the plugin track online users?

The plugin uses session-based tracking to determine which users are currently online. It sets a transient with the user's ID and last activity timestamp, and updates it periodically as users interact with the website.

Can I customize the display of the online users count?

Yes, you can customize the display using custom CSS rules. Navigate to the "Settings" then "Online Users Counter" settings page in the WordPress admin dashboard to input your custom CSS.

Support

For support or inquiries, please contact Raphael (raphaelosanmi@gmail.com).

License

This plugin is licensed under the GNU GPLv3 License.