View Full Version : How do I use "includes" in the header and footer?
_
Mon 11th Dec '00, 9:21am
include("header.php");
include("footer.php");
I tried to add that in the header & footer. I went to options & turned on php parsing for the header & footer.. I get an error in global.php
The header & footer.php files are in my base directory, vB is in /forumz
Can anyone help me?
Thanks.
Freddie Bingham
Mon 11th Dec '00, 1:04pm
Interesting username. I hope v2.0 has a little better allowable username code...
i.e.
Options to specify minimum length of a username
Strip all white space from front and end of username
Option to list all characters you would like stripped from usernames (commas, etc) OR option to specify which characters ARE valid for a username (a-z, A-Z,0-9,-,+,=)
We need some POWER to do something here.
To use includes in the header and footer you need to turn on PHP processing (it is in the control panel option) for the header and footer. After that you may have questions regarding setting the header and footer variables. Search for "header" and "footer" in a search on this forum and you will find many helpful results
_
Mon 11th Dec '00, 2:45pm
Hmm..
I searched all over the forums.. but I can't really find what I'm looking for.
I'm using PHPNuke for my site @ the moment, it has a header & footer.php file that it uses on every page. I'm trying to use:
include ("http://www.banshee-clan.net/header.php");
in the header, under the styles menu
& the same for footer.php
Am I supposed to put this under the header template instead?
Freddie Bingham
Mon 11th Dec '00, 6:02pm
I believe the header section in styles and the header "template" are the same thing.
Look at this thread, I found it in 10 seconds with the search. It should do what you want, just make sure to turn on "Parse header as php" and "Parse footer as PHP"
vBulletin® v3.8.0 Release Candidate 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.