|
Title: Custom Welcome Messages By Department? Post by: johnny_n 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. Title: Re: Custom Welcome Messages By Department? Post by: victor on February 25, 2008, 07:43:23 PM thank you very much johnny_n for sharing it with the community
Title: Re: Custom Welcome Messages By Department? Post by: 4GoodSolutions 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? |