Jump to content

Where to Remove 'Network Status' from WHMCS 6.2 Six Theme


R-n-R

Recommended Posts

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 by Amcom
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated