Custom user fields and presentation on profile (and popup)

AI-generated summary

User daath inquired about adding a link on profile pages and popups that directs to their main site using an external ID from SSO, without relying on plugins that might break during updates. They also sought to make existing custom user fields, such as Twitter handles, clickable. daath emphasized the strong need for a native solution to link profiles to external sites via external IDs. codinghorror noted this is a common request and suggested techapj write a guide, with sam agreeing to assist while stressing the solution must use site customization rather than plugins. techapj subsequently shared a how-to guide for linking custom user fields to external websites. However, daath questioned how to retrieve the external_id field specifically from SSO, as the example appeared to use manually entered IDs. techapj clarified that the answer regarding SSO external_id retrieval was provided in a follow-up comment within the same guide.

I’ve set my forum up with SSO - works great!

My main concern right now, is that I would like to have a new link on the profile page, and the profile popup - I would like to link back to the main site with the external ID - how do I go about doing that without breaking Discourse when I update (which I do almost every day).

I also have a couple of custom user fields, and they show up ok. Like twitter handle, for instance. However, I would like to make a link out of the handle.

Are there any examples of anything of the above?

Thanks! :slight_smile:

Noone links back from their profile page to their main site?

I’d really love a way to link from a user’s forum profile page to the main site using the external ID! :slight_smile: Any hint? Experience?

Yes, this comes up a fair bit.. @sam was working with another trial that needed this. Perhaps @techapj could take this and write up a howto @sam?

3 Mi Piace

Sure, we may need add a few outlets, not sure but totally fine for @techAPJ to take this, I can help guide him.

Critical thing is that we want the example not to require any plugins, so needs to be done via a site customization.

4 Mi Piace

Okay, we now have a howto for this:

4 Mi Piace

That is so cool :smiley: How do I get the external_id-field from the SSO though? Your example seems to be an external ID that people input themselves…

Answered here:

2 Mi Piace