MyBB Community Forums

Full Version: Blank Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to create a blank page on my forum, keeping the theme, but nothing below the navbar.
Is there a template file which I can basically copy?
I intend to use it for links to other forums.
Hi,
What you do is this, create a new .PHP file and put this code in:
<?php

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

add_breadcrumb("Custom Page 1", "custompage1.php");

eval("\$custompage1= \"".$templates->get("custompage1")."\";");
output_page($custompage1);
?>

Replace "Custompage1" and "Custom page 1" with whatever you want to call it.

Then go to your "Global Templates"
And create a new set, name it the samething you replaced "custompage1" with.

Then put your code there, even the word "Test".

Then try accessing it, should work.
The template set I'm actually using at the moment is called "Storm of War 4".
I don't think it's a good idea to use spaces in the template names.
No, I mean it's a new template set. For the theme at the moment.
This is what I have at the moment:

<?php

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

add_breadcrumb("Links", "Links.php");

eval("\$Links= \"".$templates->get("Links")."\";");
output_page($Links);
?>

However it's not actually working at the moment.
Wait!
I've had an idea, which is also not working.
I've decided on putting it on the portal page.
I've created a new template called portal_links and have added it in as {$links} into the portal template like the others, but it is simply not appearing at all. Why is this? If it helps, here is basically the portal_links template:

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr><td class="thead"><strong>Links</strong></td></tr>
<tr><td class="trow1"> This section contains links to other forums that likewise have a link to here on their website.</td></tr>
<br /></br /><tr><td>Interested in having your forum here too? Just register and PM Harland with subject LINKS</td></tr>
</table><br />