LiveHelpNow Help Desk

Support Center

BASIC

ADVANCED

Exact Match:

  • Home
  • Categories
  • Home
  • Categories
  1. Home
  2. Categories
  3. Hide live chat link when offline

Hide live chat link when offline

  • Date updated 2014-09-13
  • Author LiveHelpNow
  • Comments 0
  • Rating
  • Categories
  • Advanced Customization
  • Chat Buttons
  • Tags
  • javascript
  • html
  • link
  • hidden

I would like to install LiveHelpNow as a link which will hide when all operators are offline.

Here are steps by step instructions:

 

  1. This step is only required if LiveHelpNow chat or helpOut button code is not already installed on your web page: Install invisible button code anywhere on your web page. Invisible button code may be found in Admin Panel->Chat system->installation->Live chat button->For websites.
  2. Add the HTML code to your web page for the link similar to this: <a id="lhnLiveChatLink" href="#" onclick="OpenLHNChat();return false;">Live chat</a>
  3. Add this JavaScript code to the page:

    <script type="text/javascript">
    
    function LHN_button_onLoad() {
    if (bLHNOnline == 0) {
    //All operators are offline
    document.getElementById('lhnLiveChatLink').style.display='none';
    }
    else {
    //There are operators online
    document.getElementById('lhnLiveChatLink').style.display='block';
    }
    }
    </script>
  4. Done

Rate this article


Your email is now subscribed to alerts for this article

Your email is not subscribed to alerts for this article

Subscribe to alerts for this article below

Unsubscribe to alerts for this article below


Leave a comment?

Related articles

  • What are the Software Requirements for running the LiveHelpNow Alerter?
    • 28631
    • 64
    • 0
  • Installation on a Flash based website
    • 24396
    • 61
    • 0
  • Custom information feed
    • 29560
    • 28
    • 0
  • Customize invitation to chat
    • 76917
    • 104
    • 0
  • How to disable chat invitation door bell sound
    • 24737
    • 63
    • 0
  • Install live chat as a link
    • 27482
    • 61
    • 0
  • Custom Live Chat Buttons
    • 35305
    • 87
    • 0
  • Trigger chat invitations
    • 27872
    • 61
    • 0
  • Dynamic chat invitations
    • 28484
    • 66
    • 0
  • Live Chat operator online/offline detection via JavaScript
    • 27793
    • 70
    • 0

Popular Knowledge Base Articles

  • Customize with different languages
    • 21782
    • 27
    • 0
  • LiveHelpNow Section 508 Compliance & Accessibility for Visually Impaired Users
    • 16848
    • 60
    • 0
  • Unsecured content warnings
    • 16153
    • 57
    • 0
  • HelpOut Tab - changing Chat, Ticket and Callback button images
    • 23882
    • 27
    • 0

Knowledge Base Authors

  • Michael Conde
    Michael Conde
    Total articles: 10
  • LiveHelpNow
    LiveHelpNow
    Total articles: 257

Company Sites

Home

Blog

Categories

  • General Questions
  • Getting Started
  • Customization
  • Advanced Customization
  • Troubleshooting
  • All Categories

Connect With Us

  • LiveHelpNow, LLC
  • Customer Service Software
  • 515 S West End Blvd
    Suite 202
    Quakertown, PA 18951

  • 8775483001
  • help@livehelpnow.com
  • https://www.livehelpnow.net
    Powered by Global Knowledge Base a LiveHelpNow product