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

You are not logged in.

Announcement

#1 2015-07-25 17:31:29

codewidsaurav
Member
Registered: 2015-06-27
Posts: 50

want to show extra info in pending chat list

i want to show something extra in pending chat list like url from where user is coming , so i wrote {{chat}} , i can not get user url . based on previous question , i tried making changes to "lhchat/syncadmininterface.php" but i do not see any changes to {{chat }}, how can i show user current url from where he is doing chat basically i just want to show domain name as used in embed script


please guide me

Offline

#2 2015-07-25 18:15:03

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

Re: want to show extra info in pending chat list

If you make changes to syncadmininterface.php you have to clear cache.
https://livehelperchat.com/article/view/40

Offline

#3 2015-07-25 18:36:52

codewidsaurav
Member
Registered: 2015-06-27
Posts: 50

Re: want to show extra info in pending chat list

hi cache is disabled

Offline

#4 2015-07-25 18:38:31

codewidsaurav
Member
Registered: 2015-06-27
Posts: 50

Re: want to show extra info in pending chat list

i have set this

      'templatecache' => false,
      'templatecompile' => false,
      'modulecompile' => false,

Offline

#5 2015-07-25 18:40:57

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

Re: want to show extra info in pending chat list

Most likely you forgot to tweak
https://github.com/LiveHelperChat/liveh … ce.php#L88 this part. It adds list of fields which should be ignored. Perhaps in your case it should be logical just remove this part. But it will increase bandwidth because all fields will be selected from DB.

Offline

#6 2015-07-25 18:44:40

codewidsaurav
Member
Registered: 2015-06-27
Posts: 50

Re: want to show extra info in pending chat list

thanks a lot i just want extra "referrer" field not all how can i do this so that bandwidth will not be affected

Offline

#7 2015-07-25 18:56:12

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

Re: want to show extra info in pending chat list

Offline

#8 2015-07-26 04:22:56

codewidsaurav
Member
Registered: 2015-06-27
Posts: 50

Re: want to show extra info in pending chat list

thanks for that now i got refferer, now i want to make some chnages to refferer value like getting mapped value of reffere from my custom table,

i worte below code below the line "$pendingChats = erLhcoreClassChat::getPendingChats(10,0,$additionalFilter);"

$pendingChats['refferer']='new test';
nothing changed

Offline

#9 2015-07-26 05:07:18

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

Re: want to show extra info in pending chat list

If you don't know how to debug i'm afraid not very mutch help you will get here, like first thing you had to do was

print_r($pendingChats);

it's an array not single element.

Offline

#10 2015-07-26 05:13:02

codewidsaurav
Member
Registered: 2015-06-27
Posts: 50

Re: want to show extra info in pending chat list

i treid that print_r but where can i see print_r output

Offline

#11 2015-07-26 05:14:44

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

Re: want to show extra info in pending chat list

Offline

#12 2015-07-26 05:24:02

codewidsaurav
Member
Registered: 2015-06-27
Posts: 50

Re: want to show extra info in pending chat list

when i wrote below code and enable debug output, it does not show array and also pending chats disappared

echo 'ddsddddddddd<pre>';
print_r($pendingChats);
echo '</pre>';

Offline

#13 2015-07-26 05:32:43

codewidsaurav
Member
Registered: 2015-06-27
Posts: 50

Re: want to show extra info in pending chat list

thanks a lot i got smile

Offline

Board footer