I thought I'd share what I did to make my sign up form a bit easier for my customers to use in case anyone was trying to do something similar.
First I didn’t want my form populated with test data so I commented out the following in signup.php
// PROVISION TEST DATA
if (true) {
// $_POST["lastname"] = $_POST["firstname"] = $_POST["address"] = $_POST["city"] = $_POST["state"] = $_POST["country"] = 'SIGN-' . MDP_STRING(5) . '-' . MDP_NUMERIC(3);
// $_POST["email"] = MDP_STRING(10) .
'@your-email.com';
// $_POST["zipcode"] = '12345';
// $_POST["phone"] = '15555555';
}
To set the default language in the pulldown menu, I modified the FG_var_signup.inc code with this:
foreach ($languages_db_list as $key => $cur_value) {
if (in_array('en', $cur_value)) {
$lang_list[
0] = array (
$cur_value[1],
$cur_value[0]
);
}
else {
$lang_list[$key] = array (
$cur_value[1],
$cur_value[0]
);
}
}
This put English as the first item in the array thus at the top of the list. The side effect was that Afar isn't an available language any more but even with wishful thinking I don’t think I will ever have any Ethiopian users on my system.
To put the United States as the first option for country, I simply replaced the first record in the cc_country table with:
id:1
countrycode:USA
countryprefix:1
countryname:United States
This dropped Afghanistan as an option but you could always add it back if you wanted by modifying all of the other records.