National Flags

Open source does not mean free. That’s all I’m saying.

Maintenance of the official plugins is paid for by hosting revenue.

If someone wants these features badly enough and they lack the skills but have a budget they know what to do …

4 likes

Only from some US perspective. Globally, or even by USA itself, they aren’t. Just saying in the meaning if some library is for independent countries there should be only star and stripes, nothing else. Same with union jack and England, Wales and Scotland. Or Germany and its states. Of Swizerland and its cantons. That list is really big, and some (political) opinion from the States should not change principals…

Sure, can be library for all US-states too. And other for all possible flags in the world.

4 likes

3 posts were merged into an existing topic: Plugin to raise money to enhance plugins

Thanks for the replies.

2 likes

Is possible to unify this plugin with the default ‘region’ field that users fills?

We don’t need two fields with the same data, it leads to confusion.

You can fork it and do whatever you like

(I have no idea if the data will map (sic) nicely, but there are likely to be more flags than regions?)

The plugin deliberately supports the ISO flag set.

3 likes

Taking a look at Region vs flags. It is the opposite

Ie Where I am, Canada for Flag.
Region Divides Canada

  • Canada_bc
  • Canada_ns
  • and so on

The region starts with country and then a short code for things like province (Canada) and the USA would use states short codes.

3 likes

I see, then I will try to disable regions because I found national flags more useful for our approach.

We don’t ask more data than basics and flag icons seems to add value to the engagement and relationships built between our members.

4 likes

I can’t quite follow all of this, but since it uses decorateWidget, it’s broken, right? So should someone add the broken tag?

3 likes

I don’t think that’s currently a fair status:

which suggests the functionality is not yet formally deprecated and the target API is not ready, so I would say, no this is not yet broken

But I would agree it soon will be if there is no plan.

4 likes

Indeed, decorateWidget is still a current/supported API for customizing the post-stream. We’re still working on modernizing that part of the UI.

We hope to get an upgrade path published in the next few weeks, which will follow a similar process to the recent post-menu and topic-list upgrades. We’ll have deprecations, warnings for admins, an automatic feature flag, and lots of time for theme and plugin authors to make the necessary changes.

6 likes

As of my update to Discourse 3.5.0.beta9

[Admin Notice] Plugin ‘discourse-nationalflags’ contains code which needs updating. (id:discourse.post-stream-widget-overrides) (learn more)

That post looks like it has a lot of detail for the mentioned upgrade path for decorateWidget.

4 likes

Any update on the update. Our site recently did a full update and we lost the flags. How are we supposed to be parochial if we can’t make assumptions based on someone’s location.:laughing:

2 likes

Waiting also for that update, it breaks the User Field TC.

1 like

Since @Ebs hasn’t visited meta since March (as of this writing), I’m guessing that he might no longer have interest in maintaining this plugin, though it would be nice to have a notice of deprecation if so.

I suspect that someone else might have to make a maintained fork for us to continue to have our national flags show, and otherwise we’ll just have to quit using this one. :sob:

One of the things not present in Upcoming post stream changes - How to prepare themes and plugins is how to find the plugin outlets to use to replace decorateWidget. It’s probably not a big change, but as a backend developer I didn’t find the instructions sufficient to fix it easily myself. (I am not the target audience! This does not imply a fault in the instructions.)

1 like

Yes waiting fo the update too, should the “broken” tag be applied to this plugin ?

Thanks all for reporting this no longer works – I’ve added the broken tag. A new fork and maintainer would be great, I’ll try to have a look myself if no one else rises to the occasion.

5 likes

Omg that whomped

It’s all quite old and I didn’t commit to improving it more in-depth, but at least here’s a (somewhat) glimmified and at least functional fork:

I also changed the dropdown to show the full country names, as requested here.

Let me know if this works well! I sure hope so :sweat_smile:

(Should I make a new topic for it maybe?)

Edit: Made a new topic, cause otherwise the broken tag here will be confusing.

5 likes

@chapoi I’m curious - was there a reason why you left user-nationalflags-preferences.js.es6 as an es6 file instead of just js?

Thank you! :heart:

Your fork works for me.

  • I see the national flag displayed in my profile
  • I see the national flag on my posts
  • I am able to edit the national flag in my profile settings
3 likes