Quién está en línea en Discourse

:discourse2: Summary Discourse Who’s Online displays a list of users currently active on the site
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-whos-online
:open_book: Install Guide How to install plugins in Discourse

Features

:information_source: Think carefully before installing this plugin. Discourse is designed for asynchronous discussion, and a list of online users can be harmful for some communities

:information_source: 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

:speech_balloon: Frontend Language Strings

These are available in the admin panel under CustomizeText 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.

Last edited by @dax 2024-08-22T14:22:33Z

Check documentPerform check on document:
150 Me gusta
[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?
Who's online "action"
Split profile hiding and presence
Who's online crazy load
Change Online (x) text to pulsing green dot
Can I activate my plugin only for those registered on the site?
Contributor Interviews – David Taylor
Need cool plugin feedback suggestions?
Community Network Visualisation
No online status in Topic List
Advice for getting my little game dev community "out there?"
MKJ's Opinionated Discourse Deployment Configuration
Possible to show number of visitors in real time?
Who's Online doesn't work for me
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
How does group messaging work in Discourse?
Where are topics related to WordPress integrations where Discourse is a paid subscription?
Group PM “pick up where you left off”
Original Poster Avatars not working well with Who's Online
What happens next?
How to show a user’s online status?
Any way to show live stats to users?
My discourse speed is very slow
List of all the pages that users are in
User reporting unable to hide presence
How serious is "site is under extreme load, search is disabled, try again later"
Topic Author
[Paid] "What's Going On?" plugin. [COMPLETE]
Correct way to build components
TavoWEB theme for Discourse
Failed to construct 'Notification': Illegal constructor
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
User card huge avatar outline appears on plugins and components

3 publicaciones se dividieron en un nuevo tema: Información más detallada de Quién está en línea

Tenga en cuenta que este complemento (al menos en nuestro foro) muestra el siguiente mensaje. Cuando desactivamos el complemento, desaparece. ¿Alguien más tiene este problema? Tenemos un servidor más que suficiente para manejar el número de usuarios activos. Usando Lightsail 8 GB RAM, 2 vCPUs, 160 GB SSD Ubuntu


1 me gusta

Este plugin es realmente agradable, especialmente con el chat activado. Sin embargo, me preguntaba si se podría agregar una función para integrarse con la configuración personal del usuario para ocultar el propio estado personal, similar a otras aplicaciones de chat.

5 Me gusta

@bksubhuti ¿Es esto a lo que te refieres?

1 me gusta

Siempre encontré esta opción exagerada. Pasar a “invisible” es una característica bastante estándar en lo que respecta a los indicadores en línea y no debería requerir la desactivación completa de tu perfil. Esta es una de las razones por las que no he activado este complemento para usuarios que no son administradores.

3 Me gusta

No vi esa propiedad, pero una búsqueda rápida en Google me mostró que está en la interfaz.
Podría crear un tema sugiriendo a los desarrolladores de Discourse que realmente pongan la opción de ocultar el perfil en la sección de perfil. Parece más lógico allí. La interfaz está más relacionada con el diseño y la configuración.

Sí, funciona como dijiste.

Me gusta mucho tu plugin y aprecio tu trabajo y también tu rápida respuesta. Somos una pequeña comunidad de Discourse con más de 100 usuarios y rara vez hay más de 4 conectados, pero es divertido tener eso junto con el chat.

1 me gusta

2 publicaciones se dividieron en un nuevo tema: Permitir a los usuarios ocultar quién está en línea

Simplemente aquellos que tengan su perfil configurado como privado no aparecerán en la lista de quién está en línea debido a la configuración de privacidad.

1 me gusta

3 publicaciones se fusionaron en un tema existente: Ahora mismo, estoy en TL1. ¿Alguien puede decirme algo sobre el nivel de confianza de un chico?

Me pregunto si es posible hacer de esto un componente temático para mostrar información básica, no todos estos detalles, \ndiga que solo muestra cuántos visitantes en los últimos 5 o 10 minutos. \n\nGracias

Simplemente establezca whos_online_active_timeago y whos_online_count_only.

Oye, @david
Gracias por este buen plugin.
Tengo algunas sugerencias:

  • ¿Es posible mostrar el número de todos los usuarios conectados, no solo los usuarios activos? Ahora, si alguien inicia sesión pero no ha publicado/reaccionado, no se cuenta.
  • ¿Es posible añadir el número de visitantes (que no han iniciado sesión)?

¡Gracias por este gran trabajo! Espero que puedas considerar estas mejoras, no estoy seguro de si es posible/fácil de implementar.

5 Me gusta

¿Se puede usar esto en Discourse alojado por Discourse?

Intenté agregarlo a componentes y obtuve un error. Soy nuevo en esto, pero lo entiendo rápido.

Este es un plugin, no un tema/componente de Discourse. Deberás comprobar si el plan que contrataste lo incluye.

3 Me gusta

Este es un Plugin, no un Theme ni un Theme component.
Los plugins que puedes usar dependen de tu plan de alojamiento

Necesitas alojamiento Enterprise para este plugin

4 Me gusta

¿Hay algún componente que muestre quién está en línea? Es una función bastante antigua y básica de los foros. ¿No parece que deba estar restringida a niveles de suscripción más altos?

1 me gusta

Siéntase libre de corregirme cualquiera

Lo más parecido que se me ocurre que es un Theme component es este:

2 Me gusta

¿Hay un lugar donde se listen todos los componentes como se hace con los plugins? ¡Gracias por la ayuda!

Todos los TC están en la categoría Theme component, puedes filtrarlos más a través de etiquetas, por ejemplo official

1 me gusta