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

You are not logged in.

Announcement

#1 2015-07-01 09:10:53

herbhouse666
Member
Registered: 2015-07-01
Posts: 3

how to add a new field (theme) to offline widge

Hi, can you tell me how to add a new field (theme) to my offline widget?

I add input in: /chat/lhc_web/design/defaulttheme/tpl/lhchat/offline_form.tpl.php
And change $mail->Body in: /chat/lhc_web/lib/core/lhchat/lhchatmail.php
   
$mail->Body = str_replace(array('{Theme}','{phone}','{name}','{email}','{message}','{additional_data}','{url_request}','{ip}','{department}','{country}','{city}','{prefillchat}'), array($chat->Theme,$chat->phone,$chat->nick,$chat->email,$inputData->question,$additional_data,(isset($_POST['URLRefer']) ? $_POST['URLRefer'] : ''),erLhcoreClassIPDetect::getIP(),(string)$chat->department,$chat->country_name,$chat->city,$prefillchat), $sendMail->content);

Can you tell me what I'm doing wrong?

Offline

#2 2015-07-01 09:15:10

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

Re: how to add a new field (theme) to offline widge

it won't work like that and to explain it just would take just to long. You will have just analyse current code...

Offline

#3 2015-07-01 10:47:02

herbhouse666
Member
Registered: 2015-07-01
Posts: 3

Re: how to add a new field (theme) to offline widge

Than if you can please just guide me. Tell me with files are responsible for receiving form fields.

Offline

#4 2015-07-01 14:52:23

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

Re: how to add a new field (theme) to offline widge

As i told, you will have to figure out yourself. In general - read documentation. I won't solve your problems for you smile

Offline

#5 2015-07-07 06:26:30

herbhouse666
Member
Registered: 2015-07-01
Posts: 3

Re: how to add a new field (theme) to offline widge

I solved my problem smile

Offline

Board footer