2011-10-22, 08:39 PM
OK i know how to add a page to the nav bar and stuff but when it redirects to the new page its like a hole new site how do i make it look like a blog or somthing
<?php
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'newpage.php');
require_once "./global.php";
add_breadcrumb("My New Page", "newpage.php");
if(!$mybb->input['action']) {
$message = '
This is my new page.
';
error($message, "My New Page");
}
?>
Quote:Add {$header} , {$footer} and {$headerinclude} variables in your new page template.
(2011-10-23, 02:37 AM)Malcolm. Wrote: [ -> ]Example of a new page:How would i make a new box thing on that same page like where it says This is my new page.How do i get another box like that on the same page?
<?php define("IN_MYBB", 1); define('THIS_SCRIPT', 'newpage.php'); require_once "./global.php"; add_breadcrumb("My New Page", "newpage.php"); if(!$mybb->input['action']) { $message = ' This is my new page. '; error($message, "My New Page"); } ?>
Edit it to your needs.
(2011-10-23, 02:39 AM)WeModYou Wrote: [ -> ]So I Would Put
<html>
{$header}
{$footer}
{$headerinclude}
<body>
Test Text
</body>
</html>
Quote:Add {$header} , {$footer} and {$headerinclude} variables in your new page template.
(2011-10-23, 02:37 AM)Malcolm. Wrote: [ -> ]Example of a new page:How would i make a new box thing on that same page like where it says This is my new page.How do i get another box like that on the same page?
<?php define("IN_MYBB", 1); define('THIS_SCRIPT', 'newpage.php'); require_once "./global.php"; add_breadcrumb("My New Page", "newpage.php"); if(!$mybb->input['action']) { $message = ' This is my new page. '; error($message, "My New Page"); } ?>
Edit it to your needs.
$message = '
This is my new page.
';