tshenry
(Taylor)
24 فبراير 2018، 12:58ص
1
يتيح لك مكون السمعة هذا تضمين إحصائية “آخر ظهور” للمستخدم في بطاقات ملف المستخدم.
\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
إلى جانب اهتمامي الشخصي بإضافة هذه الإحصائية إلى بطاقات المستخدمين، كان هناك نقاش هنا ألهم إنشاء مكون السمعة هذا:
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…
\u003ch2\u003eالتثبيت\u003c/h2\u003e
اتبع الدليل هنا:
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…
لا تتردد في النشر إذا كانت لديك أي أسئلة أو مشاكل أو اقتراحات!
46 إعجابًا
McBlu
(Blu McCormick)
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)
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)
16 مارس 2018، 4:14ص
4
I don’t mind where it is so long as it is there.
إعجاب واحد (1)
tshenry
(Taylor)
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 Is it compatible with latest Discourse? It’s not working although installed.
tshenry
(Taylor)
25 نوفمبر 2019، 6:01م
7
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)
tshenry
(Taylor)
25 نوفمبر 2019، 9:38م
9
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:
committed 09:30PM - 25 Nov 19 UTC
8 إعجابات
I’ve got the update, thanks.
إعجابَين (2)
jrgong
(jrgong)
26 يوليو 2021، 7:04م
11
إحياء هذا الموضوع: للتأكيد فقط أنه لا يزال يعمل بامتياز وهو مفيد للغاية!
هذا يجعل من السهل جدًا التحقق بسرعة مما إذا كان المستخدم عضوًا نشطًا بالفعل. في السابق، كان عليّ دائمًا فتح الملف الشخصي الكامل لأقرر ما إذا كان يستحق الوقت لإرسال رسالة خاصة إلى المستخدم.
أحب أن أرى ذلك في النواة!
4 إعجابات
نعم!! يجب أن يكون بالتأكيد في النواة في رأيي. حتى ذلك الحين، شكراً جزيلاً لـ @tshenry !
3 إعجابات
Roi
7 أغسطس 2024، 3:47م
13
لاحظت منذ آخر تحديث لـ Discourse الخاص بي أن نص “Last Seen” في بطاقة المستخدم أكبر بكثير من الباقي وهو بخط عريض أيضًا. لقد تحققت ووجدته مغلفًا بـ <h3> لذلك قمت بإلغاء ذلك عن طريق وضع
#user-card .last-seen-metadata h3 {
font-size: unset;
font-weight: unset;
}
في CSS الخاص بالسِمة.
ليس لدي فكرة عما إذا كان هذا تأثيرًا مقصودًا، لذلك أردت مشاركة تجربتي.
إعجابَين (2)
لقد أضفت طلب سحب للمكون هنا لإزالة وسم العنوان لمطابقة تغيير Discourse:
main ← awesomerobot:patch-1
opened 05:44PM - 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 إعجابات
Roi
7 أغسطس 2024، 8:52م
16
Moin:
ربما لا
Kris:
لقد أضفت طلب سحب
شكراً جزيلاً على الشرح وعلى طلب السحب أيضاً!
إعجابَين (2)
شكراً جزيلاً على هذا الإصلاح! هل سيتم تضمينه في الفرع stable 3.3.x؟
Firepup650
(Firepup Sixfifty)
9 أغسطس 2024، 2:38ص
18
تحديثات مكونات السمة منفصلة تمامًا عن تحديثات النواة، يمكنك تحديثها في أي وقت من واجهة المستخدم الإدارية بغض النظر عن تحديثات النواة.
إعجابَين (2)
عفوًا، آسف، لقد نسيت أن هذا مكون سمة وليس جزءًا من النواة.
إعجابَين (2)
Zomb
(Ro)
10 نوفمبر 2024، 4:03ص
20
يعمل بشكل رائع، ولكن لسبب ما يظهر في نهاية القائمة (بعد cheers) بالنسبة لي.
إعجاب واحد (1)