Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Oct 23, 2020 8:23 am
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Signup Form
PostPosted: Wed Nov 04, 2009 9:14 pm 
Offline

Joined: Mon Oct 26, 2009 3:47 am
Posts: 17
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.


Top
 Profile  
 
 Post subject: Re: Signup Form
PostPosted: Wed Mar 10, 2010 7:11 pm 
Offline
User avatar

Joined: Fri Sep 18, 2009 5:46 pm
Posts: 132
Location: hhhhmmmmm
thanks for sharing with us. specially changing the default country.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group