Add Code in Joomla Site for Live Chat
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?
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?