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 A felhasználók hasznosnak találták ezt
Hasznosnak találta ezt a választ?

Kapcsolódó cikkek

System Requirements

Requirements You will need at least one Cent OS 6 (64 bit recommended) VPS/Dedicated server with...

EULA

END USER LICENSE AGREEMENT This copy of ServerPing ("the Software Product") and...

Recovering the MongoDB replicaset after a hard server reboot on 32bit systems

If one of your check servers crashes/was hard rebooted and it is running MongoDB you will most...

Installing the MongoDB pecl extension on a cPanel server

If your cPanel server has /tmp mounted with the noexec option you may run into the following...

Setting up a Custom SMS Gateway

In version 1.08 or later, ServerPing supports using any SMS gateway through a custom php...