jacksony 10 Posted January 8 Hi, We are using third party KB (Kayako) and using Kayako ticket system. Can someone point us the template to change, or if there is an easy way, for us to modify, so that the KB section will point to our Kayako's one directly? Share this post Link to post Share on other sites
bear 39 Posted January 8 We do the same on one of our installs, and it's a matter of edits to the menu system via hooks, mostly. When setting it up, we loaded the pages as they are now and looked for all references to these, and worked our way through the templates to see where they were referenced. Don't forget the email templates, since some have a footer with a helpdesk link in them. Here's the KB one we use (change the obvious in the URL part): <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { $newURL = 'https://mydomain.com/desk/index.php?/Knowledgebase/List'; if (!is_null($primaryNavbar->getChild('Knowledgebase'))) { $primaryNavbar->getChild('Knowledgebase') ->setURI($newURL); } if (!is_null($primaryNavbar->getChild('Support'))) { $primaryNavbar->getChild('Support') ->getChild('Knowledgebase') ->setURI($newURL); } }); add_hook('ClientAreaSecondarySidebar', 1, function (MenuItem $secondarySidebar) { $newURL = 'https://mydomain.com/desk/index.php?/Knowledgebase/List'; if (!is_null($secondarySidebar->getChild('Support'))) { $secondarySidebar->getChild('Support') ->getChild('Knowledgebase') ->setURI($newURL); } }); We also created a Kayako database user with read only perms, and wrote a widget that will call that db and show ticket counts within the WHMCS admin dashboard. Didn't do that for customers, though. 1 Share this post Link to post Share on other sites
jacksony 10 Posted January 8 Thanks bear for sharing the code. Let me try it out to see if it will direct to Kayako KB! Share this post Link to post Share on other sites
bear 39 Posted January 8 Least I could do, no worries. :) Best thing once that's working for you is to visit as a customer and see any other references that might need fixing. There are ticket count blocks in the main client page and so on. Share this post Link to post Share on other sites
jacksony 10 Posted January 9 Thanks bear, I tested. It works like a charm! Now we are lessening the integration, as we reported to Kayako about KB integration issue, but until 2 weeks, there is no assistance from them. So we have to take it completely off the integration. Unfortunately, ticket count in customer whmcs is always zero, as their integration does not integrate that. Share this post Link to post Share on other sites
bear 39 Posted January 9 (edited) Here's a thread from a while back, in which Sparky had created/shared a script with me that was working in v5. It would likely need updating to work in the new WHMCS versions. The code wasn't shared there, but I have a copy of it here, I believe. Since it was mostly his work/effort, I can't share it unless he says it's ok, or maybe he'd still have that and be willing himself. Edited January 9 by bear spell check Share this post Link to post Share on other sites
jacksony 10 Posted January 9 Thanks for sharing the link. For now to keep things simple we will just leave the ticket count as it is. That was a while back already, may or may not work. And further more, don't think we can get much support from Kayako from the integration nowadays. Share this post Link to post Share on other sites