I remember once I was looking for a way to add my own custom page without a plugin, ended up using page manager plugin but now that I know how easy it is to actually create a PHP page that will look just like a default MYBB one with header footer and everything I am posting this thread so that you can learn it too. Lets do this.
For the purpose of this tutorial lest say I wanna create a page for 404 not found redirect.
First is first lets create a template that we can edit or customize anytime we wish to.
Log into your Admin Control Panel >> Template & Style >> Templates >> Global Templates >> Add Template
For Template Name type 404
Now paste this code below where the temple code goes:
This concludes HTML part.
Now lest do a bit PHP coding don't freak out it's just copy and paste how cool is that
As I have said above for the purpose of this tutorial I am creating 404 not found page but all you have to do is just to change names if you are creating some other page
Create an empty PHP file and add this code into it:
In this line here 404 stands for template's name we have just created in global templates.
Save the file as I don't know whatever you want I am gonna call it not-found.php. Remember it has to be located in MYBB root directory, in the same folder with global.php
This is it ladies pretty easy stuff when you know how it works
For the purpose of this tutorial lest say I wanna create a page for 404 not found redirect.
First is first lets create a template that we can edit or customize anytime we wish to.
Log into your Admin Control Panel >> Template & Style >> Templates >> Global Templates >> Add Template
For Template Name type 404
Now paste this code below where the temple code goes:
Code:
<html>
<head>
<title>Your title</title>
{$headerinclude}
</head>
<body>
{$header}
Your Page Content Goes Here!!!!!!!!!!
{$footer}
</body>
</html>
This concludes HTML part.
Now lest do a bit PHP coding don't freak out it's just copy and paste how cool is that

As I have said above for the purpose of this tutorial I am creating 404 not found page but all you have to do is just to change names if you are creating some other page

Create an empty PHP file and add this code into it:
PHP Code:
In this line here 404 stands for template's name we have just created in global templates.
Save the file as I don't know whatever you want I am gonna call it not-found.php. Remember it has to be located in MYBB root directory, in the same folder with global.php
This is it ladies pretty easy stuff when you know how it works
