How to make user fields visible to all users

AI-generated summary

The discussion addresses how to display custom user fields (such as position, organization, and country) in a closed community forum. Valerie_Marcel asks how to make these fields visible on the users directory page instead of default metrics like likes or time spent.

simon explains that custom fields can be shown on the user card by checking ‘Show on user card?’ and on the public profile by checking ‘Show on public profile?’ when creating or editing fields in Admin > Customize > User Fields. However, he notes that displaying these fields directly on the main users directory page requires advanced customization not available via standard site settings. If the directory is not needed, it can be hidden by deselecting the enable user directory setting.

robmc confirms the location of these settings under Admin > Customize > User Fields. When asked for details on the required customization for the directory page, simon clarifies that this involves developing a plugin or theme component, suggesting users look for existing examples. Finally, singpolyma raises a separate question about making field visibility optional for individual users.

Hi,
we have a closed community forum (invite only). On sign up we ask users to provide position, organisation and country as well as interests (tags). How can we get those fields to be visible next to the usernames when users click on “users”? we want them to see who is on the platform, where they work and who is online at the time. We are not interested in seeing how many likes they got or time spent on the platform. Can this be adjusted?
(I am a new user so please explain this to me like I am complete idiot.)
Thanks!

Custom user fields can be displayed on the user card and the user’s summary page. To display a custom field on the user card, select the ‘Show on user card?’ checkbox when you create or edit a field. To display a custom field on the user’s summary page, select the ‘Show on public profile?’ checkbox when you create or edit a field.

To display these fields on the users page, for example https://meta.discourse.org/u would require a fairly advanced customization. The fields that are displayed on the users page cannot be adjusted through site settings. If the users page is not useful for your site, you can hide it by deselecting the enable user directory Site Setting.

Thanks very much Simon.
Quick question: where are those settings? (under what heading?)

To display a custom field on the user card, select the ‘Show on user card?’ checkbox when you create or edit a field. To display a custom field on the user’s summary page, select the ‘Show on public profile?’ checkbox when you create or edit a field.

Hi Valerie

If you go to your Admin dashboard, click on Customize and then User Fields and you will find the list

Regards

Robert

Simon, can you tell me what I should do to make this users page customization. I want to display user field on this users page.

Usually if I say something would require advanced customization what I mean is that I don’t know how to do it. Your best approach to figure out how to add custom user fields to the users directory would be to find an existing plugin or theme component that adds fields to the directory and then look at how it has been accomplished. I am not aware of any example code for this type of customization though.

What if we want showing a user field on your profile to be optional under the user’s control?