Help Center Live Community

Support => Tips and Tricks => Topic started by: Gilmore on October 16, 2007, 04:38:22 AM



Title: Display department on text link
Post by: Gilmore on October 16, 2007, 04:38:22 AM
I noticed that when you use the text link for your link in gettting code it doesn't display the department name. i.e. the department name is Computer Support, is only displays, Live Support - On/Offline.
WOuldn't it be nicer to have it display the department name, Computer Support -On/Offline?

I believe this is the code for it. Can you just add the variable $departmentname to it? And if so, where? Is it in this part templates/Bliss/admin_code.tpl or in class/js/include.php?

Code:
<textarea name="all" cols="50" rows="5" id="all">
<!-- BEGIN Help Center Live Code, Copyright (c) 2005 Help Center Live. All Rights Reserved -->
<div id="div_initiate" style="position:absolute; z-index:1; top: 40%; left:40%; visibility: hidden;"><a href="javascript:Live.initiate_accept();"><img src="{$conf.url}/templates/{$conf.template}/images/initiate.gif" border="0"></a><br><a href="javascript:Live.initiate_decline();"><img src="{$conf.url}/templates/{$conf.template}/images/initiate_close.gif" border="0"></a></div>
<script type="text/javascript" language="javascript" src="{$conf.url}/class/js/include.php?live{if $action == 'text'}&text{/if}{if $action == 'invisible'}&invisible{/if}{if $cobrowse == '1'}&cobrowse{/if}{if $departmentid !== '0'}&departmentid={$departmentid}{/if}"></script>
<!-- END Help Center Live Code, Copyright (c) 2005 Help Center Live. All Rights Reserved -->
</textarea>
Thanks,
Gilmore


Title: Re: Display department on text link
Post by: HCL Admin on October 17, 2007, 03:01:53 AM
If I understand correctly you want to do this on your own page?  If so the variable won't be passed through PHP.  There might be a way around that, and in 3 it's something already added (along with being able to pass a username to the script).


Title: Re: Display department on text link
Post by: Gilmore on October 17, 2007, 11:54:12 PM
If it's in the next release, then I'll wait! So how far out is the new release? lol


Title: Re: Display department on text link
Post by: HCL Admin on October 23, 2007, 03:30:48 AM
I'll see about getting a hotfix together for it, it's really quite trivial to add a passthru for the data.