Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sat Apr 20, 2024 1:20 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: By-pass the emailing after sign-up
PostPosted: Sat May 12, 2007 9:04 am 
Offline

Joined: Thu Feb 15, 2007 9:35 pm
Posts: 60
Hi All,

Is there a way such that the customer right after sign-up page, he can receive the card alias,pass word etc... instantly on the same page instead of getting it from the email that the system send ? thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 12, 2007 6:17 pm 
Offline

Joined: Mon May 29, 2006 7:07 pm
Posts: 287
Location: Denver
So do you want to bypass email confirmation and give customer's access to their account - or both - have email confirmation to activate account and display cardnumber/cardalias/passsword and etc.?????


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 13, 2007 7:31 am 
Offline

Joined: Thu Feb 15, 2007 9:35 pm
Posts: 60
Sometimes the email confirmation get blocked by the internet provider so I would prefer an email confirmation + display (post ) cardnumber/cardalias/passsword on the same page as soon as a customer done with signing up. Which file is responsible for sending a message to a customer screen display telling the them of an activation email being sent to their mailbox ?


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 13, 2007 9:11 pm 
Offline

Joined: Thu Feb 15, 2007 9:35 pm
Posts: 60
Never mind, I modified signup_confirmation.php to make this change ! :D


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 13, 2007 10:46 pm 
Offline
Moderator
User avatar

Joined: Tue Jun 06, 2006 12:14 pm
Posts: 685
Location: florida
Can you post the mod in case others need this as well?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 3:28 am 
Offline

Joined: Thu Feb 15, 2007 9:35 pm
Posts: 60
Before

<?php }else{ ?>

<?php echo $list[0][2]; ?> <?php echo $list[0][1]; ?>, <?php echo gettext("thank you for registering with us!");?><br>
<?php echo gettext("An activation email has been sent to"); ?> <b><?php echo $list[0][3]; ?></b><br></br>

<?php } ?>

After

<?php }else{ ?>

<?php echo $list[0][2]; ?> <?php echo $list[0][1]; ?>, <?php echo gettext("thank you for registering with us!");?><br>
<?php echo gettext("An email has been sent to you for a record "); ?> <br></br>
<?php echo gettext("your user name is: ");?><b><font color="#00AA00"><?php echo $list[0][3]; ?></font></b><br>
<?php echo gettext("Your password is: ");?><b><font color="#00AA00"><?php echo $list[0][4]; ?></font></b><br></br></br>
<?php echo gettext("Please, write down your password and go to this website http://www.xxxxxxxx.com/a2customer/"); ?> <br>

<?php } ?>


Last edited by richardn on Sat Jul 14, 2007 5:16 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu May 31, 2007 11:41 am 
Offline

Joined: Mon Apr 09, 2007 7:18 pm
Posts: 43
account is still not active

Added after 12 minutes:

I figure out that to make the card active i must set active to yes in a2billing.conf

but i now get
BLOCKED ACCOUNT, Please contact your administrator!

my username given to me is my email address


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 9:34 pm 
Offline

Joined: Sun Jan 14, 2007 10:31 pm
Posts: 12
there is an option in a2blling.conf.....


on signup the account can be activated or not :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 15, 2008 3:25 pm 
Offline

Joined: Fri Jan 18, 2008 9:54 pm
Posts: 135
Hi ...

in A2b.conf there are two options regarding the confirmation:

activated = no (default)
activatedbyuser = no (default)

if you set the first one to yes, the account is created as active account (did not try it actually).

as for the second one, if you set it to no, you will get an email asking you to confirm and then another email after confirmation.

if you set it to yes then you only receive the second email.

in both cases, the email will say your account is activated, and

In both cases, the account is not activated !!!


I checked the activate.php module and found that it is updating the filed activatedbyuser only (there is another field which is also related "activated")

Code:
    $QUERY = "UPDATE cc_card SET  activatedbyuser = 't' WHERE ( loginkey = '".$key."' ) ";
    $result = $instance_sub_table -> SQLExec ($HD_Form -> DBHandle, $QUERY, 0);


I think adding another query to modify the (activated) field as well will solve the problem ...

Areski, Asiby, Stavors ... please comment .. is this how thinks should go or i am missing something.??


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 15, 2008 4:27 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Swift wrote:
activated = no (default)
activatedbyuser = no (default)

if you set the first one to yes, the account is created as active account (did not try it actually).
I'm not 100% sure, as I've not taken the time to verify by reading the code, but my understanding is you want both set to yes. The account won't be fully active until the user clicks the confirmation link in the email, but at that point they should be ready to login and make calls.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 15, 2008 6:52 pm 
Offline

Joined: Fri Jan 18, 2008 9:54 pm
Posts: 135
Thank you Stavors for the quick reply.. and thank you again (you and Asiby) for being my mentors, i've been reading your posts in the forum and learning alot.!

:roll:

What i am facing is the following:

Setting the first option to (no) because i want the e-mail activation process.
As for the second option i tried both setting to (yes) and (no)

(yes) .. i got an e-mail saying the account is activated. i tried to login but could not (account is being blocked).. in the Admin interface i can see the account is not activated.

(no) .. i got an e-mail asking to follow a link for activation.. after follwing i got i page saying the account is active now as well as an e-mail similar to the one in the (yes) case. again i can not log in and the admin interface is showing that the account is not active.

in both cases i had to change the status of the account to (active) from the admin interface so that i can log in (as a user) and use it.

So i tried to follow the page which is involved (activate.php).. and found the code that i posted above .. it is updating the field (activatedbyuser) and leaving the (activated) field which is related to the account status in the admin interface.

I added another query involving the (activated) field and it worked..

before :


Code:
if(isset($key) && $list[0][8]=="f")
{

    $QUERY = "UPDATE cc_card SET  activatedbyuser = 't' WHERE ( loginkey = '".$key."' ) ";
    $result = $instance_sub_table -> SQLExec ($HD_Form -> DBHandle, $QUERY, 0);
   
   
}


after :

Code:
if(isset($key) && $list[0][8]=="f")
{

    $QUERY = "UPDATE cc_card SET  activatedbyuser = 't' WHERE ( loginkey = '".$key."' ) ";
    $result = $instance_sub_table -> SQLExec ($HD_Form -> DBHandle, $QUERY, 0);
   
    $QUERY = "UPDATE cc_card SET  activated = 't' WHERE ( loginkey = '".$key."' ) ";
    $result = $instance_sub_table -> SQLExec ($HD_Form -> DBHandle, $QUERY, 0);
}


I admit that i am below the beginner in php, feel like wondering in the dark with a cigarette lighter.. i am not sure if i placed the new code in the right place and it is not going to interact with other pieces from the original code.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 15, 2008 8:03 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Hmmm... that's odd. It could do with being tidying up a little, if that's the way things currently work.
I can't see that your code would produce any problems, but I'm a newbie to PHP myself. You could word it with slightly less duplication:
Code:
if(isset($key) && $list[0][8]=="f")
{

    $QUERY = "UPDATE cc_card SET  activatedbyuser = 't', activated = 't' WHERE ( loginkey = '".$key."' ) ";
    $result = $instance_sub_table -> SQLExec ($HD_Form -> DBHandle, $QUERY, 0);
}


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 15, 2008 8:51 pm 
Offline

Joined: Fri Jan 18, 2008 9:54 pm
Posts: 135
Thanks alot ...

Sorry for the duplication .. :t_oops:


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 23 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group