Tarjeta de usuario "Visto por última vez"

Este componente de tema te permitirá incluir la estadística de “última vez visto” en las tarjetas de perfil de usuario.

\u003e Repositorio: GitHub - tshenry/discourse-last-seen-user-card-theme-component

\u003ch4\u003eAntes\u003c/h4\u003e

\u003ch4\u003eDespués\u003c/h4\u003e

\u003ch2\u003eAcerca de\u003c/h2\u003e

Además de mi propio interés en agregar esta estadística a las tarjetas de usuario, ha habido algunas discusiones aquí que inspiraron la creación de este componente de tema:

\u003ch2\u003eInstalación\u003c/h2\u003e

Sigue esta guía aquí:

¡No dudes en publicar si tienes alguna pregunta, problema o sugerencia!

46 Me gusta

This is fantastic. I will use this function a lot as I assess new members’ engagement and chase particular people down who I work with closely.

2 Me gusta

This has had a minor update:

  • Reduced the amount of code by switching from a full template override to using the existing plugin outlet to achieve the same positioning.

For anyone that uses this or is interested in using it, there are four metadata positions on the user card. Currently, starting from the left it goes last post, date joined, last seen, and time read. Which position would you prefer the "last seen" metadata to be displayed?
  • First
  • Second
  • Third (where it is currently)
  • Fourth

0 voters

I imagine it’s not extremely important to most, but I’m curious if there is a preference that I can consider for a future update.

4 Me gusta

I don’t mind where it is so long as it is there.

1 me gusta

I’ve update this to position “Last Seen” first in the list. Thanks to all that voiced their opinion :grin:

8 Me gusta

@tshenry Is it compatible with latest Discourse? It’s not working although installed.

I just checked and it’s working on the latest tests-passed. Did you make sure to refresh the page after adding the component to your main theme?

3 Me gusta

Did you check on mobile view as well?

1 me gusta

Ah, good point! Fun fact - this component was created before mobile user cards existed! Because of that, it was only set up to work on desktop.

I’ve just pushed an update that should support both environments:

8 Me gusta

I’ve got the update, thanks.

2 Me gusta

Reviviendo este: ¡Solo para confirmar que sigue funcionando de maravilla y es súper útil!

Esto hace que sea muy rápido y sencillo verificar si el usuario es, de hecho, un miembro activo. Antes siempre tenía que abrir el perfil completo para decidir si valía la pena el tiempo enviar un mensaje privado al usuario.

¡Me encantaría verlo integrado en el núcleo!

4 Me gusta

¡Sí! Definitivamente debería estar en el núcleo en mi opinión. Mientras tanto, ¡muchas gracias a @tshenry!

3 Me gusta

He notado que desde mi última actualización de Discourse, el texto “Last Seen” en la tarjeta de usuario es mucho más grande que el resto y también está en negrita. Comprobé y está envuelto en <h3>, así que deshice esto poniendo

#user-card .last-seen-metadata h3 {
    font-size: unset;
    font-weight: unset;
}

en el CSS del tema.

No tengo idea de si este es un efecto intencionado, así que quería compartir mi experiencia.

2 Me gusta

Probablemente no.

4 Me gusta

He agregado una pull request para el componente aquí para eliminar la etiqueta de encabezado y que coincida con el cambio de Discourse:

8 Me gusta

¡Muchas gracias por la explicación y también por la PR! :slight_smile:

2 Me gusta

¡Muchas gracias por esta corrección! ¿Llegará a la rama stable 3.3.x?

Las actualizaciones de los componentes del tema están completamente separadas de las actualizaciones del núcleo, puedes actualizarlas en cualquier momento desde la interfaz de administración independientemente de las actualizaciones del núcleo.

2 Me gusta

Oops, lo siento, olvidé que este es un componente temático y no parte del núcleo.

2 Me gusta

Funciona muy bien, pero por alguna razón aparece al final de la lista (después de cheers) para mí.

1 me gusta