miniBB Support Forums | 15 years on The Web
miniBB ®


 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Problem Building header.php to use with $includeHeader

Author kazooter
#1 | Posted: 1 Nov 2009 18:28 | Edited by: kazooter 
In building a custom header.php, i discovered a problem with my 'include' files. Functions within these included files are not able to access their declared Globals. The variables are available as normal outside the functions, but something about the way miniBB processes the header.php file seems to be destroying them as globals. Any suggestions?

Author Guest
#2 | Posted: 2 Nov 2009 03:29 
Without seeing the code it's hard to tell... but definitely, all variables must be declared as {$GLOBALS['var']} inside your custom header.

Specific miniBB Support Forums / Specific /
 Problem Building header.php to use with $includeHeader
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.