MyBB Community Forums

Full Version: NEED HELP 1 MORE TIME:)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Add {$header} , {$footer} and {$headerinclude} variables in your new page template.
Please Help Me
Example of a new 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.
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:

<?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.
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?
No you wouldn't do that.
(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:

<?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.
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?

If you're using the way Malcolm. said, then there is no need to add {$header} and other variables. Replacing This is my new page. with your own code should suffice.
$message = '
This is my new page.
';