vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   best way to capture country/city on registration (https://vborg.vbsupport.ru/showthread.php?t=325831)

DaveHe 12-01-2017 02:40 PM

best way to capture country/city on registration
 
hi all-

We want to capture the country and city of each user as they register, and we want to try and keep it as clean as possible because this data will be super useful for us in the future. Is there a best or standard way to create a dropdown that has all countries in it? I think it's not practical to do that for cities, but maybe there is some best practice for that too??

Any thoughts much appreciated!

thanks!!:)

In Omnibus 12-01-2017 03:12 PM

The standard way would be to place the countries in a custom profile field but a profile field won't allow for 195 options. You'd need to break them up by continent or region or some other way.

Seven Skins 12-01-2017 05:42 PM

Custom profile field can accommodate 195 county drop down.

I tested this on...
Apache: 2.4.29 MySQL: 5.7.20 PHP: 7.1.11

noypiscripter 12-01-2017 11:23 PM

Adding cities would be too much information in my opinion. Some users would probably be hesitant to enter that info.

In Omnibus 12-03-2017 01:08 AM

Quote:

Originally Posted by Seven Skins (Post 2591368)
Custom profile field can accommodate 195 county drop down.

I tested this on...
Apache: 2.4.29 MySQL: 5.7.20 PHP: 7.1.11

It can but it's poor design to ask members to scroll through that many options, especially on a mobile device. I tested this as well and it took at least eight scrolls to go from #1 to #195.

It's an option but probably not a good option. :)

noypiscripter 12-04-2017 01:35 PM

Perhaps it would be nice to dynamically determine their country based on their IP address and then preselect the country in the dropdown? Not a perfect solution but in most cases it would get the country right.

DaveHe 12-04-2017 04:13 PM

Because of our subject matter, the country that a user comes from is really important. So, maybe having a huge dropdown for them to deal with during registration would be ok. Actually, I think we could probably get away with a huge city dropdown if such a thing were possible!


All times are GMT. The time now is 10:06 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01013 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete