Quantcast
Channel: MyBB Community Forums - Tutorials
Viewing all articles
Browse latest Browse all 685

[Without Plugin] Making an Upgrade Page

$
0
0
Create a php file and name it "upgrade"

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.

Viewing all articles
Browse latest Browse all 685

Trending Articles