MyBB Community Forums

Full Version: php includes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need to add a php include in to the template header. It would seem MyBB does not allow this.

How can I?
check if you can embed php file using iframe html code or use php in templates and template conditionals plugin
I tried that but the link is dead. iFrame is hassle and I'd prefer to avoid it.
Here, unzip and upload it to "inc/plugins/......" Then activate is via AdminCP.
Thanks, unfortunately I can't use it without loads of warnings appearing.
There's a much newer plugin than the one linked in post #2 that I've seen to allow PHP in templates but I can't find the link at the moment. So don't give up.. it's here somewhere.
Why you need to include it in the template header?
Can't you just run a hook for the page start defining a function to include the php in which you want to insert your custom template?

Sorry, if I'm not getting you right, or, may be I'm completely wrong ...