I tried it out and it looks like an issue with this component in dark mode (I moved your post to the relevant topic here). Might just need some CSS updates.
Also, is it supposed to display the legacy card format?
yes, the new user card format on Meta is still experimental
Yes, this needs an update due to some changes made yesterday to the layout structure on /u⌠though it doesnât look quite as broken here on Meta on the default theme
Not sure why mine is super broken then, I donât remember making any major changes to it besides actual stuff for the cards:
I presume this is also why the message button is broken?
Though the message button has been broken for awhile now.
if group option were available, this would be a fantastic feature for a Staff group page.
Is it possible for the URL query to handle multiple groups?
e.g.
https://website.com/u?cards=yes&group=group1&order=likes_received
If possible, how might this url be constructed to show both group1 and group2?
Feature request for this component:
Default display orderby = users with profile images / info
Or at least an options to select default orderby?
I would assume a decent chunk of admins have this plugin installed to provide a slightly friendlier / less statsây view for when users want to look at the full community. The problem is, defaulting to whatever order Discourse currently uses (account creation date?!) means that users are presented with something much less personable, e.g.
Apologies if Iâve missed some other way of fixing this issue, I couldnât find anythingâŚ
This theme component has potential issues with the upcoming Ember update:
[Admin Notice] One of your themes or plugins needs updating for compatibility with upcoming Discourse core changes (more info). Identified theme: âUser Card Directoryâ.
Thanks @md-misko! This should take care of it:
I would like to make it possible for users to select whether they are listed in the directory. Unfortunately, the âHide my public profile and presence featuresâ setting only hides info such as the bio, not the full entry for the user.
Iâve been banging my head against this for a while and so far I have come up with this diff:
This gets me really close! `user_fields[â3â] is a checkbox that users can select to opt-in to being included in the directory.
The only problem is the lazy loading on the directory page. It loads 50 users and I filter out any that donât have the box selected. But it wonât load any more until I start scrolling, even if there is only 1 users in the first 50 that have opted-in.
Is there a way to make this page load more than 50 users? Or perhaps to load more users right away instead of waiting for a scroll event?
Edit: This is quite a hack, but I have added a window.scrollBy(0, 5);
in that function before returning userCardInfos
. I donât love it, but it does cause the page to load more users.
Iâm using this with the redditish theme and the message button on the usercard does not work from android or iphones. All it does is delete the usercard from the list and no message box appears.
In order to message someone I have the click their username or profile picture to open their profile and then the message button works. Any ideas what is causing this issue?
I have users reporting the Message button broken on the cards as well.
Doesnât work table set.
If you need help or want to report a bug youâre going to need to include more detail. âDoesnât workâ is not a lot to go on.
If appears to be working just fine in the live Preview - https://discourse.theme-creator.io/theme/Discourse/user-card-directory
Not working properly in live preview
Do you have a screenshot, as I can confirm it seems all correct and âworkingâ as it should on my forum.