What I like to do on creating new pages is having a few variables. Title and content are the most important of course. You can even eval() the title variable to use as the content box title too, like such:
PHP Code:
<?php
define('IN_MYBB', 1); require "./global.php";
$page_title = "Page title";
$content = "Some random content";
add_breadcrumb($page_title, "somename.php");
eval("\$page_title =\"". $page_title . "\";");
eval("\$content =\"". $content . "\";");
eval("\$html = \"".$templates->get("template_name")."\";");
output_page($html);
?>
Template:
Code:
<html>
<head>
<title>Your title here</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td class="thead"><span class="smalltext"><strong>{$page_title}</strong></span></td>
</tr>
<tr>
<td class="trow1">
{$content}
</td></tr></table>
{$footer}
</body>
</html>