MyBB Tutorials

Making a custom page. No plug in

Submitted by Angelic, , Thread ID: 79140

Thread Closed
09-03-2018, 02:09 AM
#1
Create a php file and name it "upgrade" or whatever you like, I named it upgrade for this tutorial since I was making an upgrade page at the time.

PHP Code:
<?php

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

add_breadcrumb("Upgrade""upgrade.php");

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

output_page($html);

?>

Now go to ACP > Themes & templates > Templates > Global Templates > Add template.

You will need to write your own content.

Code:
<html>
<head>
<title>Upgrade</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td class="thead"><span class="smalltext"><strong>Upgrade</strong></span></td>
</tr>
<tr>
<td class="trow1">

Add here your custom messages.

</td></tr></table>
{$footer}
</body>
</html>

You can edit that however you wish. But make sure you call the template "upgrade" since the php file is called that as well.

If you have any questions, feel free to hit me up.
[Image: AQnuDxm.gif]

Users browsing this thread: 2 Guest(s)