jgshier Posted February 20, 2018 Share Posted February 20, 2018 I have an addon I created with a hook to add child. Which works when I'm on a the home page, the Store shows a drop down and Account shows a drop down. But if I click my addon, it goes to the page just fine. But once the page loads I can see each menu has a drop down option with arrow, but none work. I don't see any errors in the whmcs activity log. Is there away to fix? add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { $primaryNavbar->addChild('My Lists') ->setOrder(70); $primaryNavbar->getChild('My Lists') ->addChild('Channel List', array( 'label' => 'List 1', 'uri' => 'index.php?m=list1', 'order' => '1', )); $primaryNavbar->getChild('My Lists') ->addChild('List 2', array( 'label' => 'List 2', 'uri' => 'index.php?m=list2', 'order' => '2', )); }); Link to comment Share on other sites More sharing options...
jgshier Posted February 20, 2018 Author Share Posted February 20, 2018 Why do my posts have to be approved? Anyway in digging i have this included at the top of my tpl file. <script src="https://netdna.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> Which seems to be the cause. Can I not include this js ? Link to comment Share on other sites More sharing options...
sentq Posted February 21, 2018 Share Posted February 21, 2018 16 hours ago, jgshier said: Why do my posts have to be approved? Anyway in digging i have this included at the top of my tpl file. <script src="https://netdna.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> Which seems to be the cause. Can I not include this js ? WHMCS already has this file included, you don't need to include it again Link to comment Share on other sites More sharing options...
zomex Posted February 22, 2018 Share Posted February 22, 2018 As sentq said this file is already included in WHMCS as they merge a lot of scripts into 1. It's worth checking out the uncompressed version of this file to see which scripts are included. The same goes for the all.css file Link to comment Share on other sites More sharing options...
Recommended Posts