Custom Header on phpBB3...includes?

Discussions about the phpBB3 Forum. How to get the best from this powerful script.
Note that there is no official support for phpBB3 here, a place to share more than to ask for.

Moderator: Moderators

Custom Header on phpBB3...includes?

Postby Astonephus » Fri Jun 13, 2008 2:17 pm

In previous versions of phpBB I have edited the /includes/page_header.php and /includes/page_footer.php and have done a php include of my headers and footers for my layout.

I've seen a number of threads talking about now needing to edit overall_header.php and overall_footer.php for each Style to get this same effect. I've done this and it works for the most part, but I've noticed it doesn't seem to let me do php includes or at least they are not being honored. For instance, in overall_header.php after including the portion for my header just above </head> I also want my navigational bar included though the following does nothing.

<? include "navbar.php"; ?>
(obviously w/ the correct path and what-not)

In phpBB2 you could do php includes in this manner in the page_header.php and page_footer.php files and they were honored. What is going on here? Ideas?
Posts: 1
Joined: Fri Jun 13, 2008 2:12 pm


Postby HB » Sat Jun 14, 2008 4:18 am

By default, php includes are disabled for template files because of security concerns. See ... =50&t=1325 for more.
Dan Kehn
phpBB SEO Team
phpBB SEO Team
Posts: 1626
Joined: Mon Oct 16, 2006 2:25 am

Postby SeO » Sat Jun 14, 2008 9:04 am

You should though be able to use the INCLUDEPHP template tags in template if you allow it in ACP :

Code: Select all
<!-- INCLUDEPHP ./path/file.php -->

Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Return to phpBB Forum


  • Related topics
    Last post

Who is online

Users browsing this forum: No registered users and 12 guests