• Resolved i1100a

    (@i1100a)


    I modified the class.signaturelist.php file to change the markup for the countries and show a little flag next to it (using https://github.com/lipis/flag-icon-css)

    However, users have been inputting their countries in different languages and thus breaking my little function (I have a switch/case to get the country name and transform into the two-digit country code needed for the flag)

    I’d like to change the country field to be a select element rather than a text field and this way control the input and have it standardized.

    Since this change may affect other functions for the plugin and I don’t want to break it (we’re live now)

    Woud you be kind enough to show me where to do these modifications?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author SpeakOut!

    (@123host)

    Hah! I didn’t realise that the country list wasn’t loading properly.

    The list of countries is included, you can see them if you look at the source code. But using <datalist> is the wrong way to go about this as it allows people to add their own text in the country field rather than choosing from the list.

    Decision: Should the value passed be the country name e.g. Australia or the country code e.g. AU?

    Plugin Author SpeakOut!

    (@123host)

    @i1100a can you please contact me through https://SpeakOut.123host.net.au/contact to discuss including your code for displaying flags in the plugin.

    Plugin Author SpeakOut!

    (@123host)

    This is now implemented in 1.21.0 plus displaying country flags in the signature list.

    Thanks for the feedback, it helped me find a bug I didn’t realise was there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Country select instead of field’ is closed to new replies.