Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you want to add dynamic content to the clientarea template, the module provides an easy option without having to use WHMCS hooks or similar for integrating the content.
The function can be used to output data from the NOC-PS server properties or to display other content which you generate yourself via PHP.

How to

...

use

  • Navigate into the directory /modules/servers/dedicated/
  • Open the file customconfig.example.php and copy the function "nocpsforwhmcs_customOutputData". Also copy the function_exists check.
  • Open the file customconfig.php, or create the file if it does not exist and insert the copied code.
  • Modify the PHP code accordingly, return an array and use the array in the module template file.

The module does pass 2 arguments to the nocpsforwhmcs_customOutputData function:

...