دليل بطاقة المستخدم

Awesome. Thanks.
I’ve used unchecked the user statistics on the component and also using the tool icon. But it still shows:
image

Any options to get rid of the posted and read time?

إعجاب واحد (1)

Did you do a hard refresh in your web browser? I noticed this too.

I also noticed that fields can show up twice in user cards if you have the custom user field set to “show on user card”.

إعجاب واحد (1)

Certainly possible, but would require a fair bit of refactoring. Right now this component literally replaces all the template code for the regular user directory.

This is currently possible via CSS, and we could potentially automate those CSS changes via some theme settings.

There’s a theme setting to hide the current user, which should help with that issue

By “User statistics”, I mean the bar along the bottom of each user card. See the screenshot in the OP for an example. In your screenshot, it looks like the statistics bar is not present.

As in, it will appear on the user card, and also in the ‘statistics’ at the bottom of the card? If it’s already on the user card, then I’d suggest removing it as one of the statistics (using the :wrench:)

إعجابَين (2)

Yes, that makes sense. Or deselect the “show on user card” setting for the user field.

It’s not possible apparently to not show any of the statistics columns and only display the cards without any statistics. This is not a problem, just something I noticed. :slight_smile:

إعجاب واحد (1)

There is a theme setting which should be labelled “show statistics under each user card”. If you turn that off, the bar at the bottom should completely disappear.

Admittedly it is confusing for this to be buried in the theme settings, while the column selection is available right there on the directory page… but we’re kinda limited by the theme component framework there. :cry:

إعجابَين (2)

Since the list view has become more useful (New Leaderboard/User Directory Features 🎉), would you consider adding a button that allows users to switch between the list view and the card view?

8 إعجابات

There is now a toggle, and the default view can be configured in the theme component’s settings. I’ve installed it here on Meta, and set the default view to “table”. If you visit https://meta.discourse.org/u, you should now see a toggle in the top right

6 إعجابات

This works well in the desktop view, but the button to switch back from table view to card view is missing in mobile view.

3 إعجابات

Thanks David, Just checking - There’s no way to remove the line in the main card that show the user’s join date, last post date and read time?

It would be great to have an option to remove this line as well.

We want to give our users more privacy. We want to have a user directory to allow members to find each other for private messaging, but we don’t want publish how often they interact on the site.

Thanks!

3 إعجابات

I’m afraid there’s no option to remove that information from Discourse core. However, if you’re happy with a purely cosmetic fix, it can be hidden from the user card using some custom css in a theme. For example:

.card-row.metadata-row {
  display: none;
}

(note that users could still technically access the information using their browser’s developer tools)

5 إعجابات

Thank you very much!

4 إعجابات

هذه جميلة. عند تسجيل الدخول، يمكنني تصفية دليل المستخدم حسب المجموعة. هل يمكن تصفية دليل المستخدم العام حسب المجموعة أيضًا؟

عند عدم تسجيل الدخول

عند تسجيل الدخول

مجموعاتنا عامة

5 إعجابات

لقد قمت للتو بتثبيت هذه المكونة، وتبدو رائعة! ومع ذلك، في كل من سفاري وكروم (سطح المكتب) أو حتى الهاتف المحمول، لا يؤدي النقر على صورة رمزية أو اسم إلى الانتقال إلى صفحة المستخدم. إنها فقط الصورة الرمزية وعنوان البطاقة التي تبدو معطلة؛ روابط الموقع، وروابط الشارات، وروابط فرز البيانات الوصفية في أسفل البطاقات تعمل جميعها. لا أواجه أي مشاكل مع بطاقات المستخدم “المنبثقة” في المواضيع أو عبر عرض جدول المستخدم؛ تلك لا تزال تنتقل إلى صفحة المستخدم كما هو متوقع.

في دليل بطاقة المستخدم أرى

<a href="/u/username" class="user-profile-link">
  <span id="discourse-user-card-title" class="name-username-wrapper">اسم المستخدم</span>
  <!--
--></a>

عند فحص الكود المصدري، فإن النقر على عنوان البطاقة يؤدي فقط إلى تفعيل حالة التركيز (كروم) ولا شيء أكثر. لا أحصل حتى على حالة تركيز في سفاري، ولكني أحصل على مؤشر مؤشر. ومن المثير للاهتمام، يمكنني فتح الروابط بنقرة أمر أو عبر قائمة الخيارات (النقر بزر الماوس الأيمن / الضغط لفترة طويلة على الهاتف المحمول). أواجه نفس التأثير في https://discourse.theme-creator.io/u، لذلك لا يبدو أنه خاص بموقع discourse الخاص بنا.

3 إعجابات

شكراً @Kayla - سيتم إصلاح هذه المشكلة بهذا التغيير:

يجب أن ترى زر تحديث على مكون السمة في لوحة الإدارة الخاصة بك - أخبرنا إذا كنت لا تزال ترى مشاكل بعد التحديث.

6 إعجابات

تعمل روابط الصورة الرمزية وعنوان البطاقة الآن كما هو متوقع. شكرًا @david!

4 إعجابات

قد ترغب في إلقاء نظرة على صفحة المعاينة لا تعمل بشكل صحيح يا ديفيد

إعجابَين (2)

مرحباً ديفيد،
تم اجتياز الاختبارات.
سمة الهواء

مؤخرًا، بطاقة المستخدم الدليل إذا نقرت على الرسالة، فإنها تصبح فارغة بدلاً من بدء رسالة مباشرة. لدي هذه المشكلة فقط في دليل المستخدم. إنها تعمل بشكل جيد في المواضيع.

إعجابَين (2)

عند دمجه مع مكون السمة هذا: Usercard Redesign Experiment
يبقى خلفية بطاقة المستخدم فارغة في عرض الدليل.

4 إعجابات

أنا في الواقع أحب ذلك بهذه الطريقة. بخلاف ذلك، سيكون الدليل صاخبًا جدًا للتصفح.

ومع ذلك، يمكن أن يكون خطأ :wink:

3 إعجابات


لسبب ما، تبدو الإحصائيات مشوشة عند التحقق من إحصائيات المستخدم في عرض البطاقة، ولماذا يحدث هذا؟

3 إعجابات