tshenry
(Taylor)
2월 24, 2018, 12:58오전
1
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:
I think we should expand our user card to include post counts:
[image]
Additionally maybe consider adding a row for Last Seen - perhaps a separate feature req/
Thoughts?
I think “Last Seen” is a more useful data point than “Last Post”, at least as far as the profile card pop-up is concerned. I propose to swap out “Last Post” for “Last Seen” in the profile card.
Take the user @Cafeine for instance (sorry about the unmerited mention mate )
If you find an old discussion with a post of his that you might want to address with a reply or private message, you might think twice when you see his profile:
[image]
By the looks of it, he hasn’t been…
Installation
Follow this guide here:
This is a guide for installing and managing themes and theme components in Discourse.
Required user level: Administrator
Installing and customizing themes can significantly improve the look and feel of your Discourse site. You can easily import and manage themes and their components through the Discourse admin panel.
This guide covers:
Importing new themes and theme components
Adding theme components to a theme
Managing automatic updates
Additional resourc…
Please feel free to post if there are any questions, problems, or suggestions!
46개의 좋아요
McBlu
(Blu McCormick)
3월 15, 2018, 7:44오후
2
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개의 좋아요
tshenry
(Taylor)
3월 16, 2018, 4:07오전
3
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
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개의 좋아요
McBlu
(Blu McCormick)
3월 16, 2018, 4:14오전
4
I don’t mind where it is so long as it is there.
1개의 좋아요
tshenry
(Taylor)
3월 22, 2018, 9:43오전
5
I’ve update this to position “Last Seen” first in the list. Thanks to all that voiced their opinion
8개의 좋아요
@tshenry 최신 Discourse와 호환되나요? 설치했는데도 작동하지 않습니다.
tshenry
(Taylor)
11월 25, 2019, 6:01오후
7
방금 확인해 보니 최신 tests-passed에서 정상적으로 작동하고 있습니다. 메인 테마에 컴포넌트를 추가한 후 페이지를 새로고침하셨는지 확인해 주셨나요?
3개의 좋아요
tshenry
(Taylor)
11월 25, 2019, 9:38오후
9
아, 좋은 지적이네요! 재미있는 사실 하나를 말씀드리면, 이 컴포넌트는 모바일 사용자 카드가 존재하기 전에 만들어졌어요! 그래서 데스크톱에서만 작동하도록 설정되어 있었습니다.
방금 두 환경 모두를 지원하도록 수정된 업데이트를 푸시했습니다:
committed 09:30PM - 25 Nov 19 UTC
8개의 좋아요
jrgong
(jrgong)
7월 26, 2021, 7:04오후
11
이 이슈를 다시 활성화합니다: 여전히 완벽하게 작동하며 매우 유용하다는 점을 확인하기 위해요!
이 기능을 통해 사용자가 실제로 여전히 활동 중인 멤버인지 매우 빠르고 쉽게 확인할 수 있습니다. 이전에는 사용자가 사적 메시지를 보내도 될 만큼 가치가 있는지 판단하기 위해 항상 전체 프로필을 열어야 했습니다.
이 기능이 코어에 포함되기를 진심으로 바랍니다!
4개의 좋아요
jrgong:
코어에 포함되면 좋겠어요!
맞아요!! 제 생각에도 코어에 반드시 포함되어야 합니다. 그 전까지는 @tshenry님께 정말 감사드립니다!
3개의 좋아요
Roi
8월 7, 2024, 3:47오후
13
마지막 Discourse 업데이트 이후로, 사용자 카드의 ‘마지막 접속’ 텍스트가 나머지 텍스트보다 훨씬 크고 굵게 표시되는 것을 확인했습니다. 확인해 보니 <h3> 태그로 감싸져 있었기 때문에, 테마 CSS에 아래 코드를 추가하여 이를 되돌렸습니다.
#user-card .last-seen-metadata h3 {
font-size: unset;
font-weight: unset;
}
이것이 의도된 효과인지 모르겠지만, 제 경험을 공유하고자 합니다.
2개의 좋아요
Discourse 변경 사항에 맞춰 헤딩 태그를 제거하기 위해 해당 컴포넌트에 대한 풀 리퀘스트를 여기에 추가했습니다:
main ← awesomerobot:patch-1
merged 08:54PM - 07 Aug 24 UTC
We removed heading tags from the user card in core, because they're not technica… lly supposed to be used like this
8개의 좋아요
이 수정에 대해 정말 감사합니다! 3.3.x stable 브랜치에 반영될 예정인가요?
Firepup650
(Firepup Sixfifty)
8월 9, 2024, 2:38오전
18
테마 컴포넌트 업데이트는 코어 업데이트와 완전히 독립적이며, 코어 업데이트와 무관하게 관리자 UI에서 언제든지 업데이트할 수 있습니다.
2개의 좋아요
아, 죄송합니다. 이 것이 테마 컴포넌트이고 코어 일부가 아니라는 걸 잊었네요.
2개의 좋아요
Zomb
(Ro)
11월 10, 2024, 4:03오전
20
잘 작동하지만, 어째서인지 내 목록에서는 맨 아래(cheers 다음)에 표시됩니다.
1개의 좋아요