MyBB Community Forums

Full Version: Including My Files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Forum URL:
http://deferosoft.com/forums/index.php

you can ignore the weird look of it, I'm in the middle of reskinning it.

Heres what I am trying to do though;
I have a php site, and I have separate php pages for my header, footer, and navigation, and I am trying to get them onto the forum.

My question is, where do I include them? I have tried placing them in a few places in the global.php page, but it gives me an error. Is there somewhere else I should be trying to include them?

I have:
header.php
navigation.php
footer.php

I have been playing around with the navigation one. It shows up, but gives an error and messes it all up.
I figured it out. I went into the functions.php page and included the file where I wanted it to show up. Took some tinkering to really figure this out.
You have to import them in the header.

ACP > Templates & Style > Template > Your Template > Header:

Importing a file:
<?php @ require_once ('directory/file.html'); ?>
For the PHP import, by placing the @ symbol before require_once suppresses any error messages that might be generated in the included PHP file.
Closed by request.