FriendsOfFlarum / user-directory

The permission based public user directory extension for your Flarum forum.
https://discuss.flarum.org/d/5682
MIT License
22 stars 20 forks source link

Display discussion count and post count on user card #40

Closed askvortsov1 closed 2 years ago

askvortsov1 commented 4 years ago

When on the user directory page, we should display metadata such as the discussion count and post count on the user card.

clarkwinkelmann commented 4 years ago

That would make sense.

I believe this can already be done. All User Directory does is use the UserCard component. Any extension can extend that component and make changes. It's possible to know when the card is shown under the directory by the className prop.

Ralkage commented 3 years ago

I would still like to add this feature some time in the near future!

@askvortsov1 given that we have https://github.com/FriendsOfFlarum/user-directory/issues/57 open, would it make sense to at least have icons represent these counts instead of Discussions: {count} and Posts: {count}? Not sure which icons would fit for both of these attributes to distinguish between the two.

imorland commented 2 years ago

Added in https://github.com/FriendsOfFlarum/user-directory/pull/92