daath
(Lars)
March 13, 2016, 1:49pm
1
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!
daath
(Lars)
March 15, 2016, 11:12pm
2
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! 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 Likes
sam
(Sam Saffron)
March 16, 2016, 12:03am
4
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 Likes
techAPJ
(Arpit Jalan)
March 19, 2016, 5:17pm
5
Okay, we now have a howto for this:
Let’s say you want to add a link of User’s main profile page on Discourse user profile page and user card, clicking on that link will take user to main (external) website.
The link of main website user profile page will be like:
http://myawesomewebsite.com/user/USER_PROFILE_ID
Let’s get started!
Create a custom user field
Let’s create a user field with name User Profile.
[image]
Make sure “Show on public profile?” option is enabled.
The above field will store external user profile IDs.
A…
4 Likes
daath
(Lars)
March 19, 2016, 8:30pm
6
That is so cool How do I get the external_id-field from the SSO though? Your example seems to be an external ID that people input themselves…