Log in

View Full Version : Header/Footer Question


Frequency
08-15-2002, 12:13 AM
I am new to PHP but I have written my own code that I would like to come up between the vbulletin header and footer its a simple " fill in the blank form" that stores data in a mySQL database. No matter how hard I try when I link to it I cant get it to come up between the vbulletin header and footer. Is there a way to do this with a php file (form.php for example)??? It does contain html code in it. What am I doing wrong? Do I have to make it a template? and if so how would I call it up?

Thanks,
Frequency

tHE DSS
08-15-2002, 06:10 AM
Make a new template with all the HTML in it... then inside your forum root 'global.php' script, find this :


eval("\$headinclude = \"".gettemplate('headinclude')."\";");
eval("\$header .= \"".gettemplate('header')."\";");


... and above that, put this :


eval("\$thingy_template = \"".gettemplate('thingy_template')."\";");


... substituting the 'thingy_template' bits with whatever you call the template you create.

Then, go into your 'header' template, and place : $thingy_template, wherever you want the template to appear.

Of course, this is assuming you want this template parsed for every page.

Specify the single page if you only want to display it on one page.