Add Code in Joomla Site for Live Chat

Avatar
  • Answered
I'm trying to add the following code to my index.php site, but each time I add the code I lose the site.

window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s= d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set. _.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute("charset","utf-8"); $.src="//v2.zopim.com/?3I3JjfOxszMie8h425NCRI4SIES4vmiO";z.t=+new Date;$. type="text/javascript";e.parentNode.insertBefore($,e)})(document,"script");
The name of the site that I'm getting the code from is Zopim - its a Live Chat site.

My PhP file looks like


/**
*
* Main file
*
* @version 3.0.0
* @package Gavern Framework
* @copyright Copyright (C) 2010 - 2012 GavickPro. All rights reserved.
*
*/

// No direct access.
defined('_JEXEC') or die;
if(!defined('DS')){ define('DS',DIRECTORY_SEPARATOR); }

// Add JavaScript Frameworks
JHtml::_('bootstrap.framework');

// include framework classes and files
require_once('lib/gk.framework.php');
require_once('lib/framework/gk.const.php');

// run the framework
$tpl = new GKTemplate($this, $GK_TEMPLATE_MODULE_STYLES);

// EOF


Can you help me?
Avatar
johnpaulb-imhs1
Hello cpatte7372, Thank you for contacting us about issues custom coding a Live chat system in Joomla. We are happy to guide you in building your site, but unfortunately this coding would require extended testing and debugging. If you are having trouble custom-coding a chat solution in Joomla, I recommend consulting a developer, or using a 3rd party module/extension. There are many 3rd party solutions, such as Joomla Live Chat Software, or My Live Chat. Let us know if you have any further questions. Thank you, John-Paul