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

You are not logged in.

Announcement

#1 2015-04-22 07:52:32

deni
Member
Registered: 2015-04-15
Posts: 13

Editing LHC header

Hello,

So, when chat window is maximized I need lhc header to show my exact status as when it is minimized.
For example, if chat is online and when it is minimized it says "We are online, please chat with us", I want to make it the same when user maximizes the chat.
Same for offline. (lhc_header)

I understood I could do this with if / else statements, but which file do I need to edit? How do I edit lhc_header this way?

Thanks.

Offline

#2 2015-04-22 07:53:33

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

Re: Editing LHC header

Use github search

Offline

#3 2015-04-22 08:21:11

deni
Member
Registered: 2015-04-15
Posts: 13

Re: Editing LHC header

I did mate smile

https://github.com/LiveHelperChat/liveh … &type=Code


Which file needs to be edited?

container.tpl.php or widget_theme.tpl.php

Offline

#4 2015-04-22 08:22:52

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

Re: Editing LHC header

Override container.tpl.php, never edit anything from defaulttheme folder, always override. How to override you will find in a documentation

Offline

#5 2015-04-22 08:42:11

deni
Member
Registered: 2015-04-15
Posts: 13

Re: Editing LHC header

I edit it but it just doesn't appear...
Do you have any advices?

Thanks.

Offline

#6 2015-04-22 08:42:48

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

Re: Editing LHC header

The only advice read documentation. About disabling casche etc...

Offline

#7 2015-04-22 08:47:06

deni
Member
Registered: 2015-04-15
Posts: 13

Re: Editing LHC header

Of course I disabled cache and enabled the debug mode. This is just a wall I stumbled on.

I tried this code:

<div id="lhc_header"><?php if($isOnline == false) echo '<a id="offline-icon"></a>'; else echo '<a id="online-icon"></a>';?></div>

Doesn't work.

Offline

#8 2015-04-22 08:47:52

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

Re: Editing LHC header

Sorry, but you have all required info. From here you are on your own.

Offline

#9 2015-04-22 08:48:55

deni
Member
Registered: 2015-04-15
Posts: 13

Re: Editing LHC header

Okay, thanks for your time. smile

Offline

Board footer