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 Rate Thread Display Modes
  (#1) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,451
Join Date: Jan 2006
Location: United Kingdom
Make Live chat icon only available to logged in users - 06-05-2007, 05:00 PM

Tested on: 3.30.00
Should work: for subsequent versions
By: Jamie Edwards

Testing:
Quote:
I came up with this and tested it briefly, it seems to work and doesn't break anything that I can see
Description:
Quote:
This small template mod makes the Live Support icon only visible to users who are logged in.
Notes:
Quote:
There is a drawback to using this in that it stops tracking users who are not logged in. To work around this, generate another tracking tag and include it in your templates (Make Live chat icon only available to logged in users)
In the navbar template, find:
Code:
<table width="100%"  border="0" cellspacing="0" cellpadding="3"><tr><td align="center">
        <script language="javascript" src="<{$swiftpath}>visitor/index.php?_m=livesupport&_a=htmlcode&departmentid=0&fullname=<{urlencode value=$_USER[fullname]}>&email=<{urlencode value=$_USER[primaryemail]}>"></script>
        </td></tr></table>
Replace with:

Code:
<{if $_USER[loggedin] == true}><table width="100%"  border="0" cellspacing="0" cellpadding="3"><tr><td align="center">
        <script language="javascript" src="<{$swiftpath}>visitor/index.php?_m=livesupport&_a=htmlcode&departmentid=0&fullname=<{urlencode value=$_USER[fullname]}>&email=<{urlencode value=$_USER[primaryemail]}>"></script>
        </td></tr></table><{/if}>


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---

Last edited by Jamie Edwards; 06-08-2008 at 10:23 AM.
   
Reply With Quote
  (#2) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
06-05-2007, 05:50 PM

Works great...however the only drawback is that the live support application no longer tracks anyone who visits your site, it now only tracks when a user logs in.
   
Reply With Quote
  (#3) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,451
Join Date: Jan 2006
Location: United Kingdom
06-05-2007, 05:56 PM

You could generate a visitor tracking HTML tag, and output that. To generate a tracking tag, in the staff control panel go to Live Support > Generate Tag > Tracking.

Instead, replace with:
Code:
        <{if $_USER[loggedin] == true}><table width="100%"  border="0" cellspacing="0" cellpadding="3"><tr><td align="center">
        <script language="javascript" src="<{$swiftpath}>visitor/index.php?_m=livesupport&_a=htmlcode&departmentid=0&fullname=<{urlencode value=$_USER[fullname]}>&email=<{urlencode value=$_USER[primaryemail]}>"></script>
        </td></tr></table><{else}> ___ YOUR TRACKING HTML TAG HERE ___ <{/if}>
I haven't tested this, so please use with caution.


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#4) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
06-05-2007, 06:07 PM

Great, that worked perfectly. Thanks again Jamie.
   
Reply With Quote
  (#5) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,858
Join Date: Aug 2006
Location: Mumbai, India
06-05-2007, 06:17 PM

Exactly as I suggested, thanks for sharing



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#6) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
06-05-2007, 06:18 PM

Quote:
Originally Posted by supportskins View Post
Exactly as I suggested, thanks for sharing
Thank you as well...you did suggest it but Jamie gave me the code since I suck at modifying templates.
   
Reply With Quote
  (#7) Old
quipment Offline
New Member
 
Posts: 19
Join Date: Oct 2007
05-11-2007, 10:50 PM

It would be nice to have this as an option in the settings page of live support in a future release...
   
Reply With Quote
  (#8) Old
craigbrass Offline
Senior Member
 
Posts: 5,762
Join Date: Jun 2005
Location: Cumbria, UK
06-11-2007, 10:42 AM

Quote:
It would be nice to have this as an option in the settings page of live support in a future release...
Planned for V4 along with the ability of forcing users to login before they can access live support.


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

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#9) Old
quipment Offline
New Member
 
Posts: 19
Join Date: Oct 2007
24-02-2008, 05:48 PM

Maybe good idea to put this functionality in the Will Implement Section of V4
   
Reply With Quote
  (#10) Old
craigbrass Offline
Senior Member
 
Posts: 5,762
Join Date: Jun 2005
Location: Cumbria, UK
24-02-2008, 08:03 PM

I am sure there is already a thread in feature requests...


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

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
Reply

Tags
chat, icon, live, logged, make

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
Live Chat Offline Icon add URL Danym SupportSuite, eSupport and LiveResponse 0 02-02-2007 03:21 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