SourceForge.net Logo Sorry this wont work on sourceforge's website at the moment. I spent a few hours lookin at how to change the permissions on my chatrooms folder to allow the program to write the file content of the chat without any luck. So if you want to test this project you'll need to download it from sourceforge copy the files to your web server, and give the chatrooms folder write permissions.
If anyone knows how to change file permissions on sourceforge to allow wrighting, and feel like letting me know i'd be happy to make this demo work.
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");
?>