Difference between revisions of "Live Chat Addon"

From WHMCS Documentation

(Upgrading)
(Change Log)
 
(47 intermediate revisions by 8 users not shown)
Line 1: Line 1:
For information, screenshots & to order, please visit [http://www.whmcs.com/addons/live-chat-visitor-tracking/ http://www.whmcs.com/addons/live-chat-visitor-tracking/]
+
== About this Addon Module ==
  
==Installation==
+
Live Chat allows you to chat and engage with customers. It includes in-chat access to customer products and billing, and chat transcripts become support tickets after the chat concludes. You can use Live Chat from a downloadable client that's available for most major mobile and desktop operating systems.
 +
 +
<table class="table" style="text-align:center;margin:1em 1em 1em 0;background:#F9F9F9;border:1px #AAA solid;border-collapse:collapse;width:100%;">
 +
<tr>
 +
<th style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;">Addon Name</th>
 +
<th style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;">Latest Release</th>
 +
<th style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;">Current Version</th>
 +
<th style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;">Compatible With</th>
 +
<th style="border:1px #AAA solid;padding:0.2em;background:#F2F2F2;text-align:center;">Included in WHMCS</th>
 +
</tr>
 +
<tr>
 +
<td style="border:1px #AAA solid;padding:0.2em;">Live Chat Addon'</td>
 +
<td style="border:1px #AAA solid;padding:0.2em;">17th May 2021</td>
 +
<td style="border:1px #AAA solid;padding:0.2em;">5.8.9800</td>
 +
<td style="border:1px #AAA solid;padding:0.2em;">WHMCS 8.0 and later</td>
 +
<td style="border:1px #AAA solid;padding:0.2em;color:darkred;">No</td>
 +
</tr>
 +
</table>
  
[[File:Videotutorial.png‎|center|link=http://www.youtube.com/watch?v=fcCKomdCe4Y&hd=1|Watch Video Tutorial]]
+
[[File:Available_on_marketplace.png|link=https://marketplace.whmcs.com/product/34]]
  
 +
== Activating Live Chat Addon ==
  
Once you've purchased the Live Chat Addon for WHMCS, you will be able to download the files for it from our client area (it will show as an available download under the license you have purchased it for in Services > Licenses & Services > View Details > beneath the Addons heading) and can then proceed to install it as follows:
+
Before you can activate Live Chat, you must download it from the WHMCS Marketplace.
  
# Begin by forcing a remote licence check so your WHMCS install knows you've purchased the live chat addon. In your admin area navigate to '''Help > Check For Updates'''.
+
<html><a href="http://www.youtube.com/watch?v=fcCKomdCe4Y&hd=1" class="docs-video-tutorial"><em>Watch the video tutorial for this feature.</em><span>&nbsp;<img src="https://assets.whmcs.com/icons/youtube.png">&nbsp;</span></a></html>
#Next unzip the contents of the download and upload all the files contained in the '''upload_me''' folder to your main WHMCS directory
 
#Once uploaded, please apply write permissions to the /modules/livehelp/templates_c/ directory
 
#And then to complete the installation process, simply visit www.yourdomain.com/whmcs/modules/livehelp/install in your browser to initialise and activate the addon
 
#When you see a success message on screen, you can delete the /modules/livehelp/install/ directory and then begin using the system
 
  
'''Please Note:''' The live chat admin/operator login shares it's auth data with WHMCS and so you will be able to login to the live chat system using the same username & password as you use for WHMCS.
+
To do this:
  
==Integration==
+
# If you have not already purchased it, purchase Live Chat from [https://marketplace.whmcs.com/product/34 the Live Chat listing].
 +
# [https://www.whmcs.com/members/ Log in here].
 +
# Go to '''Services > All Products & Services'''.
 +
# Perform one of the following actions:
 +
## If you purchased your WHMCS license directly, select your main WHMCS license, select the '''Information''' tab, and download Live Chat.
 +
## If you purchased your WHMCS license from a reseller, select your Live Chat purchase, select the '''Downloads''' tab, and download Live Chat.
 +
# Unzip the ZIP file.
 +
# Upload the contents of the <tt>upload_me</tt> directory to the root directory in your WHMCS installation.
 +
# Check to ensure that the <tt>/modules/livehelp/templates_c/</tt> directory is writeable.
 +
# Go to <tt><nowiki>www.example.com/whmcs/modules/livehelp/install</nowiki></tt>, where <tt>www.example.com</tt> is the domain for your WHMCS installation, to complete installation.
 +
# Delete the <tt>/modules/livehelp/install/</tt> directory.
  
You're now just one step away from integrated Live Chat & Visitor Monitoring with WHMCS.
+
<div class="docs-alert-warning"><strong><i class="fa fa-info-circle"></i> License Update</strong><br />If you purchased the Live Chat Addon prior to installation, you may need to force a license update for your WHMCS installation to recognise the purchase. If you receive a license error or have trouble logging in after installation, log in to the WHMCS Admin Area, go to '''Help > License Information''', and click '''Force License Update'''. Then, reattempt login.</div>
  
This is where you add the javascript tracking code to your template. It couldn't be easier, all you need to do is add '''{$livehelpjs}''' to the <head> section of your template in the header.tpl template file as shown below.
+
== Using this Addon ==
  
<center>[[File:Livechatheaderjs.jpg]]</center>
+
To log in to Live Chat, visit <tt><nowiki>www.example.com/whmcs/modules/livehelp/admin</nowiki></tt>, where <tt>www.example.com</tt> is the domain for your WHMCS installation.
  
You don't have to do anything else in order to be able to monitor visitors and proactively iniate chats with them, however if you want the visitor to be able to initiate a chat, then you will want to add the live help button somewhere.
+
You can log in using the same username and password that you use for the WHMCS Admin Area.
  
You can display a live chat status button by simply inserting '''{$livehelp}''' into any template file where you want it to appear, for example you could add it to the order form, ticket submission page, or the footer as demonstrated below.
+
=== First Login ===
  
<center>[[File:Livechatportal.jpg]]</center>
+
The first time that you use this, a login prompt will display. Enter your account, username and password:
  
===Outside WHMCS===
+
* '''Account or Server:''' Enter the full path to the <tt>modules</tt> directory for your WHMCS installation.
 +
* '''Username / Password:''' Enter the same username and password that you use to log in to the WHMCS Admin Area.
 +
* '''Enable Secure Sign In:''' Enable this if your WHMCS installation uses SSL.
 +
* '''Sign In Automatically:''' Enable this to sign in automatically for future logins. If you enable this, in the future on this device you will only need to enter your password.
  
You can of course also add the visitor tracking and live help buttons to pages '''outside''' of WHMCS (for example on your main website). It takes just 2 simple steps...
+
For more information, see [https://www.chatstack.com/kb/category/apps/ the ChatStack website].
  
'''Do Not Attempt''' to add this code to WHMCS templates - it is handled automatically as described above
+
=== Desktop Applications ===
  
'''Step 1''' For visitor monitoring, you need only add this snippet of HTML/JavaScript to the <head> section of your page:
+
Downloadable clients are available for Windows®, Mac®, and Linux®. Mobile Apps are also available for iPhone® and Android™.
  
<source lang="php">
+
[https://www.chatstack.com/kb/download-live-chat/ Download the latest version of the Windows desktop application] and follow the automated installation process.
<script type="text/JavaScript" src="/whmcs/modules/livehelp/scripts/jquery-latest.js"></script>
 
<script type="text/javascript">
 
<!--
 
    var LiveHelpSettings = {};
 
    LiveHelpSettings.server = 'www.yourdomain.com/whmcs/modules';
 
    LiveHelpSettings.embedded = true;
 
    (function(d, $, undefined) {
 
        $(window).ready(function() {
 
            // JavaScript
 
            var LiveHelp = d.createElement('script'); LiveHelp.type = 'text/javascript'; LiveHelp.async = true;
 
            LiveHelp.src = ('https:' == d.location.protocol ? 'https://' : 'http://') + LiveHelpSettings.server + '/livehelp/scripts/jquery.livehelp.js';
 
            var s = d.getElementsByTagName('script')[0];
 
            s.parentNode.insertBefore(LiveHelp, s);
 
        });
 
    })(document, jQuery);
 
-->
 
</script>
 
</source>
 
 
 
You need to customise the URL specified in the '''LiveHelpSettings.server''' parameter in the above code with the domain and path to your WHMCS installations modules directory.
 
 
 
'''Step 2''' The following lines can be optionally added to the page anywhere you wish to display the Live Chat Operator status and end user chat initiation button.
 
 
 
<source lang="php">
 
<a href="#" class="LiveHelpButton"><img src="/whmcs/modules/livehelp/include/status.php"
 
id="LiveHelpStatus" name="LiveHelpStatus" class="LiveHelpStatus" border="0" alt="Live Help" /></a>
 
</source>
 
  
Alternatively if you would prefer a static text link for chat initiation, that can also be achieved as follows:
+
The Windows app has the following minimum requirements:
 
 
<source lang="php">
 
<a href="#" class="LiveHelpButton">Chat With Us Live</a>
 
</source>
 
 
 
==Windows Application==
 
 
 
===Requirements===
 
 
 
The requirements for the Windows App are as follows:
 
  
 
*Windows 7 / Vista / XP SP 2
 
*Windows 7 / Vista / XP SP 2
 
*Internet Explorer 7 or above
 
*Internet Explorer 7 or above
*.NET Framework 3.5 SP1 or above - [http://www.microsoft.com/downloads/details.aspx?FamilyId=333325FD-AE52-4E35-B531-508D977D32A6 Download]
+
*[http://www.microsoft.com/downloads/details.aspx?FamilyId=333325FD-AE52-4E35-B531-508D977D32A6 .NET Framework 3.5 SP1 or above]
 
*Internet Connection
 
*Internet Connection
  
===Installation===
+
For other operating systems, check their app stores for the downloadable clients.
  
You can download the latest version of the Windows Desktop Application at any time from https://secure.stardevelop.com/downloads/download-latest.php and then follow the automated installer process to install on your computer.
+
== Upgrading ==
  
===First Use===
+
If you have an earlier version of the Live Chat Addon, perform these steps to upgrade to the latest version:
  
When you first attempt to sign-in to the Live Help Messenger application you will be presented with the following window.
+
# Log in [https://www.whmcs.com/members/ here].
 +
# Go to '''Services > All Products & Services'''.
 +
# Select your Live Chat purchase.
 +
# Go to the '''Downloads''' tab.
 +
# Download Live Chat.
 +
# Unzip the ZIP file download.
 +
# Upload the contents of the <tt>upload_me</tt> directory to your WHMCS installation's root directory.
 +
# Log in to the Live Chat Addon administration panel to complete the upgrade process at <tt><nowiki>www.example.com/whmcs/modules/livehelp/admin</nowiki></tt>, where <tt>www.example.com</tt> is the domain for your WHMCS installation.
 +
# Delete the <tt>/modules/livehelp/install/</tt> directory.
  
<center>http://livehelp.stardevelop.com/documentation/images/signin.jpg</center>
+
== Uninstallation ==
  
You will need to enter your Account, Username and Password to access the Live Help system, these are described below.
+
To remove the Live Chat Addon from your installation, delete the <tt>/modules/livehelp/</tt> directory and the <tt>/includes/hooks/livehelp.php</tt> file.
  
* '''Account or Server:''' If Live Help is installed at http://www.yourdomain.com/whmcs/modules/livehelp/ then your account or server would be entered as www.yourdomain.com/whmcs/modules/
+
Optionally, you can also remove the database tables that begin with <tt>mod_livehelp</tt>.
* '''Username / Password:''' The username and password are the same as those used to login to the main WHMCS administration area.
 
* '''Enable Secure Sign In:''' You can login to the Live Help administration via. SSL if your installation is accessible at https://www.yourdomain.com
 
* '''Sign In Automatically:''' This option will automatically sign-in a given account the next time the Live Help Messenger application is opened.
 
  
Once you have signed into the Live Help Messenger application you will be able to quickly sign-in again using the previous account.
+
== Integration Outside of WHMCS ==
  
<center>http://livehelp.stardevelop.com/documentation/images/previouslogin.jpg</center>
+
<div class="docs-alert-warning">'''Do Not Attempt''' to add this code to WHMCS templates. Those templates handle it automatically.</div>
  
The previous sign-in area only requires you to enter the password of the account.
+
To integrate visitor tracking and live help in pages outside of your WHMCS installation (for example, your main website), perform the steps below:
  
==Web Browser Admin==
+
# Add the following lines to each page, once per page, after the <tt><title></tt> tag and jQuery call and before the <tt></head></tt> tag: <br /><source lang="js"><script type="text/javascript">
 +
<!--
 +
var Chatstack = { server: 'www.example.com/support/modules' };
 +
(function(d, undefined) {
 +
  // JavaScript
 +
  Chatstack.e = []; Chatstack.ready = function (c) { Chatstack.e.push(c); }
 +
  var b = d.createElement('script'); b.type = 'text/javascript'; b.async = true;
 +
  b.src = ('https:' == d.location.protocol ? 'https://' : 'http://') + Chatstack.server + '/livehelp/scripts/js.min.js';
 +
  var s = d.getElementsByTagName('script')[0];
 +
  s.parentNode.insertBefore(b, s);
 +
})(document);
 +
-->
 +
</script>
 +
</source>Make certain to update<tt><nowiki>www.example.com/support/modules</nowiki></tt> with the path to your WHMCS installation's <tt>modules</tt> directory.
 +
# Optionally, you can either or both of these chat initiation methods:
 +
## To display the Live Chat Operator status and end user chat initiation button:<source lang="js">
 +
<a href="#" class="LiveHelpButton"><img src="http://www.example.com/whmcs/modules/livehelp/status.php" id="LiveHelpStatus" name="LiveHelpStatus" class="LiveHelpStatus" border="0" alt="Live Help" /></a>
 +
</source>
 +
##To display a static text link for chat initiation:<source lang="php">
 +
<a href="#" class="LiveHelpButton">Chat With Us Live</a>
 +
</source>
  
You can also login to the Live Help web-based administration using your web browser at http://www.yourdomain.com/modules/livehelp/admin The web-based administration area allows your operators to access the Live Help system from any computer but the Windows application is recommended whenever possible for full functionality.
+
== Troubleshooting ==
  
==Visitor Country/City Identification==
+
===Chat button non-functional / Blank live chat window===
 +
If clicking the chat button results in nothing happening or the live chat popup window is showing a blank chat window, make certain that the <tt>/modules/livehelp/templates_c/</tt> directory both exists and is writeable.
  
The Live Help v3.90 and above supports IP City level location detection. The MaxMind GeoLite City (free) and MaxMind GeoIP City (paid with higher accuracy) databases are supported. These databases are not included with the Live Help downloads (due to the size of the database) so you will need to download the latest database from the MaxMind web site. The following instructions are for installing the database:
+
We recommend that you try the following permissions in this order: <tt>755</tt>, <tt>775</tt>, and <tt>777</tt>.
  
#Download the MaxMind GeoLite City database at  [http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz GeoLite City (Approx. 18MB)]
+
===The requested content cannot be loaded. Please try again later.===
#Unzip the file on your local PC, you can use a free tool like 7zip for unzipping the GeoLiteCity.dat.gz file.
+
This message may appear when you click '''Chat Now'''. This indicates that the system cannot create the templates cache.  
#Upload the GeoLiteCity.dat file to the /modules/livehelp/plugins/maxmind/ directory. The file is approximately 30MB so this may take some time.
 
#The GeoLite database should be located at /modules/livehelp/plugins/maxmind/GeoLiteCity.dat when finished uploading
 
  
The MaxMind GeoLite database is updated each month (normally on the 1st of each month) so you can replace this file every month if you wish to use the most accurate location data. Further details on the MaxMind GeoLite City database is available at http://www.maxmind.com/app/geolitecity
+
To resolve this, make certain that the <tt>/modules/livehelp/templates_c/</tt> directory exists and is writeable.
  
==Upgrading==
+
We recommend that you try the following permissions in this order: <tt>755</tt>, <tt>775</tt>, and <tt>777</tt>.
  
<div class="docs-alert-info">WHMCS Version 6.0 requires a compatibility update to the Live Chat Addon. If you were previously running the latest version of Live Chat prior to upgrading to WHMCS 6.0, you should download and apply the incremental update labelled "Download (Incremental) for WHMCS 6.0". If you were not previously running the Live Chat Addon, or have performed a clean install of WHMCS Version 6.0, you should download the update labelled ''Download (Full) for WHMCS 6.0''. Both of these downloads will be available in the Live Chat Addon section of the license details page in our members area.</div>
+
===License Invalid / Unable to login===
 +
If you see a "License Invalid" warning message when you open the Live Chat admin interface, your WHMCS installation has not yet updated to recognise your purchase of the addon. Your WHMCS installation only calls home to validate your license with us periodically. If you recently purchased the addon, you may need to force a local key update to have it take effect.  
  
To upgrade your installed version of the Live Chat Addon, simply follow the steps below to update:
+
To do this, navigate to '''Help > [[License Information]]''' and click '''Force License Update'''. Then, attempt logging in again.
  
#Begin by downloading the update from our client area (Services > Licenses & Services > Select the licence to which the addon belongs > Addons tab)
+
===Connection Error===
#Next, rename the old live chat installation within /modules/livehelp/ to /modules/livehelp-backup/
+
Connection errors when attempting to log in to the Live Chat administration area are typically due to misconfigured file and folder permissions.
# Now, Upload the files from the '''upload_me''' directory to your main WHMCS directory
 
#Upgrades are automatic, so to complete the process, simply open the Live Help Windows Application and sign-in to Live Help to perform the required database upgrades process
 
#Finally delete the '''install''' folder from the /modules/livehelp/ directory and you're done.
 
#Once this upgrade has been completed and everything is working as expected you may remove the folder /modules/livehelp-backup
 
  
With the latest update, new and improved integration code is available to make use of the embedded chat window on your website so to take advantage of this, you will need to update the Live Help HTML on your web pages.  A step by step guide for doing this can be found @ http://livehelp.stardevelop.com/kb/245/
+
This configuration varies depending on your particular server environment. For example, the permissions setting for the <tt>/modules/livehelp/xml/WebService.php</tt> file should be <tt>644</tt>.
  
==Further Reading==
+
* suPHP and PHP suEXEC require more restriction. If you use DSO as your PHP handler, you '''must''' use <tt>644</tt> permissions.
 +
* Limit access to only the account that owns the web server process. Make sure that no other system or user accounts can read your configuration file or modify any WHMCS-related files.
  
StarDevelop provides documentation covering how to use the live help software at:
+
If the issue persists, enable your [https://help.whmcs.com/m/troubleshooting/l/1312423-an-error-occurred-while-communicating-with-the-server-please-try-again browser network console] and examine the response for more information.
http://livehelp.stardevelop.com/documentation/
 
 
 
==Error Messages==
 
  
 
===Incorrect Server/Host===
 
===Incorrect Server/Host===
  
If you get this error then it indicates that the Live Help installation cannot be found at the supplied URL. Double check the URL you've entered. If Live Help is installed at http://www.yourdomain.com/whmcs/modules/livehelp/ then your account or server should be entered as www.yourdomain.com/whmcs/modules/
+
Receiving this error message in one of the Desktop or Mobile clients indicates that the Live Help installation cannot be found at the given URL. Make certain that you entered the correct URL.
 
 
===License Invalid===
 
 
 
If when first opening the live chat admin interface or connecting via the Windows Desktop App you get a "License Invalid" warning message, this indicates that your WHMCS installation has not yet updated to recognise your purchase of the addon.  Your WHMCS install only calls home to validate your license with us periodically and so if you have only recently bought the addon, you may need to force a local key update by going to '''Help > Check for Updates''' inside your WHMCS admin area to get rid of this message.
 
 
 
If it continues after that, please get in touch with us for assistance.
 
 
 
===Blank Live Help Chat Window===
 
If you have installed Live Help and the Live Help popup window is showing a blank chat window then we recommend the following troubleshooting steps.
 
  
* Check that the /modules/livehelp/templates_c/ directory exists. If this directory doesn’t exist then please create it.
+
===Sending Emails===
* If the chat window is still blank then make the /modules/livehelp/templates_c/ directory writable. We recommend that you try the following permissions in this order 755, 775 and 777.
 
  
The /modules/livehelp/templates_c/ directory should be writable so that the Live Help templates can be created.
+
By default, the Live Chat addon will use the <tt>PHP mail()</tt> function, and '''not''' the WHMCS mail configuration, to send emails. To configure sending via SMTP, see [https://www.chatstack.com/kb/setup-smtp-authentication/ Setup SMTP Authentication].
  
===Unable to Login===
+
== Change Log ==
If you are unable to login and see an invalid login error message even when entering valid WHMCS admin login details, this suggests your WHMCS install is not aware you've purchased the live chat addon. To resolve simply force a remote licence check by navigating to '''Help > Check For Updates''' inside the main WHMCS admin area.
 
  
The Live Chat Addon" should then appear in the "Addons" section of the Help > Licence Information page, and the issue resolved.
+
See the [https://marketplace.whmcs.com/product/34-live-chat-visitor-tracking Live Chat] Marketplace listing.

Latest revision as of 12:57, 2 October 2023

About this Addon Module

Live Chat allows you to chat and engage with customers. It includes in-chat access to customer products and billing, and chat transcripts become support tickets after the chat concludes. You can use Live Chat from a downloadable client that's available for most major mobile and desktop operating systems.

Addon Name Latest Release Current Version Compatible With Included in WHMCS
Live Chat Addon' 17th May 2021 5.8.9800 WHMCS 8.0 and later No

Available on marketplace.png

Activating Live Chat Addon

Before you can activate Live Chat, you must download it from the WHMCS Marketplace.

Watch the video tutorial for this feature.  

To do this:

  1. If you have not already purchased it, purchase Live Chat from the Live Chat listing.
  2. Log in here.
  3. Go to Services > All Products & Services.
  4. Perform one of the following actions:
    1. If you purchased your WHMCS license directly, select your main WHMCS license, select the Information tab, and download Live Chat.
    2. If you purchased your WHMCS license from a reseller, select your Live Chat purchase, select the Downloads tab, and download Live Chat.
  5. Unzip the ZIP file.
  6. Upload the contents of the upload_me directory to the root directory in your WHMCS installation.
  7. Check to ensure that the /modules/livehelp/templates_c/ directory is writeable.
  8. Go to www.example.com/whmcs/modules/livehelp/install, where www.example.com is the domain for your WHMCS installation, to complete installation.
  9. Delete the /modules/livehelp/install/ directory.
License Update
If you purchased the Live Chat Addon prior to installation, you may need to force a license update for your WHMCS installation to recognise the purchase. If you receive a license error or have trouble logging in after installation, log in to the WHMCS Admin Area, go to Help > License Information, and click Force License Update. Then, reattempt login.

Using this Addon

To log in to Live Chat, visit www.example.com/whmcs/modules/livehelp/admin, where www.example.com is the domain for your WHMCS installation.

You can log in using the same username and password that you use for the WHMCS Admin Area.

First Login

The first time that you use this, a login prompt will display. Enter your account, username and password:

  • Account or Server: Enter the full path to the modules directory for your WHMCS installation.
  • Username / Password: Enter the same username and password that you use to log in to the WHMCS Admin Area.
  • Enable Secure Sign In: Enable this if your WHMCS installation uses SSL.
  • Sign In Automatically: Enable this to sign in automatically for future logins. If you enable this, in the future on this device you will only need to enter your password.

For more information, see the ChatStack website.

Desktop Applications

Downloadable clients are available for Windows®, Mac®, and Linux®. Mobile Apps are also available for iPhone® and Android™.

Download the latest version of the Windows desktop application and follow the automated installation process.

The Windows app has the following minimum requirements:

For other operating systems, check their app stores for the downloadable clients.

Upgrading

If you have an earlier version of the Live Chat Addon, perform these steps to upgrade to the latest version:

  1. Log in here.
  2. Go to Services > All Products & Services.
  3. Select your Live Chat purchase.
  4. Go to the Downloads tab.
  5. Download Live Chat.
  6. Unzip the ZIP file download.
  7. Upload the contents of the upload_me directory to your WHMCS installation's root directory.
  8. Log in to the Live Chat Addon administration panel to complete the upgrade process at www.example.com/whmcs/modules/livehelp/admin, where www.example.com is the domain for your WHMCS installation.
  9. Delete the /modules/livehelp/install/ directory.

Uninstallation

To remove the Live Chat Addon from your installation, delete the /modules/livehelp/ directory and the /includes/hooks/livehelp.php file.

Optionally, you can also remove the database tables that begin with mod_livehelp.

Integration Outside of WHMCS

Do Not Attempt to add this code to WHMCS templates. Those templates handle it automatically.

To integrate visitor tracking and live help in pages outside of your WHMCS installation (for example, your main website), perform the steps below:

  1. Add the following lines to each page, once per page, after the <title> tag and jQuery call and before the </head> tag:
    <script type="text/javascript">
    <!--
    var Chatstack = { server: 'www.example.com/support/modules' };
    (function(d, undefined) {
      // JavaScript
      Chatstack.e = []; Chatstack.ready = function (c) { Chatstack.e.push(c); }
      var b = d.createElement('script'); b.type = 'text/javascript'; b.async = true;
      b.src = ('https:' == d.location.protocol ? 'https://' : 'http://') + Chatstack.server + '/livehelp/scripts/js.min.js';
      var s = d.getElementsByTagName('script')[0];
      s.parentNode.insertBefore(b, s);
    })(document);
    -->
    </script>
    Make certain to updatewww.example.com/support/modules with the path to your WHMCS installation's modules directory.
  2. Optionally, you can either or both of these chat initiation methods:
    1. To display the Live Chat Operator status and end user chat initiation button:
      <a href="#" class="LiveHelpButton"><img src="http://www.example.com/whmcs/modules/livehelp/status.php" id="LiveHelpStatus" name="LiveHelpStatus" class="LiveHelpStatus" border="0" alt="Live Help" /></a>
    2. To display a static text link for chat initiation:
       <a href="#" class="LiveHelpButton">Chat With Us Live</a>

Troubleshooting

Chat button non-functional / Blank live chat window

If clicking the chat button results in nothing happening or the live chat popup window is showing a blank chat window, make certain that the /modules/livehelp/templates_c/ directory both exists and is writeable.

We recommend that you try the following permissions in this order: 755, 775, and 777.

The requested content cannot be loaded. Please try again later.

This message may appear when you click Chat Now. This indicates that the system cannot create the templates cache.

To resolve this, make certain that the /modules/livehelp/templates_c/ directory exists and is writeable.

We recommend that you try the following permissions in this order: 755, 775, and 777.

License Invalid / Unable to login

If you see a "License Invalid" warning message when you open the Live Chat admin interface, your WHMCS installation has not yet updated to recognise your purchase of the addon. Your WHMCS installation only calls home to validate your license with us periodically. If you recently purchased the addon, you may need to force a local key update to have it take effect.

To do this, navigate to Help > License Information and click Force License Update. Then, attempt logging in again.

Connection Error

Connection errors when attempting to log in to the Live Chat administration area are typically due to misconfigured file and folder permissions.

This configuration varies depending on your particular server environment. For example, the permissions setting for the /modules/livehelp/xml/WebService.php file should be 644.

  • suPHP and PHP suEXEC require more restriction. If you use DSO as your PHP handler, you must use 644 permissions.
  • Limit access to only the account that owns the web server process. Make sure that no other system or user accounts can read your configuration file or modify any WHMCS-related files.

If the issue persists, enable your browser network console and examine the response for more information.

Incorrect Server/Host

Receiving this error message in one of the Desktop or Mobile clients indicates that the Live Help installation cannot be found at the given URL. Make certain that you entered the correct URL.

Sending Emails

By default, the Live Chat addon will use the PHP mail() function, and not the WHMCS mail configuration, to send emails. To configure sending via SMTP, see Setup SMTP Authentication.

Change Log

See the Live Chat Marketplace listing.