• Welcome to ForumKorner!
    Join today and become a part of the community.

MyBB | How to add a page without any plugins!

Villainnn

Member
Reputation
0
Hey,

I am Villain, I will be showing you how to add a new PHP page without any plugins.

For this tutorial, you will be using pages made in HTML.

So once you have your HTML Page, go into your AdminCP - Themes & Templates - Templates - Global Templates - Add Template - Write your code

Now, open a text editor and type;


Code:
<?php 

define('IN_MYBB', 1); require "./global.php";

add_breadcrumb("Short Title", "URLyouwanttohow.php"); 

eval("\$html = \"".$templates->get("templatenameinadmincp")."\";"); 

output_page($html);

?>




Now as as " yourpagename.php " then upload to root/public_html in ftp/file manager.

Now it should be done.

Ask me if you have any troubles.​