Hello, I am creating me a custom page and its not a plugin its just a upgrade page, and i wanna know if i make it and i drag it into the FTP and would it be a page? like for example forum.com/upgrade.php would that be a page or will it not work?
Let me know
Thanks
You'll have to add a template to go with it.
Your php file would look like this:
<?php
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'whatever.php');
require_once "./global.php";
add_breadcrumb("Title Of Page");
$content = 'Content Here';
eval("\$page = \"".$templates->get("template_whatever")."\";");
output_page($page);
?>
Your template file:
<html>
<head>
<title>{$mybb->settings['bbname']} - Whatever</title>
{$headerinclude}
</head>
<body>
{$header}
{$content}
{$footer}
</body>
</html>