XF 2.0 Country Field

docp

Member
Hello

What is the best way to have an extra field on users profiles for their country - and ideally a flag associated with this? I have done a search and have found a plugin in to do this by IP but I would like users to be able to select a country manually /

Thanks!
 
In ACP you can create custom user fields. Select type "dropdown" and create 150+ choices.

I imagine you can target each selection via css after the field is created. You then have to create 150+ css selectors in extra.less to match each selection and assign a country flag (or maybe there is a shortcut for that, I don't know).
 
Last edited:
Oh, i have had this for awhile now, i just cant work out away to save admins from copy and paste in the fields. I will add to XF once i work this out, if not i can give you a copy if you want to copy and paste the countries?

Mine requires 1 or 2 lines of css.

188244
 
  • Like
Reactions: sbj
Top Bottom