phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Custom Header on phpBB3...includes?

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 Forum
::  
Author Message
Astonephus



Joined: 13 Jun 2008
Posts: 1

Custom Header on phpBB3...includes?Posted: Fri Jun 13, 2008 2:17 pm    Post subject: Custom Header on phpBB3...includes?

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?
Back to top
HB
phpBB SEO Team
phpBB SEO Team


Joined: 16 Oct 2006
Posts: 809

Custom Header on phpBB3...includes?Posted: Sat Jun 14, 2008 4:18 am    Post subject: Re: Custom Header on phpBB3...includes?

By default, php includes are disabled for template files because of security concerns. See http://startrekguide.com/community/viewtopic.php?f=50&t=1325 for more.

_________________
Dan Kehn
Back to top
Visit poster's website
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

Custom Header on phpBB3...includes?Posted: Sat Jun 14, 2008 9:04 am    Post subject: Re: Custom Header on phpBB3...includes?

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

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


Wink

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 Forum
Page 1 of 1

Navigation Similar Topics

Jump to: