XF 2.0 Country Flags Using uploading to phpMyadmin help please

Jordyn

Well-known member
Hi guys, i have done a country flags for XF2, works fine. But im having trouble working out how admins can quickly add the custom fields without copy and paste the countries.

I want to use something like xf_user_field-field_choices to upload in phpmyadmin. My SQL looks something like this.
Code:
{"afghanistan":"Afghanistan","albania":"Albania","algeria":"Algeria","andorra"}

However, when i upload to a test board. it does fill out the fields, but doesn't work for some reason.
Can someone let me know if i am going the correct way about this please? Or help on if the code is actually correct.
I haven't messed with this for a few months, but i'll give it another crack today.

Thanks.
 
Top Bottom