Location on registration: How To Add List of Countries

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Ideas Centre
Post Reply
User avatar
Exclusive
Registered User
Posts: 86
Joined: Mon Jun 25, 2018 1:33 pm
Contact:

Location on registration: How To Add List of Countries

Post by Exclusive » Sun Aug 05, 2018 5:39 am

Is there a way to give registrants a drop-down box containing a list of countries, rather than an empty input box?

"(I realize users could choose a country, and then immediately go to the UCP and manually change their country to a non-country.)"
Use Search Button to get Instant Results | Follow Forum Rules
Avoid Spams in the forum to prevent banning the offending account. | Visit My Website!

User avatar
david63
Jr. Extension Validator
Posts: 14646
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Location on registration: How To Add List of Countries

Post by david63 » Sun Aug 05, 2018 6:09 am

You cannot add a list to the existing Location CPF as you cannot change the field type but if you use this extension (viewtopic.php?f=456&t=2327001) you can add a dropdown box type field - obviously you will need a list of countries to enter into the configuration, but that is easily found via Google.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Exclusive
Registered User
Posts: 86
Joined: Mon Jun 25, 2018 1:33 pm
Contact:

Re: Location on registration: How To Add List of Countries

Post by Exclusive » Mon Aug 06, 2018 10:09 am

Thanks, I've succeeded in doing that! I got all the list of 195 countries, I edited them and want to share so someone else won't get stressed out next time.....!

Select Country

Code: Select all

Afghanistan
Albania
Algeria
Andorra
Angola
Anguilla
Antigua & Barbuda
Argentina
Armenia
Australia
Austria
Azerbaijan
Bahamas
Bahrain
Bangladesh
Barbados
Belarus
Belgium
Belize
Benin
Bermuda
Bhutan
Bolivia
Bosnia & Herzegovina
Botswana
Brazil
Brunei Darussalam
Bulgaria
Burkina Faso
Myanmar/Burma
Burundi
Cambodia
Cameroon
Canada
Cape Verde
Cayman Islands
Central African Republic
Chad
Chile
China
Colombia
Comoros
Congo
Costa Rica
Croatia
Cuba
Cyprus
Czech Republic
Democratic Republic of the Congo
Denmark
Djibouti
Dominica
Dominican Republic
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Ethiopia
Fiji
Finland
France
French Guiana
Gabon
Gambia
Georgia
Germany
Ghana
Great Britain
Greece
Grenada
Guadeloupe
Guatemala
Guinea
Guinea-Bissau
Guyana
Haiti
Honduras
Hungary
Iceland
India
Indonesia
Iran
Iraq
Israel and the Occupied Territories
Italy
Ivory Coast (Cote d'Ivoire)
Jamaica
Japan
Jordan
Kazakhstan
Kenya
Kosovo
Kuwait
Kyrgyz Republic (Kyrgyzstan)
Laos
Latvia
Lebanon
Lesotho
Liberia
Libya
Liechtenstein
Lithuania
Luxembourg
Republic of Macedonia
Madagascar
Malawi
Malaysia
Maldives
Mali
Malta
Martinique
Mauritania
Mauritius
Mayotte
Mexico
Moldova, Republic of
Monaco
Mongolia
Montenegro
Montserrat
Morocco
Mozambique
Namibia
Nepal
Netherlands
New Zealand
Nicaragua
Niger
Nigeria
Korea, Democratic Republic of (North Korea)
Norway
Oman
Pacific Islands
Pakistan
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Poland
Portugal
Puerto Rico
Qatar
Reunion
Romania
Russian Federation
Rwanda
Saint Kitts and Nevis
Saint Lucia
Saint Vincent's & Grenadines
Samoa
Sao Tome and Principe
Saudi Arabia
Senegal
Serbia
Seychelles
Sierra Leone
Singapore
Slovak Republic (Slovakia)
Slovenia
Solomon Islands
Somalia
South Africa
Korea, Republic of (South Korea)
South Sudan
Spain
Sri Lanka
Sudan
Suriname
Swaziland
Sweden
Switzerland
Syria
Tajikistan
Tanzania
Thailand
Timor Leste
Togo
Trinidad & Tobago
Tunisia
Turkey
Turkmenistan
Turks & Caicos Islands
Uganda
Ukraine
United Arab Emirates
United States of America (USA)
Uruguay
Uzbekistan
Venezuela
Vietnam
Virgin Islands (UK)
Virgin Islands (US)
Yemen
Zambia
Zimbabwe
Thanks! 8-)
Last edited by KevC on Mon Aug 06, 2018 10:12 am, edited 1 time in total.
Reason: code tags added
Use Search Button to get Instant Results | Follow Forum Rules
Avoid Spams in the forum to prevent banning the offending account. | Visit My Website!

User avatar
</Solidjeuh>
Registered User
Posts: 956
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Location on registration: How To Add List of Countries

Post by </Solidjeuh> » Mon Aug 06, 2018 8:38 pm

Wij promoten UW muziek in ons forum & delen alles via Sociale media!
Muziek wordt ook toegevoegd in de playlist van
textradio.be!
Mail uw single + hoesje + info naar: info@muziekpromo.net of Solidjeuh@textradio.be
===============
Onze Website: https://www.muziekpromo.net

User avatar
Exclusive
Registered User
Posts: 86
Joined: Mon Jun 25, 2018 1:33 pm
Contact:

Re: Location on registration: How To Add List of Countries

Post by Exclusive » Mon Aug 06, 2018 11:21 pm

Froddelaar wrote:
Mon Aug 06, 2018 8:38 pm
Or use this ext :roll:
https://www.phpbb.com/customise/db/exte ... nal_flags/
I was about asking for this too, but can I use them both?
Last edited by Exclusive on Tue Aug 07, 2018 1:54 am, edited 1 time in total.
Use Search Button to get Instant Results | Follow Forum Rules
Avoid Spams in the forum to prevent banning the offending account. | Visit My Website!

User avatar
</Solidjeuh>
Registered User
Posts: 956
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Location on registration: How To Add List of Countries

Post by </Solidjeuh> » Tue Aug 07, 2018 12:16 am

Exclusive wrote:
Mon Aug 06, 2018 11:21 pm
Froddelaar wrote:
Mon Aug 06, 2018 8:38 pm
Or use this ext :roll:
https://www.phpbb.com/customise/db/exte ... nal_flags/
In was about asking for this too, but can I use them both?
Yes you can
Wij promoten UW muziek in ons forum & delen alles via Sociale media!
Muziek wordt ook toegevoegd in de playlist van
textradio.be!
Mail uw single + hoesje + info naar: info@muziekpromo.net of Solidjeuh@textradio.be
===============
Onze Website: https://www.muziekpromo.net

Post Reply

Return to “Extension Requests”

Who is online

Users browsing this forum: No registered users and 11 guests