Think carefully before installing this plugin. Discourse is designed for asynchronous discussion, and a list of online users can be harmful for some communities
This plugin is built for communities with <100 concurrent logged-in users. Installing on larger sites is possible, but is likely to negatively affect the performance of the whole forum.
It can also optionally display a user’s online status on their avatar. Either with a “ring”, “glow”, or with a “flair” icon in the top left.
The plugin uses the MessageBus to keep up-to-date, so user status is reflected in real-time. Users which have enabled the “hide profile and presence” setting will not be displayed. You can customize a number of things using the available site settings and language strings:
Configuration
These are available in the “plugins” section of the admin settings panel.
whos_online_active_timeago: maximum “last seen” for which users are considered online (minutes)
whos_online_collapse_threshold: number of users before the avatars overlap each other (see gif above). Set very high to disable this feature
whos_online_maximum_display: the maximum number of avatars to display. The numeric counter will still count higher than this. The choice of who gets displayed is currently inconsistent
whos_online minimum_display: the minimum number of avatars to display. Below this, a “no users online” message is displayed
whos_online_hide_below_minimum_display: if enabled, the widget will be entirely hidden when the number of users is less than minimum_display
whos_online_display_public: should the plugin be displayed to people who aren’t logged in? Defaults to true.
whos_online_display_min_trust_level: the minimum trust level that this plugin is displayed to. Defaults to 0
whos_online_avatar_indicator: choose how to display online status on user avatars. Defaults to “ring”
whos_online_avatar_indicator_topic_lists: display avatar indicators in mobile topic lists, and the “Categories & Latest” view. Defaults to off.
whos_online_count_only: when enabled, only the count will be displayed. Online user identities will not be revealed
Frontend Language Strings
These are available in the admin panel under Customize → Text Content (search for whos_online). These include:
js.whos_online.no_users | “No users currently online”:The message displayed when the number of users < whos online minimum display setting.
js.whos_online.title | “Online ({{count}})”: The text displayed before the list of avatars. {{count}} is the number of users online.
js.whos_online.tooltip | “Users seen in the last 5 minutes”: the text displayed on mouseover of the text.
Observe que este plugin (pelo menos em nosso fórum) exibe a seguinte mensagem. Quando desativamos o plugin, ela desaparece. Mais alguém está tendo esse problema? Temos um servidor mais do que suficiente para lidar com o número de usuários ativos. Usando Lightsail 8 GB RAM, 2 vCPUs, 160 GB SSD Ubuntu
Este plugin é muito bom, especialmente com o chat ativado. No entanto, eu estava me perguntando se um recurso poderia ser adicionado para integrar com as configurações pessoais do usuário para ocultar o próprio status pessoal, semelhante a outros aplicativos de chat.
Sempre achei essa opção um exagero. Ficar “invisível” é um recurso bastante padrão quando se trata de indicadores online e não deveria exigir a desativação completa do seu perfil. Este é um dos motivos pelos quais não implementei este plugin para usuários não administradores.
Não vi essa propriedade, mas uma rápida pesquisa no Google mostrou que ela está na interface.
Talvez eu crie um tópico sugerindo aos desenvolvedores do Discourse que coloquem a ocultação de perfil no cabeçalho do perfil. Parece mais lógico lá. A interface está mais relacionada ao layout e às configurações.
Sim, funciona como você disse.
Gostei muito do seu plugin e aprecio seu trabalho e também sua rápida resposta. Somos um pequeno Discourse com mais de 100 usuários e raramente mais de 4 logados, mas é divertido ter isso junto com o chat.
Gostaria de saber se é possível transformar isso em um componente de tema para mostrar informações básicas, não todos esses detalhes, \ndiga apenas quantos visitantes nos últimos 5 ou 10 minutos. \n\nobrigado
ei, @david
obrigado por este ótimo plugin.
tenho algumas sugestões:
é possível mostrar o número de todos os usuários logados, não apenas usuários ativos? agora, se alguém faz login, mas não postou/reagiu, não é contado.
é possível adicionar o número de visitantes (que não fizeram login)?
obrigado por este ótimo trabalho! espero que você possa considerar essas melhorias, não tenho certeza se é possível/fácil de implementar.
Existe um componente que mostra quem está online? É um recurso de fórum bem antigo e básico? Não parece que deva ser restrito a níveis de assinatura mais altos?