Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About yeoman

  • Rank
    Junior Member

Recent Profile Visitors

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

  1. solved by using making the ID global and then including it with string in variable. which later i was able to successfully call in setUri.
  2. there are function for specifically admin side, such as createAccount etc. First is this logic is in module? For example for the provisioning module these are the various available functions https://developers.whmcs.com/provisioning-modules/supported-functions/ you can use one of them according to your need and write same logic with whmcs functions.
  3. ps: I also tried to call $params inside hook, it seems inside hook function params are empty, additionally i tried to add $params as argument in hook fucntion like function (MenuItem $primarySidebar, $params). it didn't work as well. my only problem is get link with ID that i'm obtaining via params.
  4. Hi, I'm very new to WHMCS and working email module, I'm trying to edit sidebar but SetURI won't accept any variable or direct $params. let me show you the code below $AccountURL = '/clientarea.php?action=productdetails&id='.$params["serviceid"].'&xeront=custom&page=mailboxes'; add_hook('ClientAreaPrimarySidebar', 0, function (MenuItem $primarySidebar) { // Primary_Sidebar-Service_Details_Actions-Cancel if (!is_null($primarySidebar->getChild('Service Details Actions'))) { $primarySidebar->getChild('Service Details Actions') // ->getChild('Cancel') // ->setLabel('Cancel ++') // ->setOrder(10) ->addChild('Accounts') ->setLabel('Accounts') ->setUri($AccountURL); // ->setOrder(20); // default menu items have orders 10, 20, 30, etc... } }); This hook exsits under Client area function as `modulename_ClientArea($params) {}`. Could you please help to get the URL dynamic with $params["serviceid"] because i won't know productid and i only obtains throu params as far as i understood. On the side note, I find the documentation very scattered so hard to extract information. Thank you
  5. Welcome to WHMCS.Community yeoman! 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