# User Card Directory

**URL:** https://meta.discourse.org/t/user-card-directory/144479
**Category:** Theme component
**Tags:** official, user-card-directory
**Created:** [March 16, 2020, 2:21pm UTC](https://meta.discourse.org/t/user-card-directory/144479 "2020-03-16T14:21:04Z")
**Posts on this page:** 20
**Page:** 5

<div class="post-metadata">

### Author: ![Green\_Your\_Lab](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/green_your_lab/32/211588_2.png) [@Green\_Your\_Lab](https://meta.discourse.org/u/Green_Your_Lab)
#### Post date: [July 1, 2021, 6:19pm UTC](https://meta.discourse.org/t/user-card-directory/144479/85 "2021-07-01T18:19:48Z")

</div>

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

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/2/92937f710a197e5a40d94501d0b27f1e7ba31ac3.png)

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

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [July 1, 2021, 6:21pm UTC](https://meta.discourse.org/t/user-card-directory/144479/86 "2021-07-01T18:21:00Z")

</div>

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”.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [July 1, 2021, 6:45pm UTC](https://meta.discourse.org/t/user-card-directory/144479/87 "2021-07-01T18:45:18Z")

</div>

> [@tobiaseigen](#):
>
> Seeing the new user list nav at the top is making me wish for a card/list toggle. Is such a thing possible?

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.

> [@tobiaseigen](#):
>
> not show badges but to show groups. And to display/hide other user details like birthday, location and timezone

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

> [@tobiaseigen](#):
>
> And to not show myself twice in user lists.

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

> [@Green\_Your\_Lab](#):
>
> I’ve used unchecked the user statistics on the component and also using the tool icon

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.

> [@tobiaseigen](#):
>
> 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”.

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 🔧)

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [July 1, 2021, 6:48pm UTC](https://meta.discourse.org/t/user-card-directory/144479/88 "2021-07-01T18:48:54Z")

</div>

> [@david](#):
>
> 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. 🙂

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [July 1, 2021, 6:51pm UTC](https://meta.discourse.org/t/user-card-directory/144479/89 "2021-07-01T18:51:07Z")

</div>

> [@tobiaseigen](#):
>
> 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. 😢

---

<div class="post-metadata">

### Author: ![tomtjes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tomtjes/32/131271_2.png) [@tomtjes](https://meta.discourse.org/u/tomtjes)
#### Post date: [July 4, 2021, 1:41pm UTC](https://meta.discourse.org/t/user-card-directory/144479/90 "2021-07-04T13:41:43Z")

</div>

Since the list view has become more useful ([New Leaderboard/User Directory Features 🎉](https://meta.discourse.org/t/new-leaderboard-user-directory-features/195263)), would you consider adding a button that allows users to switch between the list view and the card view?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [July 9, 2021, 3:44pm UTC](https://meta.discourse.org/t/user-card-directory/144479/91 "2021-07-09T15:44:26Z")

</div>

> [@tobiaseigen](#):
>
> making me wish for a card/list toggle. Is such a thing possible?

> [@tomtjes](#):
>
> 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](https://meta.discourse.org/u), you should now see a toggle in the top right

 ![Screenshot 2021-07-09 at 16.42.12](https://global.discourse-cdn.com/meta/original/3X/6/4/6490c9365f176a1fcb8cc683809dc714314e8320.jpeg)

---

<div class="post-metadata">

### Author: ![md-misko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/md-misko/32/126315_2.png) [@md-misko](https://meta.discourse.org/u/md-misko)
#### Post date: [July 18, 2021, 5:53pm UTC](https://meta.discourse.org/t/user-card-directory/144479/92 "2021-07-18T17:53:33Z")

</div>

> [@david](#):
>
> There is now a toggle

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

---

<div class="post-metadata">

### Author: ![Green\_Your\_Lab](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/green_your_lab/32/211588_2.png) [@Green\_Your\_Lab](https://meta.discourse.org/u/Green_Your_Lab)
#### Post date: [July 21, 2021, 3:40pm UTC](https://meta.discourse.org/t/user-card-directory/144479/93 "2021-07-21T15:40:07Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [July 28, 2021, 4:58pm UTC](https://meta.discourse.org/t/user-card-directory/144479/94 "2021-07-28T16:58:09Z")

</div>

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:

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

```

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

---

<div class="post-metadata">

### Author: ![Green\_Your\_Lab](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/green_your_lab/32/211588_2.png) [@Green\_Your\_Lab](https://meta.discourse.org/u/Green_Your_Lab)
#### Post date: [July 28, 2021, 7:15pm UTC](https://meta.discourse.org/t/user-card-directory/144479/95 "2021-07-28T19:15:43Z")

</div>

Thank you very much!

---

<div class="post-metadata">

### Author: ![debryc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/debryc/32/101652_2.png) [@debryc](https://meta.discourse.org/u/debryc)
#### Post date: [February 24, 2022, 7:22pm UTC](https://meta.discourse.org/t/user-card-directory/144479/96 "2022-02-24T19:22:59Z")

</div>

These are BEAUTIFUL. When signed in I can filter the user directory by group. Could the public user directory be filtered by group as well?

**When Not Signed In**

 ![Screenshot of Google Chrome (2-24-22, 2-21-53 PM)](https://global.discourse-cdn.com/meta/original/3X/d/1/d1020dce3b80e85e704a99d30a72cd828f5e3a75.png)

**When Signed In**

 ![Screenshot of Google Chrome (2-24-22, 2-22-31 PM)](https://global.discourse-cdn.com/meta/original/3X/e/1/e15ed57bc161b623267eb12204c041152b049b0e.png)

Our groups are public

---

<div class="post-metadata">

### Author: ![Kayla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kayla/32/128523_2.png) [@Kayla](https://meta.discourse.org/u/Kayla)
#### Post date: [October 15, 2022, 2:18am UTC](https://meta.discourse.org/t/user-card-directory/144479/97 "2022-10-15T02:18:13Z")

</div>

I’ve just installed this component, and it looks great! However, in both Safari & Chrome (desktop) or even mobile, clicking on an avatar or name doesn’t take me to the user’s page. It’s only the avatar and card title that seem dead; website links, badge links, and the meta data sorting links at the bottom of the cards all seem to work. I’m not having any issues with the “pop-up” user cards on topics or via the user table view; those still go to the user’s page as expected.

On the user card directory I see

```plaintext
<a href="/u/username" class="user-profile-link">
  <span id="discourse-user-card-title" class="name-username-wrapper">User Name</span>
  <!---->
</a>

```

when inspecting the source code but clicking on the card title merely engages the focus state (Chrome) and nothing more. I don’t even get a focus state on Safari, but I do get a pointer cursor. Curiously, I _can_ open the links with a command click or via the option menu (right click / long press on mobile). I’m experiencing the same effect at [https://discourse.theme-creator.io/u](https://discourse.theme-creator.io/u), so it doesn’t seem to be unique to our discourse site.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [October 17, 2022, 9:07am UTC](https://meta.discourse.org/t/user-card-directory/144479/99 "2022-10-17T09:07:06Z")

</div>

Thanks @Kayla - this issue will be fixed by this change:

[https://github.com/discourse/discourse-user-card-directory/commit/d7d4687caf29ed12e1522ac247266e0d50e34dc3](https://github.com/discourse/discourse-user-card-directory/commit/d7d4687caf29ed12e1522ac247266e0d50e34dc3)

You should see an update button on the theme component in your admin panel - let us know if you’re still seeing issues after updating.

---

<div class="post-metadata">

### Author: ![Kayla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kayla/32/128523_2.png) [@Kayla](https://meta.discourse.org/u/Kayla)
#### Post date: [October 19, 2022, 12:32am UTC](https://meta.discourse.org/t/user-card-directory/144479/100 "2022-10-19T00:32:20Z")

</div>

The avatar & card title links now work as expected. Thanks @david!

---

<div class="post-metadata">

### Author: ![Nick\_Tomlinson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nick_tomlinson/32/282728_2.png) [@Nick\_Tomlinson](https://meta.discourse.org/u/Nick_Tomlinson)
#### Post date: [December 19, 2022, 6:57pm UTC](https://meta.discourse.org/t/user-card-directory/144479/102 "2022-12-19T18:57:31Z")

</div>

You might want to take a look at the preview page isn’t working properly @david

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [February 10, 2023, 12:11pm UTC](https://meta.discourse.org/t/user-card-directory/144479/103 "2023-02-10T12:11:23Z")

</div>

Hi David,  
Running Tests Past.  
Air Theme

Recently the user card Directory if you click on message it blanks instead of initiating dm. zonly have this issue in the user directory. It works fine in topics.

---

<div class="post-metadata">

### Author: ![AquaL1te](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aqual1te/32/201966_2.png) [@AquaL1te](https://meta.discourse.org/u/AquaL1te)
#### Post date: [February 14, 2023, 7:43am UTC](https://meta.discourse.org/t/user-card-directory/144479/104 "2023-02-14T07:43:30Z")

</div>

When combined with this theme component: [Usercard Redesign Experiment](https://meta.discourse.org/t/usercard-redesign-experiment/254353)

The user card background remains blank in the directory view.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [February 14, 2023, 8:38am UTC](https://meta.discourse.org/t/user-card-directory/144479/105 "2023-02-14T08:38:21Z")

</div>

I actually like it that way. Otherway the directory would be really noisy to browse.

And yet it can be a bug 😉

---

<div class="post-metadata">

### Author: ![twofoursixeight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twofoursixeight/32/574822_2.png) [@twofoursixeight](https://meta.discourse.org/u/twofoursixeight)
#### Post date: [February 15, 2023, 6:17pm UTC](https://meta.discourse.org/t/user-card-directory/144479/106 "2023-02-15T18:17:48Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/2/7/a/27ae3fe4696ea3aeb69123be1fb08c294aa1118f.png)  
For some reason, it looks all glitched when checking user statistics in card view, and why is this happening?

[Previous page](https://meta.discourse.org/t/user-card-directory/144479.md?page=4)

[Next page](https://meta.discourse.org/t/user-card-directory/144479.md?page=6)
