Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile fields for locations within a country


  • Kris35
    Participant

    @kris35

    Hi. In extended profiles, I can’t see a way to add (say) states to America and counties to the UK. I have added a drop down box for countries but is there a way in which a new registration when they clcik on their country, another option appears for them to select their region within the country they live in?

    Thanks,

    Kris

Viewing 5 replies - 1 through 5 (of 5 total)

  • 1a-spielwiese
    Participant

    @1a-spielwiese

    Yes, there should be a way, but I was not able to follow the instructions / to realise that way.

    The basic idea is:

    • Create two (or more) new WordPress user roles, e.g.: Users-UK and Users-USA.
    • Then you can assign one xProfile-field, ‘In which [federal] state do you live?’, exclusively to your users with the user role Users-USA; and another x-Profile, ‘In which county do you live?’, to your users with the user role Users-UK.

    The instructions for that solution you find there:

    https://buddypress.org/support/topic/resolved-different-profile-types-and-different-user-roles/

    (The user roles there are ‘bands’ and ‘fans’).

    And my report about my attempt to apply that instructions you find there:

    https://buddypress.org/support/topic/different-profile-types-and-different-user-roles-part-ii/

    My user roles are (sport) ‘teams’ and ‘fans’.

    But unfortunately, I was not able to hinder, that ‘fans’ get displayed the questions (xProfile-fields) for ‘teams’ was well; and the ‘teams’ the questions for ‘fans’…

    Further problem:

    Even if there is a solution regarding later profile edits – even complicate seems to be, to make already the registration page “input senstive”, because during registration the new user isn’t yet registered (i.e.: has no user role yet).

    Cfr. there:

    http://forum.wpde.org/buddypress/133961-registrierungsseite-umgestalten-anleitung-und-fragen.html (section 4. – unfortunately in German).


    1a-spielwiese
    Participant

    @1a-spielwiese

    A less elegant, but working solution regarding locations within states you can find on my registration page (section: ‘Profile Details – Teil III: Geographisches’):

    http://1a-spielwiese.de/registrieren/

    You can ask at first:

    • In which state (USA or UK?) do you live?
    • and then:

    • In which US-federal state respec. in which UK-county to you live?
    • and finally you can introduce the names of the federal states of the USA with ‘US-‘ and the names of the counties of the United Kingdom with ‘UK-‘.

    (You can ask this questions within the ‘base group’ of your xProfile fields – then they get displayed on your registration page automatically. Or you can make your further xProfile fields displayed on your registration page as well:

    https://buddypress.org/support/topic/reshaping-the-registration-page/#post-203615 [section 2nd].)


    Kris35
    Participant

    @kris35

    Hi @1a-spielwiese,

    Thanks for this. I had a look on your registration page where you have a few countries for members to select, but when I choose one, the same dropdown menu appears. Im not using any plugin at the moment – just the extended profiles in the components of Buddypress at the top of the list which includes checkboxes for activity streams, friend connections etc. I don’t want to use a plugin that hasn’t been updated in two years either.

    If I go to Users>Profile fields, this is where I was hoping to do this but the only way I can see to do it is to add, UK, then a list of counties. USA and then a list of states, and so on which would mean I would have a list a mile high of all the different countries and local areas.

    Am I missing something?

    Thanks a bunch,

    Kris


    1a-spielwiese
    Participant

    @1a-spielwiese

    I had a look on your registration page where you have a few countries for members to select, but when I choose one, the same dropdown menu appears.

    Yes, a better solution I do not have for the moment.

    the only way I can see to do it is to add, UK, then a list of counties. USA and then a list of states, and so on which would mean I would have a list a mile high of all the different countries and local areas.

    Yes – if you do not trust in the old plugins, which @noizeburger recommands:

    https://buddypress.org/support/topic/resolved-different-profile-types-and-different-user-roles/

    or trust in them, but find (like me) no way, to make them working as they should.


    Kris35
    Participant

    @kris35

    I would have thought this was something that would be really popular for a Buddypress site because finding people in certain areas is what a lot of social networks need. Im going to have a look at some BP sites and see what they are doing. There must be something for this surely – although seems not as am sure you ahve searched for yourself. Maybe need to get someone to code it for me. Thanks again, you put a lot of effort into trying to help me.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Profile fields for locations within a country’ is closed to new replies.
Skip to toolbar