Jump to content

jesus614

Senior Member
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About jesus614

  • Rank
    Junior Member
  1. hello in created a hook with the name file.php in the path includes / hook and placed the following code: <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar) { $service = Menu::context('service'); $domain = $service->domain; if (!is_null($primarySidebar->getChild('Service Details Actions'))) { $primarySidebar->getChild('Service Details Actions') ->getChild('Login to cPanel') ->setUri('http://'.$domain.'/cpanel'); $primarySidebar->getChild('Service Details Actions') ->getChild('Login to Webmail') ->setUri('http://'.$domain.'/webmail'); } }); Now when logging in as a client and clicking on login to cpanel nothing was modified. I want the link to send to the domain of the client / cpanel (the client must place their credentials).
  2. Welcome to WHMCS.Community jesus614! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

×

Important Information

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