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!
Estes são LINDOS. Quando conectado, posso filtrar o diretório de usuários por grupo. O diretório de usuários público também poderia ser filtrado por grupo?
Quando Não Conectado
Quando Conectado
Nossos grupos são públicos
Acabei de instalar este componente e ele parece ótimo! No entanto, tanto no Safari e Chrome (desktop) quanto no celular, clicar em um avatar ou nome não me leva à página do usuário. Apenas o avatar e o título do cartão parecem inativos; links do site, links de distintivos e os links de classificação de metadados na parte inferior dos cartões parecem funcionar. Não estou tendo problemas com os cartões de usuário “pop-up” nos tópicos ou na visualização da tabela de usuários; estes ainda levam à página do usuário como esperado.
No diretório de cartões de usuário, vejo
<a href="/u/username" class="user-profile-link">
<span id="discourse-user-card-title" class="name-username-wrapper">Nome do Usuário</span>
<!--
</a>
ao inspecionar o código-fonte, mas clicar no título do cartão apenas ativa o estado de foco (Chrome) e nada mais. Eu nem sequer obtenho um estado de foco no Safari, mas obtenho um cursor de ponteiro. Curiosamente, posso abrir os links com um clique de comando ou através do menu de opções (clique com o botão direito / toque longo no celular). Estou experimentando o mesmo efeito em Theme Creator, então não parece ser exclusivo do nosso site discourse.
Obrigado @Kayla - este problema será corrigido por esta alteração:
Você deverá ver um botão de atualização no componente de tema em seu painel de administração - informe-nos se você ainda estiver vendo problemas após a atualização.
Os links do avatar e do título do cartão agora funcionam como esperado. Obrigado @david!
Talvez você queira dar uma olhada na página de pré-visualização, ela não está funcionando corretamente, @david
Olá David,
Testes em execução.
Tema Ar
Recentemente, no diretório de cartões de usuário, se você clicar em mensagem, a tela fica em branco em vez de iniciar uma mensagem direta. Tenho esse problema apenas no diretório de usuários. Funciona bem nos tópicos.
Quando combinado com este componente de tema: Usercard Redesign Experiment
O plano de fundo do cartão do usuário permanece em branco na visualização do diretório.
Eu gosto assim, na verdade. De outra forma, o diretório ficaria muito confuso para navegar.
E ainda assim pode ser um bug ![]()