Super appreciative man, thank you very much.
Just to let others know if they're curious, I've installed this live-chat side-by-side with osTicket: https://livehelperchat.com/osticket-extension-394a.html
Its called Live Helper Chat.
It also includes a way to embed a chatbox.
I'm basically allowing an internal chatbox for the IT department to osTicket.
However we have other departments that utilize the osTicket system as well, and I want to dedicate this internal chat for IT agents only. Hence the request above.
I am editing the "header.inc.php" file. Not sure if this is the best one, but it was the only one I was able to get the chat widget to appear consistently on osTicket for staff.
At the bottom of that file I've included this snippet of code:
<?php
require_once(INCLUDE_DIR.'class.staff.php');
if ($staff->canAccessDept((int) 1)) {
echo "<script type='text/javascript'>";
echo "var LHCChatboxOptions = {hashchatbox:'empty',identifier:'default',status_text:'Chatbox'};";
echo "(function() {";
echo "var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;";
echo "po.src = '//10.2.10.108/lhc/index.php/chatbox/getstatus/(position)/bottom_right/(top)/300/(units)/pixels/(width)/300/(height)/300/(chat_height)/220';";
echo "var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);";
echo "})();";
echo "</script>";
}
?>
However now the ticket queue below the upper dashboard has become completely invisible and I'm not sure why....
I can see the dashboard, settings, manage, emails, agents, etc. links/menus up above but nothing below.
I think I'm screwing up with the 'include' of the class.staff.php... maybe its not a require_once but an include_once I need to use?
Regardless, when I figure it out, I can write up a bash script to automate the install/config of the Live Helper Chat and write a tutorial on how to get it to show up on your Staff page and IDEALLY get it so you can dictate which departments have which chats.
This works great because you can create multiple 'chats' per departments natively within Live Helper Chat UI and then add the chat 'ID' to that snippet of javascript code (up above) to tell it which chat widget to call.
Also, how did you get code to show up in the code-box @KevinTheJedi ! lol, I haven't figured out this new forum yet.
EDIT: NVM figured it out ? its bracket code close-bracket btw guys...