Page 1 of 1
Including file in PHPBB Forum template
Posted: Tue Jul 22, 2003 7:28 pm
by RacerX
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.
Any ideas?
TIA
Posted: Tue Jul 22, 2003 7:35 pm
by qartis
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
Posted: Tue Jul 22, 2003 7:44 pm
by RacerX
Thank you!
I am looking at the file, and although I see some references to 'header', I'm not sure where to put my 'include'. Can you help?
Posted: Tue Jul 22, 2003 7:48 pm
by Gen-ik
Check out the forum(s) at
http://www.phpbb.com
Posted: Tue Jul 22, 2003 7:57 pm
by qartis
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.
Posted: Tue Jul 22, 2003 7:59 pm
by RacerX
Really? Thank you!
I'll give it a shot...
<homer simpson>mmm... includes</homer simpson>
Posted: Tue Jul 22, 2003 8:04 pm
by qartis
Er.. page_head
er.php

Posted: Tue Jul 22, 2003 8:14 pm
by RacerX
Ok, got it working (Gracias!).
Now is the a tag, like the #site.root# in ColdFusion, that will allow me to reference images located at the server root directory '/images'?
Currently my images are not loading.