국가 깃발 (포크)

:information_source: This is a fork of National Flags (which no longer seems to be maintained) and is mainly an updated version to make it work with the latest glimmer/ember/discourse demands.

It’s therefor almost functionally identical, with only some small changes (see below).

I don’t want to hijack the original topic, in case the author comes back :slight_smile:


:information_source: Summary Shows a country flag next to the username on posts and on the profile.
:hammer_and_wrench: Repository Link GitHub - chapoi/discourse-nationalflags: National Flags plugin for Discourse · GitHub
:open_book: Install Guide How to install plugins in Discourse

Features

After installing and enabling in admin/plugins, users can find a new custom setting called ‘National Flag’ on their /preferences/profile` page.

After selecting a country from the dropdown, the flag image will be displayed alongside their name in topics and on their user profile.

Configuration

Just needs enabling.

To migrate from the original plugin, change Ebsy to chapoi in the line in your containers/app.yml that installs this plugin, and rebuild your site.

Settings are retained. (thanks to @mcdanlj for testing)

UX differences with original plugin

  • Flag renders a bit smaller on posts: it’s now set to the font-size, instead of fixed value
  • The setting dropdown shows full country names, instead of ISO codes
  • The Wizard setup is no longer present. (I’m not sure if it ever worked, but I think it’s best to keep this type of detai setup in a later phase instead of onboarding)
14개의 좋아요

Thank you again for doing this! I was sad to think of losing this plug-in, and really appreciate the ability for my community to help each other know some reasonable expectations from the flags.

Might want to PR what you have now to Ebsy from a branch in case he comes back, but now that you have posted this separately on your branch, change your README to reference your repository in the install instructions?

4개의 좋아요

Oh good point will do.

And youre welcome! :hugs:

4개의 좋아요

업데이트 감사합니다. 원래 구버전 플러그인에 버그를 보고하려고 했었거든요.. :heart_eyes:

다만, 플러그인을 확장하여 다른 유형의 국기 세트를 추가할 수 있게 하는 것도 흥미로운 아이디어일 것 같습니다.

예를 들어 주(캐나다)나 주(미국)의 경우, 카운티/시청/시 기호를 위해 이와 같은 것을 사용하고 싶어 할 수 있습니다.

비슷하게, 주 또는 도의 기호도 가능합니다. 국가 기호 대신 사용할 수 있는 대체 필드 텍스트를 가진 다른 기호 세트를 업로드할 수 있는 아이디어도 좋을 것 같습니다.

1개의 좋아요

5개의 게시물이 기존 주제에 병합되었습니다: Locations Plugin :earth_africa:

유지보수해 주셔서 감사합니다. 정말 멋진 기능입니다 :slight_smile:

이것이 의도된 동작인지, 아니면 플래그 표시가 사용자 제목과 정렬되어야 하는지 궁금합니다.

기뻐요.

어떤 정렬을 말씀하시는 건지 잘 모르겠어요.

아, 죄송합니다. 사용자 이름이나 사용자 제목 옆에 국기를 표시하는 것이, 별도의 독립된 필드로 ‘단독으로’ 표시하는 것보다 더 합리적이라고 생각합니다.

저는 Horizon을 사용 중인데, 이 테마나 제 특정 인스턴스와 관련이 있을 수도 있습니다. 후자라면 죄송합니다 :slight_smile: