Hello

I have done all the settings.

Country and states are displaying. When i changed country drop down states menu is disappearing and not displayed updated.

Please suggest.

Comments

johnhanley’s picture

Category: bug » support

If you followed the configuration instructions on the project page the module should perform as advertised.

The module only supports a primary and secondary country (US and CA respectively.) If the selected country is not one of these the states menu will disappear by design.

If you changed the ISO data in the database insure the structure is correct.

greywolfsspirit’s picture

I have discovered an incompatibility with the module and the newer jquery updates..(jquery_update-6.x-2.x-dev) The state field will not show up on new user creation and in the main user profile pages. Drop back to 6.x-1 branch of jquery update and it returns to a working state again. Just wanted to give a heads-up so that developer could look into the profile location module and make needed updates to it to correspond to the changes in Jquery Update.

johnhanley’s picture

Thanks for bringing this to my attention. I will investigate the issue and report back.

telnz’s picture

I am new to drupal and really trying to get an area/subarea at the registration process. I have looked at and tried several modules and profile Location seems to be the most relevant. Are you able to point me in laymans terms where to degrade the jquery update to get this working.

As I say I am a fairly experienced at php but just a few weeks into Drupal.

Kind regards

Terry

www.pds.net.nz

johnhanley’s picture

@telnz,

Firstly, welcome to Drupal. :-)

You only need to install the jQuery Update module if another third-party module requires it.

I haven't had time to investigate and confirm the above issue, but in the meantime Profile Location works perfectly fine with the version of jQuery included in Drupal.

telnz’s picture

Thank you . I can really see the potential in Drupal.

Please excuse my ignorance. My install I'm working on is at www.thedownloadstore.co.nz (and its setup on the registration). I have managed only to get the secondary country working.

Initially it was canada . however I went and changed the 10,11 lines in profile_location.module ( swapped the iso round ) so now it will display US but nothing else .
so I figure only the secondary is working only.

I was hoping to alter the iso's to allow me to put areas in instead of countries , and sub-areas in instead of states. eg north-shore / ( torbay nth , torbay sth , torbay central ect) , AUCKLAND / (central auckland, nth Auckland , wst Auckland )

johnhanley’s picture

As per the project page you need to update the database table with the correct ISO data for the primary and secondary countries. This task requires some basic database skills in order to prepare and import the data properly. Admittedly the module is mostly intended to be used as is (for US and CA), but I included instructions as a courtesy for those who are slightly adventurous.

telnz’s picture

Yes I did that, I created a north shore iso with abbrev NS and then a suburb in the other table and was able to get that working . But only after I changed the secondary field definition on line 11 of profile_location.module
I could then select "Northshore" from the dropdown and it would give me the one suburb choice . But no other options came up for any other country selection.

sorry I don't mean to be annoying :-) I appreciate your work.

johnhanley’s picture

I'm sure it's something minor. I'm happy to take a look if you dump the data from the profile_location_state table and attach the file.

telnz’s picture

Thanks for looking I hope you find a bug. Seems as though dependent dropdowns should be built into the core install.

johnhanley’s picture

I took a quick look at your data. Assuming you changed line 11 to 'AF' the state dropdown would be populated with 'Atestloc' (abbreviation 'zz') when selecting country 'Afghanistan' (ISO code 'AF').

That's all there is to it.

telnz’s picture

Thanks for looking . And yes that would be correct. I would take from this that it is not possible to have both canada and United States options working at the same time . And this is what I would require if I converted this for my requirements . - Thanks for looking , it seems this is such a necessary module. It would be great if it handled all the options at once , it would make it a very versitile module.

Thanks again Chandra

johnhanley’s picture

I don't understand. Profile Location by default works with both United States and Canada states/provinces. I would suggest you freshly install the original module and see how the module works by default before attempting to change it.

telnz’s picture

I have done several uninstalls fresh installs and cant get the thing to work. I wish it would .. believe me. Can you point me to a working instalation and I can test if it is just a mac thing . This sometimes can be the problem.

telnz’s picture

OK just did another uninstall and did a fresh DOWNLOAD of the file . I uploaded unpacked installed and it worked . Thank you for your time ... I guess I had a corrupted downloaded file.

johnhanley’s picture

Status: Active » Closed (fixed)

I'm glad to hear you got it working. I'll close this issue, but reopen it if you need further assistance (and it's related this problem).

telnz’s picture

Thanks Chandra. I did get it working but not for two countries at the same time . And besides I need this for all of the "country" options to have relative subsets and it does not seem to do that.