craigedmonds Posted December 7, 2016 Share Posted December 7, 2016 How do I remove the items in red as shown in the screenshot? - - - Updated - - - [sOLVED] I figured it out now. Have to edit /public_html/modules/servers/cpanel/template/overview.tpl 0 Quote Link to comment Share on other sites More sharing options...
pablobaldovi Posted December 7, 2016 Share Posted December 7, 2016 /modules/servers/cpanel/templates/overview.tpl regards 0 Quote Link to comment Share on other sites More sharing options...
Andreas Posted December 18, 2016 Share Posted December 18, 2016 how did you remove the "Login to Webmail" Im looking to add a field there. 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted December 19, 2016 Share Posted December 19, 2016 keep in mind this will be re-added to the template when updated. To remove the webmail login, use a sidebar hook. Something like this will do. Place this in a php file in whmcs/includes/hooks <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar) { if (!is_null($primarySidebar->getChild('Service Details Actions'))) { $primarySidebar->getChild('Service Details Actions') ->removeChild('Login to cPanel'); $primarySidebar->getChild('Service Details Actions') ->removeChild('Login to Webmail'); } }); 0 Quote Link to comment Share on other sites More sharing options...
Andreas Posted December 19, 2016 Share Posted December 19, 2016 Thanks tom How would I add a link in there? Im looking to add http://{$domain}/wp-admin 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted December 19, 2016 Share Posted December 19, 2016 This can be done as well. Take a look at the service details sidebar hook I wrote. Tear that apart, use it to get the service domain, and you can create a link from there. Additionally, take a look at the WHMCS docs on adding a sidebar (specifically social media) Both of these should be excellent resources to get you started through this . 0 Quote Link to comment Share on other sites More sharing options...
Andreas Posted December 19, 2016 Share Posted December 19, 2016 thats very cool. I will use that as is and add my link in there As for (specifically social media), I found that too And that is what I am using for other links in general. Any way to hide that section so it can not be seen when not logged in? 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.