Adding php code in your phpBB templates using the classical <?php ?> tags won't work.
To make things possible first go to your Administration Control Panel -> General -> Security Settings and enable Allow php in templates option.
Then you can use the following syntax to add php code:
<!-- PHP --> echo "PHP Code!"; <!-- ENDPHP -->
To include php files:
<!-- PHP --> include("/path/to/file.php"); <!-- ENDPHP -->
1 comments:
Great post, I benefited from it. Couldn't find a decent include example for phpbb3.
Thanks,
ultimatum.
Post a Comment