Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
I have tried this link https://livehelperchat.com/how-to-pass- … -302a.html but unable to achive that.
Do I have to do any configuration at admin side ?
Offline
No configuration,
Required, i tried myself this morning and all worked.
Offline
Hiya Remdex,
i'm trying it as well, and it's not working 100% here. The Visitor browse information tab is showing the additional information tab, but it has no content.
I'll get you some screens:
any idea what's wrong? I am making use of memcached
Last edited by visconti (2015-02-25 14:30:41)
Offline
Seems there's something wrong with the JSON_PRETTY_PRINT
if i change the echo'ing line in online_users_info.tpl.php from
<?php echo htmlspecialchars(json_encode(json_decode($online_user->online_attr),JSON_PRETTY_PRINT));?>
to
<?php echo $online_user->online_attr;?>
i'm getting the following echo:
Offline
getting there... almost
i now have the following code in online_user_info.tpl.php
[== php ==]
<pre>
<ul class="list-unstyled">
<?php
foreach (json_decode($online_user->online_attr) as $custom_attribute) {
echo "<li>".$custom_attribute."</li>";
}
?>
</ul>
</pre>
echoing the values perfectly! however.. now i'm missing the values like: email, phone and username
Offline
Perhaps you have to old version which does not support JSON_PRETTY_PRINT
Because in my enviroment after
[== PHP ==]
<?php echo htmlspecialchars(json_encode(json_decode($online_user->online_attr),JSON_PRETTY_PRINT));?>
I get something like
So in any case, all works here.
Offline
strange, maybe a server setting or so, running the latest instance of LHC.
Cheers for the confirmation though ;-)
Offline