Online Users Widget

License Latest Stable Version Total Downloads donate

A Flarum extension. Forum Widget That Lists Online Users.

flarum lan_ (3)

Usage

Users need permission to search users and view last seen at to be able to view the widget.

Installation

This will also install Forum Widgets Core as it relies on it.

Install with composer:

composer require afrux/online-users-widget:"*"

Updating

composer update afrux/online-users-widget:"*" --with-dependencies
php flarum migrate
php flarum cache:clear

Links

    Can we make layout like suggested here:

    @"[deleted]"#p164662 Please can you make this type of layout not in sidebar on homepage

    You can also give alternative layout option like fof best answer

    It's really on standard Flarum status? Or is using advantages of websocket and is dynamic refreshing?

      Wadera It's really on standard Flarum status? Or is using advantages of websocket and is dynamic refreshing?

      Standard Flarum status, checks people last seen in the past 5 minutes.

      Wadera Can we make layout like suggested here:

      That looks nice, I'll keep that in mind (might wanna make it an issue in the repository though :p)

        SychO It would be cool that some widgets have two layouts and change depending on whether they are on top or on the side, in this example (Wadera ) for this case it would be very nice.

        By the way, is there any limit to the number of users that appear online in the widget?

          Darkle By the way, is there any limit to the number of users that appear online in the widget?

          You can set the "Max Users To Show" in the Admin area for this extension/widget's setting 🙂

          13 days later

          I've released a v0.1.2 release that limits the query results to the set maximum value, something I missed in the initial release, if you have a very active forum, it's important to update.

          composer update afrux/online-users-widget

          Reported by @matteocontrini.

            SychO Hello I have got some error when user in non session or logout or guest the error message show for permission not allow and some unknow error for non admin account this happened after updated the extension

            Guest

            Non admin

              Akito as admin what's in the console ? also did you make sure to clear the cache after the update ?

                SychO I am on the ipad I can’t open the console and I have clear cache already for update the extension

                I cleared cache. I have two forum and I get this error one of them. This error appears on guest mode. Disappear after log in.

                SychO Look like for the normal account the widget didn’t show

                  Would it be possible to add a number of online (but not logged in) users?

                  Or maybe it could be another widget displaying:

                  1200 users online: 300 users, 100 anonymous users, 800 guests

                    m4v3rick It is technically possible, but since flarum doesn't track guest activity by default, it would require more significant changes.

                      SychO

                      Only admin can see online users widget ... other forum users can't.

                      I only want to confirm that is there any permission?