miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Search | Statistics | Manual |
Re-cycled miniBB Support Forums / Re-cycled /   

Footer & Header with php code

Author bkai
Registered
#1 | Posted: 14 May 2008 09:20 
Hi there,

I know there are a few posts on this topic in this forum (e.g. http://www.minibb.com/forums/index.php?action=vthread&forum=5&topic=1298) but none of them explain in a simple way how to use yours website's header and footer that include php code.

There was a lot simpler way of getting this to work than the above mentioned method. I actually had it working a few months ago, but then I lost some of my data and I can't remember how I did it.

So here again my question:

How can I include my existing header.inc and footer.inc files (both contain serveral lines of php code) into my forum template? I know I have to touch the bb_plugins. What simple way is there?

The description in the manual didn't really help.

Cheers
Kai

Author Paul
Lead Developer
#2 | Posted: 14 May 2008 12:48 | Edited by: Paul 
You may try to look in manual for
$includeHeader
$includeFooter

and try to use them for your files setting the direct server path. Note that if you refer to variables, they must be set as $GLOBAL.

See also:

reading minibb variables in custom php header / footer
Using {$...} tags in custom header.php and footer.php?

Re-cycled miniBB Support Forums / Re-cycled / Footer & Header with php code Top
This topic is closed. New replies are not allowed.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB