「最終閲覧」ユーザーカード

このテーマコンポーネントを使用すると、ユーザープロフィールカードに「最終閲覧日時」の統計情報を表示できるようになります。

\u003e リポジトリ: GitHub - tshenry/discourse-last-seen-user-card-theme-component

\u003ch4\u003e以前\u003c/h4\u003e

\u003ch4\u003e以降\u003c/h4\u003e

\u003ch2\u003e概要\u003c/h2\u003e

この統計情報をユーザーカードに追加したいという私の個人的な関心に加え、このテーマコンポーネントの作成を促す議論がここで行われていました:

\u003ch2\u003eインストール\u003c/h2\u003e

以下のガイドに従ってください:

ご質問、ご指摘、またはご提案がございましたら、お気軽に投稿してください!

「いいね!」 46

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

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

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

「いいね!」 1

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

「いいね!」 8

@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

Did you check on mobile view as well?

「いいね!」 1

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

I’ve got the update, thanks.

「いいね!」 2

これを復活させます:まだ完璧に動作し、非常に役立つことを確認するためです!

これにより、ユーザーが実際にアクティブなメンバーかどうかを素早く簡単に確認できるようになりました。以前は、プライベートメッセージを送信する価値があるかどうかを判断するために、常に完全なプロフィールを開く必要がありました。

コア機能として実装されることを心から願っています!

「いいね!」 4

はい!IMOでは間違いなくコア機能になるはずです。それまでは@tshenryに大変感謝しています!

「いいね!」 3

前回のDiscourseアップデート以降、ユーザーカードの「最終アクティビティ」のテキストが他のテキストよりもはるかに大きく太字になっていることに気づきました。確認したところ、<h3>タグで囲まれていたため、テーマのCSSに以下を追加して元に戻しました。

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

これが意図した効果なのか不明なため、私の経験を共有したいと思いました。

「いいね!」 2

おそらくそうではありません。

「いいね!」 4

Discourse の変更に合わせて、コンポーネントのヘッダータグを削除するためのプルリクエストをこちらに追加しました。

「いいね!」 8

説明とPRもどうもありがとうございます!:slight_smile:

「いいね!」 2

この修正をありがとうございます!3.3.x stable ブランチにも取り込まれますか?

テーマコンポーネントのアップデートはコアのアップデートとは完全に別であり、コアのアップデートに関係なく、いつでも管理UIからアップデートできます。

「いいね!」 2

おっと、これはコアの一部ではなく、テーマコンポーネントであることを忘れました。

「いいね!」 2

素晴らしい動作ですが、なぜか私のリストでは最後(cheersの後)に表示されています。

「いいね!」 1