sullise Posted September 25, 2015 Share Posted September 25, 2015 Since we don't use WHMCS for support tickets I've been working on modifying the Six template to send them to our actual support desk. Figured out the hooks to change the URI for the navbar links (Support->Tickets and Open Ticket). But cannot seem to get rid of the Recent Support Tickets panel. This is the code I've been tinkering with: use WHMCS\User\Client; use WHMCS\View\Menu\Item; $ca = new WHMCS_ClientArea(); if ($ca->isLoggedIn()) { #remove the default Open Ticket item add_hook('ClientAreaHomepagePanels', 1, function ($homePagePanels) { $delPanel = $homePagePanels->removeChild('Recent Support Tickets'); }); } Any help would be appreciated. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 26, 2015 Share Posted September 26, 2015 for removing a panel, you don't really need to check if the user is logged in - they must be otherwise they wouldn't see the homepage panels! <?php use WHMCS\View\Menu\Item; add_hook('ClientAreaHomepagePanels', 1, function (Item $homePagePanels) { $homePagePanels->removeChild('Recent Support Tickets'); }); 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.