Example Web Page showing how to connect to the chat client from both the customers web page area and the sales persons web page area. | |
Chat is not active for customers. Enter as a Sales Administrator and activate the chat to try the customer side. After activiating the chat, you will need to refreash this page to see the customer chat link. | |
Customer Access Link: Live Chat not available at this time |
Sales Administration Link: Enter Chat Administration |
On your web page for your customers add this code to link to your customer chat client area: Important: Make sure your chatrooms directory has write permissions. <? //PHP // Open the Chat Object include ("YourDirectory/chatclass.php"); $oChat = new sChat; $out_Java = $oChat -> getJavaWindow("Cust"); // Set variables $ActiveFile_FP = "YourDirectory/chatrooms/chat_Active.php"; $customer_Link = "Your Chat Not Available Message Here."; // Check if Chat has been activated by an administrator $bChat_Active = $oChat -> f_Verify($ActiveFile_FP); if($bChat_Active){$customer_Link = "<a href=cust_chat.php $out_Java>Your Chat is Available Message Here.</a>";} // Echo the message to the screen echo("$customer_Link"); ?> |
|
For your sales people page: <? //PHP // Open the Chat Object include ("YourDirectory/chatclass.php"); $oChat = new sChat; $out_Java2 = $oChat -> getJavaWindow("Sales"); // Set Variables $sales_Link = "<a href=admin_chat.php $out_Java2>Enter Chat </a>"; // Echo the message to the screen echo("$sales_Link"); ?> |