Mibew Messenger Community

General => Support => Topic started by: mharting on August 10, 2010, 08:21:59 PM

Title: Adding Group Name to chat pages
Post by: mharting 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?
Title: Re: Adding Group Name to chat pages
Post by: wooshman 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.