How to automatically insert into the chat the login and email of users?
 

Getting user data.

If your website users are logged in and are known for their data (eg .: login, name, nickname, e-mail), it would be very convenient if chat retrieve this information. When a person asks for something in the chat, consultant will see these data immediately. Chater provides this functionality.

How to do it?

Chat code, which we paste on the website (you can download it here: http://www.chater.biz/userPanel/codes) should be modified by adding the following 2 items:

z.login="";z.email="";

Example code is shown below, standard one and another wich contains additional parameters.

Standard code

The code with the additional elements z.login="";z.email="";

Another very important step (it requires knowledge of the administration of the resources of website) is a calling from PHP to the chat a user data (logins, email addresses). The appropriate formula must be placed in a chat script . In the case of PHP it might look as following:

z.login=<?=$_SESSION['login']?>";z.email="<?=$['email']?>"

Depending on what technology the site was created, the way of calling users data for chat may look slightly different. The principle of modifying the code remains unchanged. User data must be transmitted to chat script in the same places.

If you have difficulty with this method on your website, please contact us, we will try to help install a livechat with automatic downloading of user data.


Your opinion:

Signature:

E-mail address
(will not be shown)

Your rating:

Your comment will be added after moderation