MyBB Tutorials

Making a custom page. No plug in

Submitted by Angelic, , Thread ID: 79140

Thread Closed
Angelic
Majestic as Fuck
Supreme
Level:
0
Reputation:
68
Posts:
697
Likes:
53
Credits:
531
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]

RE: Making a custom page. No plug in

dehysqop
Novice
Level:
0
Reputation:
0
Posts:
45
Likes:
8
Credits:
-1
18-03-2018, 06:58 AM
#2
Thank you! This is gonna help! Keep up <3 +1I'm a fan

RE: Making a custom page. No plug in

LorenWolf
Closed Account
Level:
0
Reputation:
0
Posts:
78
Likes:
8
Credits:
61
02-01-2020, 09:52 PM
#3
Basic, thanks for this one, i will try add my website in one page, not possible i think but i will gonna try, thanks! :rating:

Users browsing this thread: 1 Guest(s)