承接 fof/online-users-widget 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fof/online-users-widget

Composer 安装命令:

composer require fof/online-users-widget

包简介

Forum Widget That Lists Online Users

README 文档

README

License Latest Stable Version Total Downloads

A Flarum extension. Forum Widget That Lists Online Users.

flarum lan_ (3)

Note

This package was previously maintained as afrux/online-users-widget by @SychO9. It has been transferred to FriendsOfFlarum and is now published as fof/online-users-widget. The composer.json replace field ensures existing installs upgrade transparently — no manual removal needed.

Installation

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

Install with composer:

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

Migrating from afrux/online-users-widget

If you currently have afrux/online-users-widget installed, run:

composer require fof/online-users-widget:"*"
composer remove afrux/online-users-widget
php flarum cache:clear

Updating

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

flarum/realtime integration

If flarum/realtime is installed, the widget automatically switches to live updates via the presence-online WebSocket presence channel. No configuration is required.

When realtime is active:

  • The widget updates instantly when users connect or disconnect, rather than reflecting a cached snapshot from page load.
  • All logged-in users are tracked via the presence channel, so the list stays accurate as people arrive and leave.
  • Users without the viewOnlineUsersWidget permission still join the presence channel (so they are visible to others) but the widget is not activated for them.

When realtime is not installed the widget falls back to the standard behaviour: the online users list is populated from the forum API payload on page load, cached server-side according to the configured TTL.

Note

The presence channel tracks active WebSocket connections, not last_seen_at. A user appears in the widget as soon as their browser connects and disappears as soon as their last tab closes, regardless of the configured "last seen interval" setting. The last seen interval setting only affects the fallback (non-realtime) behaviour.

A user with multiple tabs or browsers open counts as a single online user. They appear in the widget on their first connection and are removed only when all their connections close.

Links

统计信息

  • 总下载量: 1.02k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: TypeScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固