miniBB Support Forums
|
Forums
|
Register
|
Reply
|
Search
|
Statistics
|
Manual
|
miniBB Support Forums
/
Specific
/
Problem Building header.php to use with $includeHeader
kazooter
Registered
#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?
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.
miniBB Support Forums
/
Specific
/ Problem Building header.php to use with $includeHeader
↑
Top
Your Reply
Short link for this topic:
?
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.
News & Announcements
FAQ
How To
Bugs
The Other
Official Addons and Solutions
Custom Tutorials and Modifications
Master Class
Specific
Re-cycled
Suggestions
Testimonials
qwerty
Features
Requirements
Demo
Download
Showcase
Gallery of Arts
Compiler
Premium Extensions
Premium Support
License
Contacts
Extend your miniBB-forums, attaching the images and files,
get the
File and Picture Attachments add-on
!