Setting up WHMCS to work with the Public Report Page

WHMCS includes the header.tpl and footer.tpl file on every request made from an addon module. In order for the public reports page to display properly you will need to do the following so the header and footer can be disabled programmatically.

 

  • Edit your WHMCS template's header.tpl file
  • At the top of the file add the following:
    • {if $show_header ne "false"}
  • At the bottom of the file add the following:
    • {/if}
  • Edit your WHMCS template's footer.tpl file
  • At the top of the file add the following:
    • {if $show_footer ne "false"}
  • At the bottom of the file add the following:
    • {/if}
Next, in order for the page to display properly, edit the .htaccess file in the root of your WHMCS instance and add the following:
RewriteEngine On

# ServerPing Public Reports
RewriteRule ^monitoring/report/([a-z0-9]+)\.html$ ./index.php?m=serverping&report_id=$1 [L,NC]

 

  • 65 Users Found This Useful
這篇文章有幫助嗎?

相關文章

Setting up WHMCS Help Desk Alerts

ServerPing allows you to offer a monitoring with response service by giving customers the option...

Using a custom module name/link for your client area

In order to access the client area of serverping from a custom module name, you will need to...

Adding ServerPing to your Client Area template

You will need to provide a link to the SeverPing module from your client area. We recommend...

Create a package and restrict checks to those listed in the clients services

ServerPing supports creating a product/service and restricting the checks that a customer can add...

Sample Web Hook

  As part of our API alerts feature, your customers can add custom web hooks which will be...