Directory schede utente

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 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

Thank you very much!

4 Mi Piace

Questi sono BELLISSIMI. Quando sono connesso, posso filtrare la directory degli utenti per gruppo. La directory utente pubblica potrebbe essere filtrata anche per gruppo?

Quando non si è connessi

Quando si è connessi

I nostri gruppi sono pubblici

5 Mi Piace

Ho appena installato questo componente e sembra fantastico! Tuttavia, sia su Safari e Chrome (desktop) che su mobile, fare clic su un avatar o un nome non mi porta alla pagina dell’utente. Solo l’avatar e il titolo della scheda sembrano non funzionare; i link del sito web, i link dei badge e i link di ordinamento dei metadati in fondo alle schede sembrano funzionare tutti. Non ho problemi con le schede utente “pop-up” sugli argomenti o nella vista della tabella utente; quelle portano ancora alla pagina dell’utente come previsto.

Nella directory delle schede utente vedo

<a href="/u/username" class="user-profile-link">
  <span id="discourse-user-card-title" class="name-username-wrapper">Nome Utente</span>
  <!-- -->
</a>

ispezionando il codice sorgente, ma fare clic sul titolo della scheda attiva semplicemente lo stato di focus (Chrome) e nient’altro. Non ottengo nemmeno uno stato di focus su Safari, ma ottengo un cursore a puntatore. Curiosamente, posso aprire i link con un clic con il comando o tramite il menu delle opzioni (clic destro / pressione prolungata su mobile). Sto riscontrando lo stesso effetto su https://discourse.theme-creator.io/u, quindi non sembra essere esclusivo del nostro sito discourse.

3 Mi Piace

Grazie @Kayla - questo problema sarà risolto da questa modifica:

Dovresti vedere un pulsante di aggiornamento sul componente tema nel tuo pannello di amministrazione - facci sapere se riscontri ancora problemi dopo l’aggiornamento.

6 Mi Piace

I collegamenti del titolo dell’avatar e della carta ora funzionano come previsto. Grazie @david!

4 Mi Piace

Potresti voler dare un’occhiata alla pagina di anteprima non funziona correttamente @david

2 Mi Piace

Ciao David,
I test superati.
Tema Aria

Recentemente, la scheda utente Directory se fai clic su messaggio si svuota invece di avviare il DM. Ho questo problema solo nella directory utente. Funziona bene negli argomenti.

2 Mi Piace

Quando combinato con questo componente del tema: Usercard Redesign Experiment
Lo sfondo della scheda utente rimane vuoto nella visualizzazione della directory.

4 Mi Piace

In realtà mi piace così. Altrimenti la directory sarebbe davvero rumorosa da consultare.

E tuttavia potrebbe essere un bug :wink:

3 Mi Piace


Per qualche motivo, sembra tutto corrotto quando controllo le statistiche dell’utente in visualizzazione scheda, perché sta succedendo?

3 Mi Piace