MyBB Community Forums

Full Version: my custom home page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Try this tut by me
To create a home page go to your cpanel like x10 is mine follow me cpanel>sign in>file manager now goto public_html then create folder called home.php because there is a index.php so it cant be named that but. Once you do create it then edit it and find a way to redirect the link to goto homepage instead index.php.
To get to homepage.php
Try http://moddingserious.x10host.com/home.php of course mine is home.php people could be useing hostgator.com godaddy.com its the same but free hosting
x10hosting.com

Tutorial by mrmod
<?php
define("IN_MYBB", 1);

$templatelist = "my_template1,my_template2";

require_once "global.php";

// To use a template you will need to use the following syntax:
eval("\$html = \"".$templates->get("my_template1")."\";");

output_page($html);
?>
Source: https://github.com/dragonexpert/tutorial...t.html#L79
Tweaked it and removed the unnecessary examples.

Start off by creating a new index.php file (rename the old to forum.php maybe). 

You can create a custom template in "Global" templates.

You probably won't find someone to do the whole thing for you, but we are willing to help you out when you get stuck. You will have to be at least somewhat experienced in PHP.
Good luck on it mrmod. Looks like a tough job at first glance.
Pages: 1 2