Including file in PHPBB Forum template

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!

Moderator: General Moderators

Post Reply
User avatar
RacerX
Forum Newbie
Posts: 21
Joined: Tue Jul 01, 2003 9:21 am
Location: NorthEast USA

Including file in PHPBB Forum template

Post 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
qartis
Forum Contributor
Posts: 271
Joined: Sat Dec 14, 2002 4:43 pm
Location: BC, Canada
Contact:

Post 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
User avatar
RacerX
Forum Newbie
Posts: 21
Joined: Tue Jul 01, 2003 9:21 am
Location: NorthEast USA

Post 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?
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post by Gen-ik »

Check out the forum(s) at http://www.phpbb.com
qartis
Forum Contributor
Posts: 271
Joined: Sat Dec 14, 2002 4:43 pm
Location: BC, Canada
Contact:

Post 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.
User avatar
RacerX
Forum Newbie
Posts: 21
Joined: Tue Jul 01, 2003 9:21 am
Location: NorthEast USA

Post by RacerX »

Really? Thank you!

I'll give it a shot...

<homer simpson>mmm... includes</homer simpson>
qartis
Forum Contributor
Posts: 271
Joined: Sat Dec 14, 2002 4:43 pm
Location: BC, Canada
Contact:

Post by qartis »

Er.. page_header.php :)
User avatar
RacerX
Forum Newbie
Posts: 21
Joined: Tue Jul 01, 2003 9:21 am
Location: NorthEast USA

Post 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.
Post Reply