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

You are not logged in.

Announcement

#1 2014-04-22 16:56:34

Esteban S.
Member
Registered: 2013-12-28
Posts: 3

Callbacks arguments on chat close/create

Hi there, i was checking the example module and i see there is a callback folder
https://github.com/LiveHelperChat/livehelperchat-extensions/tree/master/customstatus/callbacks

where close_chat.php gets included when a chat is closed..and thats perfect for my needs, however, i would like to know if there is any global var(object) i can access in order to acces the chat info, for example:
<?php// close_chat.php$chatobject->getConversation();?>
thank you for any help

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

Offline

#2 2014-04-22 17:20:02

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

Re: Callbacks arguments on chat close/create

Hi,

Yes there will be available $chat variable which represents chat itself. In order to get a messages something like that should be there
https://github.com/LiveHelperChat/livehelperchat/blob/master/lhc_web/design/defaulttheme/tpl/lhexport/json.tpl.php#L3



2014-04-22 17:56 GMT+03:00 Esteban S. <estebansa...***.com>:

Offline

Board footer