****************
* ASP Live Support *
****************
Written by Thomas Gullen 
www.iAXX.com 

--------------------
Features
--------------------
Easy to implement script
Secure admin login
Graphical admin control pannel
Admin control pannel can be accessed from infinate locations accross the world simultaneously
Talk to visitors remotly
View visitors IP address
View visitors real name
View the time visitors enetered your website
View the time the visitor was last active on your site
Log files, view all admin page requests and visitor page requests in log files
Set chat status to online/offline by the click of your button which will change on all your pages
Easy display and use for your visitor
Request a chat with a visitor
Visitors can request chats with you
Auto refresh admin data pannel
Several colour schemes to choose from
Change admin password remotly
View site statistics from the admin control pannel
Application can have your companys name printed all over it with the click of one button
Input protection from malicious user input
Quiet refresh (JavaScript)
And much more!
--------------------
Capabilities
--------------------
- Create better customer relationships, talking to a live person helps increase sales
- Go one better than your rivals, offer a service they dont have

--------------------
Setup
--------------------

1)  Place the folder 'chat' in your main directory (keep folder name the same or script wont work)
2)  Place the files checkchat.asp in your main folder (1 below the chat folder)
3)  Through your web browser run the page chat/admin/login.asp
4)  Enter the admin password which is set to 'changeme' (without the speach marks and case sensitive)
5)  Click on the control pannel link
6)  Go to each of the pages and make the appropriate configurations to operator name, password and company name
7)  Open up your HTML editor
8)  On all your webpages in the same directory as checkchat.asp add the following line of code to the TOP of the page above ANY HTML

<!--#include file="checkChat.asp" -->

9)  On these pages eneter the following line of code into your HTML where you want a link displayed showing if live support is avaliable or not avaliable:


<%' BEGINNING OF CODE%>
<%
Dim strDB
'Connection string for the database
'If the following line does not work comment it out with a ' at the start of the line and uncomment another string
strDB="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(strDataBasePath)

'Uncomment this connection string if you are using Access Database 2000 or 2002
'strDB = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath(strDataBasePath) 

'Uncomment this connection string if you are using a DSN (note:  DSN is slower than the above connection strings)
'strDB = "DSN=NAME_OF_DSN"
'Replace the NAME_OF_DSN with the DSN

Dim data
Dim str_online

set data = server.createobject("ADODB.RecordSet")
data.activeconnection = strDB
data.source = "SELECT * FROM tblsettings "
data.open

str_online = data("online")
data.close
%><%IF str_online = "5" THEN %><td align=right><a href=# onClick="javascript:window.open('chat/default.asp','customer','width=400, height=300, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no')" class="lsava"><b>Live Support: Avaliable</b>&nbsp;</a><% ELSE Response.write "<td align=right><A class=LSuna href=contact.asp><b>Live Support: Unavaliable&nbsp;</b></a>" end if%>
<%' END OF CODE%>

10)  Thats it!  Simply login to the admin pannel whenever you are online and set chat status to avaliable and visitors can talk to you.

--------------------
Mainainance
--------------------
Every now and then its best to compact and repair the database to speed it up, (open datanase press tools Option> compact and repair

Its also best to delete all records in the table tblChat every once in a while

--------------------
Other
--------------------
If you move or rename the database open up checkchat.asp (main folder) and common.asp (in chat folder) and go down to the lines:

'------------------------------------------------------------------------------------
'Change this value to the path of the database
strDataBasePath = "../LiveSupport.mdb"
'------------------------------------------------------------------------------------

You will need to change the database path and name to your new one.

--------------------
SUPPORT
--------------------
iAXX Live Support was created for free, so unfortunalty we cannot answer any support emails regrading the live support, however please do send bug reports to us.
 