Question: I have enabled AutoLogin in admin panel but it won't let me in throwing out authorization error.

Answer: Enabled AutoLogin doesn't integrate chat automatically with your user's database as this is the matter of handlers adjustment. You may find more information in corresponding section of the manual.

Question: I have my own authorization handler what should I change to make flash applet to request it?

Answer: Paths to all handlers can be modified in main.xml file.

Question: How can I check what data comes from handler on authorization or profile request?

Answer: Simply make direct http request to handler with needed action, e.g Handler should return valid xml structure.

Question: I have my images generated by script: getphoto.php?width=80&height=80. When I return it from handler it comes blank in the chat.

Answer: You should return full http path to the image otherwise flash client won't read it. Example:

Question: What parameters can I pass to flash client per each mode ? 


1. When AutoLogin is enabled, you may pass the following 3 parameters, when embedding the chat to your web-site page:
so.addVariable("uid", "UID");
so.addVariable("roomId", "RoomID");
so.addVariable("langId", "LanguageID"); 

Parameters RoomID and Language ID are passed to Flash client, which in its turn displays appropriate room and language, when user is 
Parameter UID is passed to Flash client, which substitutes it for UID in auth function and does request to authorization handler. 
Auth function itself can be found in file main.xml:
    < auth >< ![ CDATA [ 
        { ROOT }videochat/server/php/handlers.php?action=auth&user_name={ NAME }&password={ PASSWORD }&uid={ UID }
    ] ] > < /auth >
Parameters user name and password are not used in case AutoLogin is enabled.

When request to authorization handler is done, the last one can either authorize the user and let him in the chat (in this case, user will 
not see login screen, but will be automatically logged in), OR return Authorization Error. 

Note, that in UID parameter you may pass whatever information needed: user name, password, gender etc. and parse it on handler's side.

2. If ChatAuth mode is enabled:
user will see Login screen, where he fills in User name and Password.
These 2 parameters (user_name and password) are used in Auth function to make request to authorization handler: 
< auth >< ![ CDATA [ 
        { ROOT }videochat/server/php/handlers.php?action=auth&user_name={ NAME }&password={ PASSWORD }&uid={ UID }
    ] ] > < /auth >

Handler in its turn may either authorize user or return authorization error.

You may also pass LangID RoomID and UID, when embedding chat and enabling ChatAuth.
In this case, passed language, room and UID will appear on login screen.
To clarify more: when you pass LangID RoomID and UID in so.addVariable: user clicks on link to open chat, gets login screen and these 
3 parameter are already there: UID will be displayed in user name field. 
However, when user clicks "Enter" button, information from this field is passed to auth function as user_name in query string.  

3. When GuestMode is enabled,
User fills in user name on login screen, which is passed to flash client. 
Flash client in it's turn uses this name in the function CheckGuestName (see file main.xml):
< checkGuestName >< ![ CDATA [ 
        { ROOT }videochat/server/php/handlers.php?action=check_guest_name&user_name={ NAME }
     ] ] > < /checkGuestName >

You may change this function to your needs. For instance to check if the name, that guest fills in, already exists in your database. 
This can be done in order to prohibit guests from using the name of already registered user.