Jump to content

RyanWHM

Member
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About RyanWHM

  • Rank
    Junior Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Ah I see now, ok it is fixed, you sir are a legend! Thanks so much for helping me with this, much appreciated!
  2. Sorry I meant to say I am using this one: <?php # Cart Sidebar Removal / Resizing Hook # Written by brian! function cart_remove_sidebars_hook($vars) { $validtemplates = array("products","domainregister"); if ($vars['filename'] == "cart" && !in_array($vars['templatefile'],$validtemplates)) { $head_return = "<style>#order-standard_cart .pull-md-right { width:100%; } .sidebar {display: none;}</style>"; return $head_return; } } add_hook("ClientAreaHeaderOutput",1,"cart_remove_sidebars_hook"); I removed the one previously mentioned hook. So the above mentioned hook works great but does not remove the sidebar from the domains tab
  3. So this works great and hides the sidebars from the order form and centers everything nicely but it does not do anything to the domains tab , that still shows the side bar: <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 1, function (MenuItem $secondarySidebar) { if (APP::getCurrentFileName() == 'cart' && ($_GET['a'] == 'add' or $_GET['a'] == 'confdomains' or $_GET['a'] == 'confproduct' or $_GET['a'] == 'view')){ if (!is_null($secondarySidebar->getChild('Categories'))) { $secondarySidebar->removeChild('Categories'); } if (!is_null($secondarySidebar->getChild('Actions'))) { $secondarySidebar->removeChild('Actions'); } } }); I am using a slightly self modified template for the cart. What should I edit above in order to also hide and center on the domains page? (cart.php?a=add&domain=register) Thanks so much for helping me out with this 😄
  4. You read my mind, everything is off center, I have not updated to V8 yet. Thanks so much, I will try the suggested method and revert back 🙂
  5. Hi Brian! I thank you for this hook, just what I was looking for, but I also need to hide the categories side bar, could you perhaps assist me in adding it to the above mentioned hook for all steps so that it is hidden?
  6. Good Day I was wondering if this already exists and if not where is the best place to start on this. Basically it needs to set the dedicated IP of the reseller as a shared IP after account creation so that the reseller`s newly created cpanel accounts all fall under that IP. Basically isolating the reseller and all his clients to his dedicated IP. client buys Reseller package online that includes a dedicated IP at package level. Clients IP is for example 10.0.0.4. Client creates new cpanel accounts and cpanel accounts are given IP 10.0.0.4. currently only the resellers primary domain gets the dedicated IP and I have to manually log into WHM and set it as shared and if accounts were already created those cpanel accounts need to be changed to the resellers IP. I am trying to automate the process. Any advice would be much appreciated.
  7. Welcome to WHMCS.Community RyanWHM! 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.

×
×
  • 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