Help Center Live Community
April 24, 2014, 08:46:16 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: Display department on text link  (Read 6992 times)
Gilmore
Not too much to say...
*
Offline Offline

Posts: 3



WWW
« 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
Logged

Thanks,

Gilmore
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #1 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).
Logged

how may I help you today?
Gilmore
Not too much to say...
*
Offline Offline

Posts: 3



WWW
« Reply #2 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
Logged

Thanks,

Gilmore
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #3 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.
Logged

how may I help you today?
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.149 seconds with 19 queries.

Google visited last this page April 14, 2014, 04:57:12 PM