Welcome to Admin Junkies, Guest — join our community!

Register or log in to explore all our content and services for free on Admin Junkies.

How to create custom pages without a plugin?

_B_

Addicted member
Joined
May 18, 2020
Messages
934
Credits
0
This is quite a useful and really great tutorial I found here
PHP:
<?php 

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

add_breadcrumb("Title of your page", "*.php"); 

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

output_page($html);

?>
[/align]

2)
Copy the code below into the template. You can customise this to your liking and this is just an example:​

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

Add here your custom messages.

</td></tr></table>
{$footer}
</body>
</html>
Make sure that the name of this template matches the one from the code earlier (so in this case template_name).
 
Advertisement Placeholder
If you are doing it in this way then i think that you have to have a lot of knowledge on coding because that way you will not mess anything up however i think that it is important to know both methods.
 

Log in or register to unlock full forum benefits!

Log in or register to unlock full forum benefits!

Register

Register on Admin Junkies completely free.

Register now
Log in

If you have an account, please log in

Log in
Who read this thread (Total readers: 0)
No registered users viewing this thread.

New Threads

Would You Rather #9

  • Start a forum in a popular but highly competitive niche

    Votes: 9 27.3%
  • Initiate a forum within a limited-known niche with zero competition

    Votes: 24 72.7%
Win this space by entering the Website of The Month Contest

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds