여러 개의 사용자 지정 프로필 링크

(Not to be confused with the official component, “Custom Profile Link”)

Install this theme component

A component that lets you add customizable links to user’s profiles.

User Profiles:

User Cards:

Settings:

  • custom_profile_link_user_field_ids - a list of user fields to use for the external username fields
  • custom_profile_link_labels - a list of labels to use for the links, one per id in custom_profile_link_user_field_ids
  • custom_profile_link_prefixes - a list of url prefixes to use for the links, one per id in custom_profile_link_user_field_ids
  • custom_profile_link_orgs - a list of “organization” style links, following the format of label,id-of-name-field,id-of-url-field
  • custom_profile_link_debug_mode - enables some debug logs for the component, should you have issues with it

Notes:

  1. The lists for the settings custom_profile_link_user_field_ids, custom_profile_link_labels, and custom_profile_link_prefixes should all be the same length, potential to cause issues if they’re not.
  2. You can define duplicate ids in the custom_profile_link_user_field_ids field by adding underscores to the numbers for each duplicate entry.
  3. If you’d prefer to only have one link, with easier setup, you should use the official Custom Profile Link theme component.
9개의 좋아요

컴포넌트를 업데이트했습니다(discourse-gjs-codemod를 사용하여 .hbs.js 파일을 .gjs로 변환했습니다).
풀 리퀘스트가 검토되는 동안, 임시 포크와 gjs-migration 브랜치를 사용하여 테스트할 수 있습니다: GitHub - newbit1337/discourse-custom-profile-link at gjs-migration · GitHub 풀 리퀘스트가 승인될 때까지 해당 브랜치는 계속 유지됩니다.

newbit1337

2개의 좋아요