"Zuletzt gesehen" Benutzerkarte

This theme component will allow you to include the “last seen” user statistic in user profile cards.

Repo: GitHub - tshenry/discourse-last-seen-user-card-theme-component

Before

After

About

In addition to my own interest in having this stat added to user cards, there’s been some discussion on here that inspired this theme component’s creation:

Installation

Follow this guide here:

Please feel free to post if there are any questions, problems, or suggestions!

45 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

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

1 „Gefällt mir“

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

8 „Gefällt mir“

@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 „Gefällt mir“

Did you check on mobile view as well?

1 „Gefällt mir“

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:

https://github.com/tshenry/discourse-last-seen-user-card-theme-component/commit/fdbdb65320d18ac3b466fb3c81e902add7499e0b

8 „Gefällt mir“

I’ve got the update, thanks.

2 „Gefällt mir“

Reviving this one: Just to confirm that it still works like a charm and is super useful!

This makes it super quick easy to check if the user is in fact still an active member. Before I always had to open full profile to decide if it’s worth the time so send a private message to the user.

Would love to see that in core!

4 „Gefällt mir“

Ja!! Sollte meiner Meinung nach definitiv im Kern sein. Bis dahin vielen Dank an @tshenry!

3 „Gefällt mir“

Seit meinem letzten Discourse-Update ist mir aufgefallen, dass der Text „Zuletzt gesehen“ in der Benutzerkarte viel größer und auch fett gedruckt ist als der Rest. Ich habe nachgesehen und festgestellt, dass er in <h3> eingeschlossen ist. Daher habe ich dies rückgängig gemacht, indem ich Folgendes in die Theme-CSS eingefügt habe:

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

Ich habe keine Ahnung, ob dies ein beabsichtigter Effekt ist, daher wollte ich meine Erfahrung teilen.

2 „Gefällt mir“

Wahrscheinlich nicht.

4 „Gefällt mir“

Ich habe hier einen Pull Request für die Komponente hinzugefügt, um das H1-Tag zu entfernen und die Änderung von Discourse zu übernehmen:

8 „Gefällt mir“

Vielen Dank für die Erklärung und auch für den PR! :slight_smile:

2 „Gefällt mir“

Vielen Dank für diese Korrektur! Wird sie in den stable-Zweig 3.3.x aufgenommen?

Theme-Komponenten-Updates sind vollständig getrennt von Core-Updates. Sie können sie jederzeit über die Admin-Benutzeroberfläche aktualisieren, unabhängig von den Core-Updates.

2 „Gefällt mir“

Ups, Entschuldigung, ich habe vergessen, dass dies eine Themenkomponente und kein Teil des Kerns ist.

2 „Gefällt mir“

Funktioniert super, aber aus irgendeinem Grund wird es bei mir als letztes in der Liste angezeigt (nach Cheers).

1 „Gefällt mir“