사용자 카드 디렉터리

:discourse2: 요약 User Card Directory/u 사용자 디렉토리를 통계 테이블 대신 사용자 카드 그리드로 표시하도록 변경합니다.
:eyeglasses: 미리보기 Discourse Theme Creator에서 미리보기
:hammer_and_wrench: 저장소 링크 https://github.com/discourse/discourse-user-card-directory
:open_book: Discourse 테마를 처음 사용하시나요? Discourse 테마 사용 가이드

이 테마 컴포넌트 설치

기능

설정

이름 설명
hide current user 현재 사용자를 그리드에서 항상 숨김
show stats 각 사용자 카드 아래에 통계 표시
default view
번역 기본값
show_cards 카드로 표시
show_table 테이블로 표시

크레딧

이 작업을 영감 준 discourse-biobook에 대해 @joebuhlig에게 큰 감사를 드립니다. 또한 이 작업을 가능하게 하기 위해 필요한 다양한 코어 개선 사항을 제안해 주신 @angus, @fzngagan, @alxpck에게도 감사드립니다.


:discourse2: 우리가 호스팅을 하고 계신가요? 테마 컴포넌트는 Standard, Business, Enterprise 플랜에서 사용 가능합니다.

91개의 좋아요

Great. Very delighted to see this one launched.

7개의 좋아요

I love it. Thank you.

1개의 좋아요

Nice! The only weirdness I’m seeing is the website is showing twice on my site Nature Photographers Network

4개의 좋아요

Excellent component!

Perhaps similar to the duplication that David mentioned, the location is shown twice when the Discourse Locations plugin is used.

The first line in the screenshot above is from the Discourse profile location. The second is from the Locations plugin.

3개의 좋아요

Thanks @omarfilip and @davidkingham. Looks to be a slight incompatibility with the locations plugin. Should be resolved now

BTW @davidkingham your /u page is blank for anonymous visitors… not sure exactly why - but I guess it is one of your plugins and/or themes.

9개의 좋아요

This component doesn’t seem to work properly on the latest stable release … I don’t see any of the details on the user cards:

(That’s the Vincent theme shown, but I also tested it on plain vanilla Discourse with the same results.)

1개의 좋아요

Yes, unfortunately it’s only compatible with the latest tests-passed version of discourse

8개의 좋아요

Ah, ok! Thanks for the clarification! (I missed the note about it in the OP :man_facepalming: )

4개의 좋아요

Thanks this is beautiful and something I’ve been thinking about for a while. I know this is a theme component so not sure it changes any functionality, but asking anyways. Does this happen to enable users to search each other by their attributes?

For instance if a custom attribute for users is University Attended and a user wanted to find everyone who went to a particular school could they search for Stanford and have all the users pull up here? I saw this link that seemed to maybe imply that but having trouble interpreting it.

might be out of the scope, but i found this post linked on another one that seemed to be headed down that route.

Thanks & awesome work!

7개의 좋아요

Hi @weallwegot,

Unfortunately not, this doesn’t add the ability to filter users by their metadata. It does add a group dropdown, so maybe that could work for you? You could have groups for each university, people could join those groups, and then they would appear in the dropdown

5개의 좋아요

Awesome Theme Component - Though will need to wait for Discourse 2.5 roll out.

3개의 좋아요

Hi, David
i have a confusion, when i use search or select a group, my personal user card always shows, whether i am in the group or not in.
can you help me,
how to remove my card if i’m not in the select group or i’m not the search name.

2개의 좋아요

Ah okay. I see. I meant this link and @fzngagan’s PR, but i see it was declined.

The only thing with the groups approach you mentioned is I think it would put a lot of manual onus on the moderators/admin of the forum to put people in groups as they join or worse, as they update their profile.
I’m trying to think of a workaround. Perhaps if there was a way to automate the segmentation of users into groups by a custom attribute, dropdown though so its exact matches? Curious if you know of anything like that.
I’ll look around.

4개의 좋아요

nice presentation, it’d be great if one could switch between different displays: grid and table.

also the “filter by group” string can not be translated. may you fix it?

2개의 좋아요

@david

I setup your component on my local setup and results are amazing. Appreciate the efforts.

I noticed there’s a hidden site setting enable_new_user_card_route but it doesn’t seem to change the results here. Is the setting required for anything here?

2개의 좋아요

Nope, that setting is not required for this. It changes the route used for “normal” user cards, so that they’re much more efficient. We’ll be changing the default to true in the next few weeks.

I’ll update in this topic when it’s done: Changes to the user card data source

7개의 좋아요

We are running the master, which says it is even with tests-passed, but I am still having the problem with missing details on the cards, just as on the screenshot @cjk77 posted. Do we need to switch to tests-passed to get this working?

1개의 좋아요

You shouldn’t run master in production - it sometimes contains commits which have not yet passed continuous integration tests. tests-passed is much safer, and only a few minutes behind.

But yes, this theme should work on master. Can you share a link to your site so I can take a look?

5개의 좋아요

Thanks David. Our site is at connect.arival,travel.

2개의 좋아요