Jump to content

sotto

Member
  • Posts

    5
  • Joined

  • Last visited

About sotto

sotto's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Can somebody elaborate on the solution, please?
  2. I have a `hooks.php` inside a otherwise working Server/Provisioning Module and none of the added hooks are working. I added this simple hook to verify it: ```php add_hook('ClientLogin', 1, function($vars) { logModuleCall('server module', 'testhook'); }); ``` ...nothing's logged. I was beginning to think, that Module Hooks are not allowed in Server Modules but the [sample Provisioning Module]{https://github.com/WHMCS/sample-provisioning-module/blob/master/modules/servers/provisioningmodule/hooks.php) suggests they are. What am I missing?
  3. Global language variables can me accessed via the `LANG::trans` function, but is it also possible to access a modules translation variables in the modules `hooks.php`? According to the documentation they only get passed to the `_output` and `_sidebar` functions array as `_lang`. Thanks!
  4. Thanks Brian! I was hoping for a more generic way, that can also be used in other templates, but this might just work for my current problem.
  5. Hi, I need to add runtime generated data to an existing Client Area template e.g. `complete.tpl`. In prior WHMCS versions I used JavaScript to retrieve the data and inject it. But due to some changes to WHMCS 6/7 my self-made i18n code isn't working anymore. I'm now trying to achieve the same thing with tools that WHMCS provides. Addon Modules basically provide everything I need, but as far as I see, the templates can only be used to render custom Client Area pages, not extending already existing ones. Can this be done with Addon Modules or something else? Provisioning Modules allow something similar; it's `_clientarea` function injects into `{moduleclientarea}` in `clientareaproductdetails.tpl`. I need this, but in a more generic way. Any ideas? Thanks a lot!
×
×
  • 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