Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2014-06-11 14:42:38

Oliver D R P
Guest

Live Help Widget suddenly disappeared

I just disabled the cache in the settings.ini.php file and for some reason I can't see the Chat Widget anymore.

This are the first lines of my settings file:

<?php
return array (
  'settings' =>
  array (
    'site' =>
    array (
      'title' => 'Live helper Chat',
      'site_admin_email' => '',
      'locale' => 'en_EN',
      'theme' => 'defaulttheme',
      'installed' => true,
      'secrethash' => '**********',
      'debug_output' => true,
      'templatecache' => false,
      'templatecompile' => false,
      'modulecompile' => false,
      'force_virtual_host' => false,
      'time_zone' => '',
      'date_format' => 'Y-m-d',
      'date_hour_format' => 'H:i:s',
      'date_date_hour_format' => 'Y-m-d H:i:s',
      'default_site_access' => 'eng',
      'extensions' =>
      array (
      ),

And the code for the widget:

<script type="text/javascript">
var LHCChatOptions = {};
LHCChatOptions.opt = {widget_height:340,widget_width:300,popup_height:520,popup_width:500};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
var refferer = (document.referrer) ? encodeURIComponent(document.referrer.substr(document.referrer.indexOf('://')+1)) : '';
var location  = (document.location) ? encodeURIComponent(window.location.href.substring(window.location.protocol.length)) : '';
po.src = '//localhost/lhc_web/index.php/chat/getstatus/(click)/internal/(position)/middle_left/(top)/250/(units)/pixels/(leaveamessage)/true/(disable_pro_active)/true?r='+refferer+'&l='+location;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>

What am I missing?


https://groups.google.com/forum/#!topic … EranLYL8qQ

#2 2014-06-11 15:45:21

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Live Help Widget suddenly disappeared

http://livehelperchat.com/i-have-embedded-widget-code-but-widget-is-not-shown.-what-to-do-265a.html

http://livehelperchat.com/during-some-action-app-returns-white-screen-what-to-do-215a.html



Offline

#3 2014-06-12 13:04:21

Oliver
Guest

Re: Live Help Widget suddenly disappeared

The problem has been caused by a change I made in the lhchat/widget_brand/live_help.tpl.php.

When I change any of the strings inside, the widget magically disappears. With firebug I can see an 'unterminated string literal' error which is not visible in any source code.
Even after I changed it back to the original string, I get the same error.


Original:
<span id="lhc_title"><a title="Powered by Live Helper Chat" href="http://livehelperchat.com" target="_blank"><img src="<?php echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value?>//<?php echo $_SERVER['HTTP_HOST']?><?php echo erLhcoreClassDesign::design('images/general/logo_grey.png');?>" alt="Live Helper Chat" /></a></span> // working

First change:
<span id="lhc_title"><a title="THIS IS A CHANGE" href="http://livehelperchat.com" target="_blank"><img src="<?php echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value?>//<?php echo $_SERVER['HTTP_HOST']?><?php echo erLhcoreClassDesign::design('images/general/logo_grey.png');?>" alt="Live Helper Chat" /></a></span> // not working

Second change:
<span id="lhc_title"><a title="Powered by Live Helper Chat" href="http://livehelperchat.com" target="_blank"><img src="<?php echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value?>//<?php echo $_SERVER['HTTP_HOST']?><?php echo erLhcoreClassDesign::design('images/general/logo_grey.png');?>" alt="Live Helper Chat" /></a></span> // not working


Why does this error occur? Is there any better way to remove/change the tooltip and link of the icon in the chat widget?

Thanks for your help!

#4 2014-06-12 13:08:57

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Live Help Widget suddenly disappeared

Sorry but from there i do not see. Problem. The only idea you splitted string in multiple lines, there should be one line. Without personal look i really cannot tel...

Offline

Board footer