Bandiere Nazionali

Yep, it’s fixed :+1:

Really great to see the improvements made here, everyone.
Really awesome!

Click on mobile? Where is this again?

You’re close! Click Edit CSS/HTML, editing the mobile styling is one of the tabs in there.

4 Mi Piace

Jeff Thanks for updating did you find it Dylan?

Is it possible to use that plugin with other images except flags?

Solution: It is possible to edit flaglist.js.es6 file

{
      "name": "fo",
      "value": "fo.png"
    }

How you can add string variables? What is the user-inputted location?

Solution: I forked plugin repo and customize for my purpose. It seems work.

With that fix, the flag is displayed to the left of the user’s name. How do I move it to the right of the name?

2 Mi Piace

I was added “url” to that component in flaglist.js.es6 file:

{
      "name": "name",
      "value": "name.png",
      "url": "name-link"
    }

How can I print the URL value in show-user-card.hbs?

{{model.custom_fields.nationalflag_iso.url}}

Nice plugin indeed!

I have problem, when i go to user options, and select flag…click SAVE, when i refresh it wont save it it goes back to default.

Any clue why? :slight_smile:

p.s. i did full system and discourse backup this morning, could that be the problem?

Thanks

This was caused by a recent change in Discourse. It will require a small change to the plugin to fix the problem.

@Ebs I have made a pull request on your repository with the change: FIX: Update for changes to Discourse core by davidtaylorhq · Pull Request #3 · Ebsy/discourse-nationalflags · GitHub

4 Mi Piace

Thank you i was confused :slight_smile: @david

Merged. Thanks a lot!

3 Mi Piace

Problem solved, i can save national flag now!

Thanks @david and @Ebs

Small issue regarding style/alignment with the mobile view of discourse. The national flag seems to be stretched vertically and is aligned above the username. Would it be possible to move the alignment of the icon to the right of the username/title (to coincide with the respective placement on the desktop view) and fix the distortion?

Desktop:

Mobile:

Please note that the only thing that was done was clicking on the view toggle link in the hamburger menu.

1 Mi Piace

I second this. Please help, looks ugly on mobile..

Thought it was about time I fixed it :smiley:
Just updated the plugin. flag is now after the username on mobile (and not stretched anymore) :+1:

3 Mi Piace

Ciao Neil @Ebs,

Come discusso, ho inviato una PR per aggiungere alcune funzionalità extra al tuo fantastico plugin!

Anteprima:

Descrizioni in lingua naturale e ricerca

Sostituzione dei codici: questi vengono comunque utilizzati dal codice, tra l’altro, ma sono nascosti:

:arrow_right:

Supporto per il plugin Custom Wizard

Se utilizzi entrambi i plugin, potrai includere un passaggio di aggiornamento della bandiera nel tuo Wizard, ad esempio per completare il profilo di nuovi o esistenti utenti.

Alcune cose da considerare

Ci sono alcune descrizioni per i codici non standard che devono essere corrette nel file .yml. Lascio questo compito a te, dato che sai cosa significa ciascuno di essi :).

La struttura è ora pronta per l’aggiunta di testi di localizzazione in lingue diverse dall’inglese.

Fammi sapere se hai commenti.

Fammi sapere quando hai fuso la PR, poiché dovrò rilasciare un aggiornamento di Custom Wizard poco dopo.

@angus

7 Mi Piace

Per tua informazione, ho spinto un piccolo aggiornamento per migliorare il codice (grazie per i suggerimenti @angus)

4 Mi Piace

Grazie per l’unione, @Ebs.

@Vikas_Dangi, ora il menu a tendina utilizza le descrizioni.

3 Mi Piace