Discourse 谁在线

||||
-|-|
:discourse2: | 摘要 | Discourse Who’s Online 显示当前在网站上活跃的用户列表
:hammer_and_wrench: | 仓库链接 | https://github.com/discourse/discourse-whos-online
:open_book: | 安装指南 | 如何在 Discourse 中安装插件

功能

:information_source: 在安装此插件之前请仔细考虑。Discourse 的设计初衷是用于异步讨论,而在线用户列表可能对某些社区有害。

:information_source: 此插件适用于并发登录用户数 <100 的社区。在更大的网站上安装是可能的,但可能会对整个论坛的性能产生负面影响。

它还可以选择性地显示用户头像上的在线状态。可以选择使用 “ring”(圆环)、“glow”(发光)或在左上角显示 “flair”(徽章)图标。

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

配置

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

  • 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:选择如何在用户头像上显示在线状态。默认为 “ring”
  • whos_online_avatar_indicator_topic_lists:在 mobile 主题列表和“Categories & Latest”视图中显示头像指示器。默认为关闭。
  • whos_online_count_only:启用时,仅显示计数。不会透露在线用户的身份

:speech_balloon: 前端语言字符串

这些可在管理员面板下的 Customize—>Text Content(搜索 whos_online)中找到。包括:

  • js.whos_online.no_users | “No users currently online”: 当用户数量 < whos online minimum display 设置时显示的消息。
  • js.whos_online.title | “Online ({{count}})”: 在头像列表之前显示的文本。{{count}} 是在线用户的数量。
  • js.whos_online.tooltip | “Users seen in the last 5 minutes”: 鼠标悬停在文本上时显示的文本。
152 个赞
[Paid] "What's Going On?" plugin. [COMPLETE]
How do I bring back my community that was very active 10 years ago?
Quick Messages Plugin
Do you display the list of live forum users on your counterpart website?
Who's online "action"
Split profile hiding and presence
Can I activate my plugin only for those registered on the site?
No online status in Topic List
Change Online (x) text to pulsing green dot
MKJ's Opinionated Discourse Deployment Configuration
Need cool plugin feedback suggestions?
Who's online crazy load
Advice for getting my little game dev community "out there?"
Contributor Interviews – David Taylor
Community Network Visualisation
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
Topic Author
How does group messaging work in Discourse?
Group PM “pick up where you left off”
What happens next?
Failed to construct 'Notification': Illegal constructor
How minimal is your forum?
How to show a user’s online status?
TavoWEB theme for Discourse
Correct way to build components
[Paid] "What's Going On?" plugin. [COMPLETE]
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?
Babble Chat
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?
Who's Online doesn't work for me