Kayako logo
Feature Requests Have a feature request for SupportSuite, eSupport and LiveResponse? Post in here.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
CSI -> Live support button permissions (registered only, etc) - 05-05-2007, 07:12 PM

Instead of adding login scripts to the live support window, why can't we add the live support icon to the user group template. That way we can toggle it on or off for registered users. That way we can ensure that only registered users can see the Live Support icon.
   
Reply With Quote
  (#2) Old
Jamie Edwards Online
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,444
Join Date: Jan 2006
Location: United Kingdom
05-05-2007, 09:06 PM

You could do this with some custom modification.

Do you mean make a widget that when clicked on, the Live Chat window opens?


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

Quote:
Originally Posted by Jamie Edwards View Post
You could do this with some custom modification.

Do you mean make a widget that when clicked on, the Live Chat window opens?
I used the term widget because thats what was used when you create/modify user groups. Why can't we set permissions for live support as well so that when a typical user logs in then only then they can see the live support icon.

Im sure I can do this by modifying code but I think that if this is something that can easily be done via the tool itself, it would be much easier for the beginner user.

Would you happen to know how to modify the template to get this to work?
   
Reply With Quote
  (#4) Old
Jamie Edwards Online
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,444
Join Date: Jan 2006
Location: United Kingdom
05-05-2007, 11:09 PM

I came up with this and tested it briefly, it seems to work and doesn't break anything that I can see

This has been tested for version 3.10.02

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)
----------------------------------------------------------------
---
   
Reply With Quote
  (#5) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
06-05-2007, 12:17 AM

That was amazing...thanks Jamie. I wish I knew how to code in PHP.
   
Reply With Quote
  (#6) Old
jeffshead Offline
New Member
 
jeffshead's Avatar
 
Posts: 24
Join Date: Jun 2008
04-06-2008, 02:05 AM

Quote:
Originally Posted by Jamie Edwards View Post
I came up with this and tested it briefly, it seems to work and doesn't break anything that I can see

This has been tested for version 3.10.02

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, this is great and it works, but there is one small problem...

Let's say a user logs in when the Live Support status is Offline. Then a staff member changes the status to Online. The logged in user will not know Live Support is available because the Live Support image will not change unless the user refreshes his browser. It does not matter if the user bounces from page to page, the image will not change unless he refreshes his browser.

Is there anyway to fix this?

UPDATE: This must be some sort of caching issue. This problem exists with a clean install before anything is modified.

I'm not a programmer, but I do know there are realtime JavaSript clocks that update in the user's browser without a page refresh. Is there a way to keep the image updated in realtime or is that not feasible?
   
Reply With Quote
Reply

Tags
>, button, csi, live, permissions, registered, 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
Live Support - Registered Users Siora SupportSuite, eSupport and LiveResponse 8 04-05-2007 07:40 PM
Live Support Chat kicking me into Leave a Message mhutchins LiveResponse Desktop Application 3 25-08-2006 08:40 PM
Different Live Support buttons marcusg70 SupportSuite, eSupport and LiveResponse 1 21-06-2006 12:28 PM



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


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