Discourse 在线用户

:discourse2: 摘要
:hammer_and_wrench: 仓库链接
:open_book: 安装指南

功能

:information_source: 在安装此插件前请慎重考虑。Discourse 专为异步讨论设计,在线用户列表可能对某些社区造成不利影响

:information_source: 本插件专为拥有 <100 个并发登录用户的社区设计。在更大的网站上安装是可行的,但可能会对整个论坛的性能产生负面影响。

该插件还可以选择性地显示用户的在线状态,方式包括头像周围的“光环”、“发光”效果,或在左上角显示“徽章”图标。

该插件使用 MessageBus 保持数据实时更新,因此用户状态会即时反映。启用了“隐藏个人资料和在线状态”设置的用户将不会显示。您可以通过可用的站点设置和语言字符串自定义多项内容:

配置

这些设置位于管理设置面板的“插件”部分。

  • whos_online_active_timeago:用户被视为在线的“最后活跃时间”上限(分钟)
  • whos_online_collapse_threshold:头像开始重叠的用户数量阈值(参见上方 GIF)。设置为极高值可禁用此功能
  • whos_online_maximum_display:要显示的最大头像数量。数字计数器仍会显示更高的数值。目前选择显示哪些用户的方式尚不一致
  • whos_online_minimum_display:要显示的最小头像数量。低于此值时,将显示“无用户在线”消息
  • whos_online_hide_below_minimum_display:如果启用,当用户数量少于 minimum_display 时,小部件将完全隐藏
  • whos_online_display_public:是否向未登录用户显示该插件?默认为 true
  • whos_online_display_min_trust_level:该插件显示的最低信任等级。默认为 0
  • whos_online_avatar_indicator:选择如何在用户头像上显示在线状态。默认为“光环”
  • whos_online_avatar_indicator_topic_lists:在移动设备的主题列表和“分类与最新”视图中显示头像指示器。默认为关闭
  • whos_online_count_only:启用后,仅显示数量,不会透露在线用户身份

:speech_balloon: 前端语言字符串

这些字符串位于管理面板的 自定义文本内容 下(搜索 whos_online)。包括:

  • js.whos_online.no_users | “当前无用户在线”:当用户数量少于 whos_online_minimum_display 设置时显示的消息。
  • js.whos_online.title | “在线 ({{count}})”:头像列表前显示的文本。{{count}} 为在线用户数量。
  • js.whos_online.tooltip | “过去 5 分钟内活跃的用户”:鼠标悬停在文本上时显示的提示文字。
151 个赞
[Paid] "What's Going On?" plugin. [COMPLETE]
How do I bring back my community that was very active 10 years ago?
Quick Messages Plugin
Babble Chat
Do you display the list of live forum users on your counterpart website?
Split profile hiding and presence
Who's online "action"
Contributor Interviews – David Taylor
Advice for getting my little game dev community "out there?"
Need cool plugin feedback suggestions?
No online status in Topic List
Community Network Visualisation
Change Online (x) text to pulsing green dot
MKJ's Opinionated Discourse Deployment Configuration
Can I activate my plugin only for those registered on the site?
Who's online crazy load
How does group messaging work in Discourse?
Group PM “pick up where you left off”
What happens next?
How to show a user’s online status?
How minimal is your forum?
Who's Online doesn't work for me
TavoWEB theme for Discourse
Correct way to build components
[Paid] "What's Going On?" plugin. [COMPLETE]
Topic Author
How serious is "site is under extreme load, search is disabled, try again later"
User reporting unable to hide presence
List of all the pages that users are in
My discourse speed is very slow
Any way to show live stats to users?
Original Poster Avatars not working well with Who's Online
Where are topics related to WordPress integrations where Discourse is a paid subscription?
User card huge avatar outline appears on plugins and components
How does the online presence work?
Why is the green tick a red exclamation?
Must have plugins and components for Discourse?
Bundling more popular plugins with Discourse core
Loading slider issues
Homepage plugin for displaying recent topics, latest members, popular threads, and similar elements
Possible to show number of visitors in real time?
Failed to construct 'Notification': Illegal constructor
Why you should use Discourse internally for your company/team instead of Slack (4 years use case)
Babble Chat
Forum with user diary/blog/profile
Category Banners