PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am in the process of customizing PHPBB with my websites look & feel. I'd like to 'include' my header/ footer files for easy admin. Is there a way to do this?
The files I am working with are:
overall_header.tpl
overall_footer.tpl
I hope to include /inc/footer.inc which is at the website root. Since the 'overall' files are .tpl I am at a standstill.
You can't include headers/footers in the .tpl files, those get parsed through a php-html interpreter, for templating. Look in /includes/page_head.php and /includes/page_tail.php
The phpbb header is pure html, and their table is completely closed off, so it's safe to add another table (or tableset) around the phpbb html. Just put your included html at the top of page_head.php and the bottom of page_tail.php, and it should treat the phpbb forum as one box box, so you can work with it to shove it into your design as needed.