It is currently Mon Sep 16, 2019 4:35 am

All times are UTC - 5 hours [ DST ]




 Page 1 of 1 [ 1 post ] 
Author Message
 Post subject: User registration automation walkthrough
PostPosted: Mon Oct 12, 2009 11:12 pm 
Support Staff

Joined: Fri Nov 01, 2002 4:06 am
Posts: 43
This walkthrough is for customers who want to automate the creation of user accounts in the ChatBlazer database whenever end users register on their websites. This alleviates the problems of having your end users sign up again for a chat account or for admins having to manually create user accounts in the ChatBlazer database.

[Please note the difference between this method and the External User Data Source method. This method creates a chat account in the ChatBlazer database whereas the latter does not. Generally you may want to use this method over the other when you want to manage your chat accounts using the ChatBlazer admin, e.g. assigning roles, user groups.]

This method involves having your user registration page / script submit your registered user data to our server and then processing the reply that our server sends back.

1. Submit by HTTP POST to the following URL.

http://host5.chatblazer.com/memsign.php

2. Your submission must include the following parameters.
  1. site
  2. lname (user's login name for ChatBlazer)
  3. passwd
  4. reply (value must be "1")
3. After the submission, your script should process the reply to determine if the account was succesfully created. The reply is composed of these fields and individual fields are URL-encoded. So take note when parsing. Any modern scripting language should have the appropriate parsing function for this type of data, e.g. PHP's parse_str function.
  1. error (any positive value indicates an error has occurred)
  2. errormsg (optional)

4. For a successful account creation, the reply will look like this.
error=0


A sample error looks like this.

error=8&errormsg=Database+operation+failed


This is the list of error codes.

1 -- site ID not found
2 -- invalid login name
3 -- invalid password
8 -- database operation failed
9 -- database connection failed


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 post ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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