Hi,
Well, as you make themes, it's probably easier to just create templates for the front page (and any other page I guess). Here's a quick run down.
Make a template in the Global Templates called "homepage". Just write "Hello World" or something equally as quirky. Next up is the hard(ish) part - make a new PHP file in the root of your forum called "homepage.php", and save it with this structure:
PHP Code:
<?php
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'homepage.php');
// A list of templates to cache onload
$templatelist = "homepage";
// Require our global setup
require_once "./global.php";
eval("\$homepage = \"".$templates->get("homepage")."\";");
output_page($homepage);
?>
Now, when you visit the homepage.php file in your browser, you should see "Hello World" or whatever you've written. You then of course can use any variable in MyBB's global scope - including
$headerinclude and
$footer which makes it stupidly simple to make your homepage look like the forum.
You might have a different structure to your site - your forum may be in a subdirectory or a subdomain. In which case, you'll need to chdir to the point global.php in the right direction. In the code above, you'll need to add the following code before including global.php:
PHP Code:
chdir('./forums'); // Or whatever folder your forum is contained in
You'll be well on your way then to making your site through MyBB. You can do really clever things here, like I do with Xekko, like adding a new stylesheet in the ACP and assigning it to the homepage's THIS_SCRIPT value.