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

You are not logged in.

Announcement

#1 2015-11-18 10:38:37

c2o
Member
Registered: 2015-11-18
Posts: 2

Additional Information

Hey there,

I just set-up the livehelper chat. It works fine!
I noticed in the documentation for additional informations to online visitors.
https://livehelperchat.com/how-to-pass- … -302a.html

I've added the code from the Example to my script.

Now I can seen in the new heading "Additional information" at the online visitor info page.
But there are no informations.

I saw in another thread a suggestion.
Use:

[== HTML ==]
<pre>
<ul class="list-unstyled">
<?php 
foreach (json_decode($online_user->online_attr) as $custom_attribute) {
    echo "<li>".$custom_attribute."</li>";
}
?>
</ul>
</pre>

instead of:

[== HTML ==]
<pre>
<?php echo htmlspecialchars(json_encode(json_decode($online_user->online_attr),JSON_PRETTY_PRINT));?>
</pre>

So I've copied online_user_info.tpl.php the file from "defaulttheme/tpl/lhchat/online_user/" to "customtheme/tpl/lhchat/online_user/".
I've added some "Hello"-Lines on several postions in this file.
I've also added the custom output for these additional informations.

But I cant see any changes in the page. It seems that my custom file will not be used.

What am i doing wrong? Can somebody help me?

Bye
c2o

Offline

#2 2015-11-20 09:42:53

c2o
Member
Registered: 2015-11-18
Posts: 2

Re: Additional Information

I don't want to annoy someone, but does anyone got a solution or an idea for my problem?

Offline

#3 2015-11-24 17:53:46

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

Re: Additional Information

Hi,

I ques you have not disabled cache while developing.
https://livehelperchat.com/article/view/40

Offline

Board footer