Show location and custom user fields on user card

AI-generated summary

Users discussed adding custom user fields and location data to the Discourse user card, proposing it as a default feature when profile visibility is enabled. mcwumbly initiated the thread, referencing a similar request by tobiaseigen for displaying organization details. Falco confirmed they achieved this via a custom plugin using SSO, the outlet, and CSS. When mcwumbly asked if this should be a core feature, sam expressed support for including it in core, noting CSS could be used to suppress it if default behavior needs adjustment. mcwumbly then asked Falco if creating a Pull Request (PR) based on their plugin would be straightforward. Falco agreed, stating that while displaying values is simple, the CSS is tricky, and committed to submitting the PR that week. HAWK and downey expressed strong interest and gratitude for the upcoming change. Additional suggestions included integrating Google Maps (Rodelio_Lagahit) and displaying location and custom data directly under the user icon (sarafina).

It’d be nice if there were an option to show custom user fields and location on the user card.

I’d go so far as to say it should be the default if they are filled out and the ‘show on public profile’ option is chosen.

@tobiaseigen, you had a similar request earlier:

Were you able to achieve any of this with a plugin yet?

4 إعجابات

I have done exactly this at my instance with a simple plugin. SSO fiils in employee location and position as custom fields and I use the outlet and some CSS to position it on my user-card.

6 إعجابات

Would this be a welcome PR into core? Or is it something that should remain in a plugin?

I am fine to have this in core, if we want it default off we can suppress via CSS.

3 إعجابات

@Falco would it be straightforward to create PR based on your plugin?

This is something that I’m also very keen on, for a couple of communities.

I guess so! Showing the values is very simple, the CSS is a bit tricky.

I will submit the PR this week.

5 إعجابات

Thanks so much for doing this! It will be really valuable for us.

google maps integrated would be cool to look at it. :smiley:

إعجاب واحد (1)

My users are asking for two profile fields to show under the icon (location, custom data)

This would be right under the icon next to posts.

Having this info on the user card would be almost as good. Is this rolling out anytime soon or more an ‘in the works’ deal?

Thanks!

Please continue discussion (which is nearly concluded) here: