Author Topic: Adding Group Name to chat pages  (Read 7732 times)

0 Members and 3 Guests are viewing this topic.

mharting

  • Jr. Member
  • **
  • Posts: 1
Adding Group Name to chat pages
« on: August 10, 2010, 08:21:59 PM »
We are using Groups to mimic our department structure.  When the Chat window opens, currently it does not show anything at the top of the page to identify who you are talking to.  I would like for the department name to show like "Help Desk" or "Customer Service".  Is there an easy way to add the group name to the templates so it will always display?

wooshman

  • Full Member
  • ***
  • Posts: 8
Re: Adding Group Name to chat pages
« Reply #1 on: April 25, 2014, 06:38:39 PM »
Old post with an answer.  This will put the selected department on the second line of chat after the users name.

client.php

Work on version 1.6.11

Line 66 and 67 reads:
Code: [Select]
$email = getparam("email");
$referrer = urldecode(getparam("referrer"));

Add this on the next line:
Code: [Select]
if ($groupname !="") $firstmessage .= "\n Branch: $groupname";
So now looks like:
Code: [Select]
$email = getparam("email");
$referrer = urldecode(getparam("referrer"));
if ($groupname !="") $firstmessage .= "\n Department: $groupname";

This little mod also helps the agent once the chat has been answered if the agent covers a few departments.
« Last Edit: April 25, 2014, 06:45:54 PM by wooshman »