This topic has 5 replies, 4 voices, and was last updated 10 years by Abe.

  • Author
  • #5022
     agentsrr
    Participant

    How do you add states easily to the user profile fields? like countries.

    Thanks

    #5054
     SQadmin
    Keymaster

    You can take a look on how we generated them in sweetdate/custom_buddypress/bp-functions.php lines 286 – 509

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #9075
     Azerty514
    Participant

    Hi Robert,

    Can you provide me stp more information about this, I would also like to add states to the united states and canada.

    thank you

    #9172
     Abe
    Keymaster

    Hello,
    You can add the states as dropdown from the admin menu Users – Profile fields but it will be a huge job to add all states manually. Other thing is that they won’t have any relation to the country.
    To have states depend on the country selected you need to develop a Javascript solution. It is not an easy job so you probably will need help of a developer from microlancer.com or similar.

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #9202
     Azerty514
    Participant

    ah ok, thank you Abe for the info, Another question, the list of countries from the http://www.geonames.org, is it possible to:

    – Easily translate into French?
    – Remove a few countries in the list?

    #9257
     Abe
    Keymaster

    Hi, I don’t think they have localized names. You can search on their site maybe you find some info on that.
    This is the file responsible for the integration of geonames: wp-content/themes/sweetdate/custom_buddypress/kleo-bp-city-auto.php

    You have a list of countries at the end, try to remove them from that array

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?