You will learn how to include a PHP file in your phpBB3 template(s).
Step1 Enable the use of PHP and PHPINCLUDE in your templates. In Administration Control Panel: General Tab -> Server Configuration Category -> Security settings
On the next page, select "Allow php in templates" to "Yes".
Step2 Include PHP or INCLUDEPHP in your template files. For example,
- Code: Select all
<!-- INCLUDEPHP file.php -->
Alternatively, this code should work as well:
- Code: Select all
<!-- PHP --> include("file.php"); <!-- ENDPHP -->
Note that the file path is relative to the templates directory.