Help Center Live Community
April 25, 2014, 10:39:37 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Custom Welcome Messages By Department?  (Read 3425 times)
johnny_n
Not too much to say...
*
Offline Offline

Posts: 4


« on: February 23, 2008, 08:02:58 AM »

Posted this in general, but it fits better here:

I'm wondering if anyone has modified HCL to generate custom welcome messages by department when someone initiates a chat? 

In other words, when customer initiates chat w/ "sales", they get the message, "Welcome to Sales" before they enter the nickname.  When they initiate a chat w/support, they get "Welcome to Support."

It might be that this exists already and I just haven't found it yet. 

But if not, in order to do it, what would I need to modify?  I'm sure it's an easy hack, I'm just not strong in php & have never used Smarty templates.

john.

EDIT: Thanks for the overwhelming response.  Finally had a sec to take a look at this.  Here is the mod:

In live_main.tpl:

replace:

Code:
<table width="90%" border="0" cellspacing="0" cellpadding="0" class="list">
  {if $nick_show == true}<tr class="main">
    <td><div align="center">{if $retry == 'true' && $nick == ''}<b>{$lang.retry_live_nick}</b>{else}{$lang.live_nick}{/if}</div></td>
  </tr>
  <tr>{/if}
    <td><div align="center">{if $nick_show == false}<input name="nick" type="hidden" value="{$nick}" />{else}<input name="nick" type="text" size="20" value="{$nick}" /> {/if}<input type="submit" name="submit" value="{$lang.request_chat}" /></div></td>
  </tr>
</table>

With:

Code:
<table width="90%" border="0" cellspacing="0" cellpadding="0" class="list">
  {if $nick_show == true}<tr class="main">
    <td><div align="center">{if $retry == 'true' && $nick == ''}<b>{$lang.retry_live_nick}</b>{else}{$lang.live_nick}{/if}</div></td>
  </tr>
  <tr>{if $departmentid == '1'}<p><b>This is your message from department one.</b></p><br />
  {/if}</tr>
  <tr>{if $departmentid == '2'}<p><b>This is your message from department two.</b></p><br />
  {/if}</tr>
  <tr>{/if}
    <td><div align="center">{if $nick_show == false}<input name="nick" type="hidden" value="{$nick}" />{else}<input name="nick" type="text" size="20" value="{$nick}" /> {/if}<input type="submit" name="submit" value="{$lang.request_chat}" /></div></td>
  </tr>
</table>


This is for 'G' but I'm sure Bliss is similar.
« Last Edit: February 25, 2008, 06:50:07 PM by johnny_n » Logged
victor
HCL Member
****
Offline Offline

Posts: 266


WWW
« Reply #1 on: February 25, 2008, 07:43:23 PM »

thank you very much johnny_n for sharing it with the community
Logged

4GoodSolutions
Not too much to say...
*
Offline Offline

Posts: 37


« Reply #2 on: February 28, 2008, 07:07:21 AM »

Hello,

Nothing new is happening when I use code above!?

When visitor click on chat icon, then the visitor gets department names to chose among. After that just regular chat window is opening it self.

Am I missing something?
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.172 seconds with 18 queries.

Google visited last this page April 23, 2014, 11:03:22 PM