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

Any options to get rid of the posted and read time?
Awesome. Thanks.
I’ve used unchecked the user statistics on the component and also using the tool icon. But it still shows:

Any options to get rid of the posted and read time?
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”.
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
)
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. ![]()
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. ![]()
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?
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
This works well in the desktop view, but the button to switch back from table view to card view is missing in mobile view.
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!
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)
Thank you very much!
我刚安装了这个组件,看起来很棒!但是,在 Safari 和 Chrome(桌面版)或移动设备上,点击头像或姓名都不会跳转到用户的页面。只有头像和卡片标题似乎是无效的;网站链接、徽章链接以及卡片底部的元数据排序链接似乎都可以正常工作。在主题中的“弹出”用户卡片或通过用户表视图时,我没有遇到任何问题;这些仍然可以按预期跳转到用户的页面。
在用户卡片目录中,我看到
<a href="/u/username" class="user-profile-link">
<span id="discourse-user-card-title" class="name-username-wrapper">用户名</span>
<!-- -->
</a>
在检查源代码时,点击卡片标题只会触发焦点状态(Chrome),除此之外什么都没有。在 Safari 上我甚至没有获得焦点状态,但会获得一个指针光标。奇怪的是,我可以通过 Command 键点击或通过选项菜单(在移动设备上右键单击/长按)打开链接。我在 https://discourse.theme-creator.io/u 上遇到了同样的效果,所以这似乎不是我们 Discourse 站点独有的问题。
感谢 @Kayla - 此问题将通过此更改得到修复:
您应该会在管理面板的主题组件上看到一个更新按钮 - 如果更新后仍遇到问题,请告知我们。
头像和卡片标题链接现在可以正常工作了。谢谢你,@david!
您可能需要查看一下预览页面无法正常工作 @david
您好 David,
测试已通过。
Air 主题
最近,在用户卡片目录中,点击消息而不是发起私信,它会变为空白。您只会在用户目录中遇到此问题。在主题中,它运行正常。
与此主题组件结合使用时:Usercard Redesign Experiment
用户卡片背景在目录视图中仍然是空白的。
我其实就喜欢这样。否则目录会非常杂乱,难以浏览。
不过,这也可能是一个 bug ![]()