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:
<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:
<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.