I am trying to create a dropdown list for cities like there is for countries. Has anyone accomplished this already or can someone let me know where I can find the code for Country so I can try to duplicate then modify it. I am very much a newbie to all of this so please accept my apologies if I seem a bit ridiculous. |
I would like this as well... Any updates? |
This is done through the predefined values. Go to admin, then click on builders, then predefined values. There you can create a list of cities for a drop down list; then you add it the the form using #!List_name; for example #!cities.
See: http://www.boonex.com/trac/dolphin/wiki/DolphinAdminPredefinedValues
and: http://www.boonex.com/trac/dolphin/wiki/DolphinAdminProfileFields
Geeks, making the world a better place |
How much of a newbie? Those links I published might not give enough details for you; you might need a tutorial on this. Geeks, making the world a better place |
So there is not a pre made list of cities? We will have to create the list of cities? |
So there is not a pre made list of cities? We will have to create the list of cities?
Uh, yeah. There are a lot of cities, I am guessing you want the major ones in the US from each state; other countries may be major ones from each county; if the country has those or from the providences etc.
You may could find city lists out on the net, then you can create the predefined value using a mysql query like the Professor did here; http://www.boonex.com/forums/#topic/Predefined-List-for-States-.htm
Geeks, making the world a better place |
That's going to be one bigass list skippy. To well cover the US alone, you'll have a list of about 30,000 cities and towns. To cover the entire planet, the list will grow to hundreds of thousands. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
so much to do.... |
so much to do.... |
RE
It's a 18MB php file
There's a good reason no websites have a drop down list for cities when you sign up. It's probably a good idea to trust that people know where they live, and just have them type it in. For those that don't know where they live, it really doesn't matter, because they won't remember even joining your site a day afterwards.
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
RE
It's a 18MB php file
There's a good reason no websites have a drop down list for cities when you sign up. It's probably a good idea to trust that people know where they live, and just have them type it in. For those that don't know where they live, it really doesn't matter, because they won't remember even joining your site a day afterwards.
Theres a good reason to use a dropdown in some cases. Cuz people might use NewYork or New York etc.. you can't trust the user if you have some critical city based filtering or something.
And a sensible person will make the dropdown with automatically populated values on your selection
"country -> states -> city"
so much to do.... |
RE:
And a sensible person will make the dropdown with automatically populated values on your selection
"country -> states -> city"
We're not talking about a simple list anymore. The first list you posted, had about 25,000 cities in the US. That's an average of 500 cities per state... in the thousands for larger states. You'd need to narrow that list in real time using additional user input or zip code.
It would make much more sense to use a geolocation api. Do you really think there are any "mission critical" Dolphin sites around here? 98% of people around here are porn site wannabes or are working on one of those 800,000 Dolphin dating sites.
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
RE:
And a sensible person will make the dropdown with automatically populated values on your selection
"country -> states -> city"
We're not talking about a simple list anymore. The first list you posted, had about 25,000 cities in the US. That's an average of 500 cities per state... in the thousands for larger states. You'd need to narrow that list in real time using additional user input or zip code.
It would make much more sense to use a geolocation api. Do you really think there are any "mission critical" Dolphin sites around here? 98% of people around here are porn site wannabes or are working on one of those 800,000 Dolphin dating sites.
Ooooh, I'm amongst the 2%, yippee
Would it not be possible & easier to simply add the default Location block to the sign up page as a required field?
|