View Full Version : Drop down box options
When they sign up or choose their country is there a way we can make the default the US? I'm sure there is, I just don't know how to do it...Thanks :)
natio :: phpFox
09-21-2005, 03:34 AM
Content visible to registered users only.
Yup, there is.. I cant add the signup page to download cause i dont know what version of update you have for the signup page, but i can show you the steps on how it can be done. This will require minimal knowledge of php.
1. Open "/signup/index.php".
2. Go to line 210 (This may vary on the update version)
3. Look for this code:
Content visible to registered users only.
That is the code to display the list option for the countrys/location.
4. Simply replace that code with this:
Content visible to registered users only.
Once that is done it wil by default go to United States.
#########################################
So this code basically checks if the country in the list is United States and if it is uses the html "selected", to select the country of choice.
If you need help on anyway, just get back to me. I will just need to know if you have the original signup page or the mod page with the US states included
Hope this helped :D
Best Regards,
natio
Hi Natio,
If I give you our information can you do this for me? I looked and found the code but we changed so much on this site that I don't want to mess this up. I did find what you showed me but there looks to be some additional coding there. I know your busy and there really is no hurry ....I just am thinking that I might mess something up... I can either email you with the site information or give you my Yahoo name....
Thanks!
If you put UNited States as the first item in inc/txt/country.txt it shows up first.
:)
vBulletin® v3.6.10, Copyright ©2000-2009, Jelsoft Enterprises Ltd.