In order to access the client area of serverping from a custom module name, you will need to install the ServerPing alias module which allows you to access the client area from a custom module name. e.g. index.php?m=monitoring instead of index.php?m=serverping.
- Download the ServerPing Alias Module at http://www.serverping.net/serverping_alias.tar.gz
- Extract the file and upload the monitoring folder to your WHMC's module/addons directory.
This module by default allows you to access the ServerPing client area from index.php?m=monitoring instead of index.php?m=serverping. It can be renamed so you can access the client area of ServerPing through any module name you would like.
** To use the default index.php?m=monitoring Alias **
- Create a symbolic link to the main module/addon/serverping.php file from within the monitoring directory.
- e.g. ln -s /home/admin/whmcs/modules/addons/serverping/serverping.php /hone/admin/whmcs/modules/addons/monitoring/serverping.php
- Create a symbolic link to the ServerPing's template directory from within the monitoring directory.
- e.g. ln -s /home/admin/whmcs/modules/addons/serverping/templates/ /home/admin/whmcs/modules/addons/monitoring/templates
- Active the module in WHMCS and you will now be able to access the client area from index.php?m=monitoring
- After you have verfied the new module alias is working, edit the ServerPing server module at modules/servers/severping.php
- Find the serverping_ClientArea function and update the links in the $code variable to your new module alias.
** To use a custom module name, index.php?m=yourname **
- Create a symbolic link to the main module/addon/serverping.php file from within the monitoring directory.
- e.g. ln -s /home/admin/whmcs/modules/addons/serverping/serverping.php /hone/admin/whmcs/modules/addons/monitoring/serverping.php
- Rename each function in the monitoring.php file to the alias you would like to use, for example if you would like to access the client area module from index.php?m=servermonitoring you would rename the functions to: servermonitoring_config, servermonitoring_clientarea
- Rename the monitoring.php file to the same name as above, continuing our example above rename this file to servermonitoring.php
- Rename the directory the same name
- Create a symbolic link to the ServerPing's template directory from within this new directory.
- e.g. ln -s /home/admin/whmcs/modules/addons/serverping/templates/ /home/admin/whmcs/modules/addons/servermonitoring/templates
- Active the module in WHMCS and you will now be able to access the client area from index.php?m=yourname
- After you have verfied the new module alias is working, edit the ServerPing server module at modules/servers/severping.php
- Find the serverping_ClientArea function and update the links in the $code variable to your new module alias.