Integrating PHP Live! with WHMCS is a simple process of pasting the PHP Live! HTML Code into a template (.tpl) file.
- Open an FTP connect to your web server.
- Locate the directory where you installed WHMCS.
- Within the WHMCS directory, access the
- Inside the
templates/ directory, access the template you are currently utilzing (example:
templates/my_template/). Inside the
templates/my_template/ directory, there will be numbers of template (.tpl) files. The two primary templates of interests are the "header.tpl" and the "footer.tpl". Both the "header.tpl" and the "footer.tpl" files are typically included on every page, thus, it is recommended to place the PHP Live! HTML Code in either of these files. However, you can place the HTML Code in any of the template files.
For "header.tpl" file, be sure to paste the HTML Code anywhere AFTER the <body> tag. If placing the code in the "footer.tpl" file, be sure to paste the HTML Code anywhere BEFORE the </body> tag.
<!-- Paste Your PHP Live! HTML Code Here -->
- Save the file and done!
Mac OS NOTE: If attempting to edit the .tpl file on a Mac, be sure the "TextEdit" tool has formatting set to display HTML Code rather then formatted text. The setting is located at TextEdit->Preferences->Open and Save. On the "Open and Save" area, for the When Opening a File option, check the "Display HTML files as HTML code instead of formatted text".