joebuhlig / discourse-social-links-clickable

make social links clickable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

discourse-social-links-clickable

make social links clickable on user cards theme component

Based on Conversation on Meta Heavily Inspired By & Copied From Namati User Card Profile Theme

Notes

  • Any users that don't include a value for an entry will not have the corresponding icon shown on their user card/profile
  • Instagram & Twitter & Youtube custom user fields only expect the user names (no "@" included), the name gets appended to the base URL, but will try to detect if the user puts in a URL as well.
  • I'd recommend making the Custom User Fields that will have icons NOT show on the User Card since it will then feel a bit redundant to have the text & the clickable icons. Just my opinion though, the theme does not automatically hide them.

Site Settings

Each custom field name entry should line up with what you call the customized user field in your discourse instance. By default the theme-component will expect the names to be as shown below, but you can of course change them. Strings are case-sensitive.

instagram_custom_field_name: 'Instagram'
twitter_custom_field_name: 'Twitter'
linkedin_custom_field_name: 'LinkedIn Profile'
youtube_custom_field_name: 'Youtube'

About

make social links clickable

License:Apache License 2.0


Languages

Language:HTML 87.5%Language:CSS 12.5%