Kayako logo
Modifications & Addon Releases Modification guides and addons are posted here to share with the community. Do not post requests in here!

Notices

Reply
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
  (#1) Old
Chris Boulton Offline
Member
 
Posts: 151
Join Date: Jun 2003
Location: Sydney, Australia
Live Support client chat closed notification - 30-06-2007, 06:49 AM

SupportSuite/LiveResponse used to have this functionality - when a client closed the chat window you'd be notified of that. It was removed because the Kayako implementation of loading an image in the background was rather buggy - it didn't work.

The brilliant thing is - Kayako still left the code in place to kill the sessions so all we need to do is modify a template and the functionality is back.

With XMLHttp support in browsers (Ajax), it is now possible to bring this functionality back and have it work in all web browsers supporting Ajax. Other browsers will be ignored and use the current method of timing out sessions.

By installing the modification you'll be notified when a visitor closes the chat session - extremely useful.

To install it, it's simply a template modification.

Instructions:

1. Login to the Admin CP and select "Templates" on the left, then "Manage Groups"

2. Next to your template group, click on "Templates" to view the list of groups in that set.

3. Expand "Live Support."

4. Click on "chatframeset" to load that template in to the template editor.

5. Find:
Code:
</script>

<frameset rows="70,*,48,29" cols="*" framespacing="0" frameborder="NO" border="0" onUnload="javascript:endChat();">
Replace it with:
Code:
function endSession()
{
	var data = false;
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	try { data = new ActiveXObject("Msxml2.XMLHTTP"); } 
	catch (e) { try { data = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { data = false; } }
	@end @*/
	if (!data && typeof XMLHttpRequest!='undefined') data = new XMLHttpRequest();
	if (data) data.open("GET", endURL, false); data.send(null);
}

</script>

<frameset rows="70,*,48,29" cols="*" framespacing="0" frameborder="NO" border="0" onUnload="javascript:endSession();">
All done.

So far I've tested it in all major browsers and it seems to work fine.

Once again - enjoy!

Chris
   
Reply With Quote
  (#2) Old
craigbrass Offline
Senior Member
 
Posts: 5,762
Join Date: Jun 2005
Location: Cumbria, UK
30-06-2007, 08:27 AM

Nice one, thanks Chris!


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#3) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
05-07-2007, 11:03 PM

Wow! I don't know why i didn't see that post sooner!

Excellent chris!


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#4) Old
Racked Hosting Offline
Member
 
Posts: 353
Join Date: Mar 2006
Location: Manipal
15-07-2007, 03:24 PM

sweet, thanks a lot.
   
Reply With Quote
  (#5) Old
Rodney B Offline
Member
 
Posts: 41
Join Date: Sep 2007
02-11-2007, 12:19 AM

Will this work with the latest version of Kayako?
   
Reply With Quote
  (#6) Old
Digital Mayhem Offline
Community Moderator
 
Digital Mayhem's Avatar
 
Posts: 888
Join Date: May 2005
Location: Henderson, Nevada
03-11-2007, 08:21 PM

I just installed on mine which is running the latest version of SupportSuite and it works YAY now only if we could get it so when they close the chat it takes them to a Survey


Steve
Digital Mayhem, Inc.
AIM: Steve.Lawrence@Digital-Mayhem.com
MSN: Steve.Lawrence@Digital-Mayhem.com
GTALK: Steve.Lawrence@Digital-Mayhem.com
YAHOO: DigitalMayhem_Steve
SKYPE: DigitalMayhem_Steve

I'm Important
Posting & You
   
Reply With Quote
  (#7) Old
Carl Silver Offline
Member
 
Carl Silver's Avatar
 
Posts: 81
Join Date: May 2007
Location: UK
06-12-2007, 04:11 PM

Cool Thanks


Leapfrog AVIT Ltd - http://hosting.leapfrogavit.com
Shared Linux Hosting, Virtual Servers(NEW!), Dedicated Servers(NEW!), Domain Registration
UK Based Servers, cPanel 11, 99.9% Uptime Guarentee, Big Enough To Cope - Small Enough To Care!
MSN: carl.silver[AT]leapfrogavit[DOT]com
   
Reply With Quote
  (#8) Old
Rodney B Offline
Member
 
Posts: 41
Join Date: Sep 2007
29-02-2008, 08:50 PM

Worked perfectly. Thanks for this (it should be a sticky )
   
Reply With Quote
  (#9) Old
tom@ecentralsto Offline
New Member
 
tom@ecentralsto's Avatar
 
Posts: 15
Join Date: Sep 2007
Location: Florida
14-03-2008, 04:52 PM

I have attempted to add this modification, although I don't see the diffrence between the default and this mod with the new function. Does this mod info the staff that a chat session has ended? And is there something else that needs to be modified as well?

Thanks,


Thomas Pursifull
tom@ecentralstores.com
   
Reply With Quote
  (#10) Old
craigbrass Offline
Senior Member
 
Posts: 5,762
Join Date: Jun 2005
Location: Cumbria, UK
14-03-2008, 05:52 PM

Yes, it notifies the staff member of window closure.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#11) Old
Jackydev Offline
New Member
 
Posts: 4
Join Date: Aug 2008
05-09-2008, 12:45 AM

Works also on 3.30.02, thanks!
   
Reply With Quote
  (#12) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
05-09-2008, 02:54 AM

Excellent...I concur it works.


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
Reply

Tags
chat, client, closed, live, notification, support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with index.php and swift.php Paul Westhead Technical Chat 15 05-09-2008 07:21 PM
Live Chat Live support -> Proactive chat sent indicator ServWise.com Feature Requests 1 09-02-2008 11:53 AM
Live Support Chat kicking me into Leave a Message mhutchins LiveResponse Desktop Application 3 25-08-2006 08:40 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47