R-n-R Posted January 2, 2016 Share Posted January 2, 2016 Have an install of WHMCS 6.2.0 and it isn't being used for Hosting. So I would like to remove the Network Status on Navigation and other places it shows. Can some one tell me where that can be done? Thanks in Advance! 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted January 2, 2016 Share Posted January 2, 2016 here http://docs.whmcs.com/Client_Area_Sidebars_Cheatsheet#Hiding.2FRemoving_a_Sidebar_Menu_Item http://docs.whmcs.com/Client_Area_Navigation_Menus_Cheatsheet#Hiding.2FRemoving_a_Menu_Item 0 Quote Link to comment Share on other sites More sharing options...
R-n-R Posted January 3, 2016 Author Share Posted January 3, 2016 Thanks sentq, looked all over for those, couldn't find. 0 Quote Link to comment Share on other sites More sharing options...
Amcom Posted January 6, 2016 Share Posted January 6, 2016 (edited) If this helps, here is the file I use anything.php ( includes/hooks ) <?php #adding Menu Item to primaryNavbar use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { /** Add "Welcome" to the menu item. **/ $primaryNavbar->addChild('Welcome') ->setUri('index.php') ->setOrder(5); $primaryNavbar->addChild('Hosting Plans') ->setUri('sharedhosting.php') ->setOrder(60); /** Rename the "Home" menu item. **/ $primaryNavbar->getChild('Home') ->setLabel('Account Overview') ->setUri('clientarea.php'); /** Remove unwanted menu items **/ if (!is_null($primaryNavbar->getChild('Network Status'))) { $primaryNavbar->removeChild('Network Status'); } /** Remove unwanted menu items from the support menu **/ if (!is_null($primaryNavbar->getChild('Support'))) { $primaryNavbar->getChild('Support') ->removeChild('Announcements') ->removeChild('Network Status') ->removeChild('Downloads'); } /** Add CSF Manager to the Support Menu **/ if (!is_null($primaryNavbar->getChild('Support'))) { $primaryNavbar->getChild('Support') ->addChild('Firewall Management', array( 'label' => Lang::trans('Manage Firewall'), 'uri' => 'index.php?m=csfmanager', 'order' => '1', )); } }); Edited January 6, 2016 by Amcom 0 Quote Link to comment Share on other sites More sharing options...
R-n-R Posted January 10, 2016 Author Share Posted January 10, 2016 Thanks Amcom! 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.