This callback was included in v.4.8.6When the visitor clicks the "Start Chat" button to start the chat session, this function will be called if it exists on the page:
phplive_callback_chat_start( department_id )
Function Parameters
- department_id = the department ID of the department the visitor is trying to reach
Keep in mind: If your PHP Live! system is set to automatically start the chat session when the chat icon is clicked, this callback function will not be called because the visitor did not click the "Start Chat" button.
Example:
function phplive_callback_chat_start( department_id )
{
alert( "Visitor clicked the 'Start Chat' button. Chat has started." ) ;
}
A callback for when the chat session ends is not available at this time. It is in planning and will be available in the future.