MyBB Community Forums

Full Version: New Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, for some time I'm trying to create a new page with the style of MyBB. I created a template.

<html>
<head>
<title>{$mybb->settings[bbname]} - Example Page</title>
{$headerinclude}
</head>
<body>
{$header}
<br />
<!-- Content: Start -->
<table border="1" align = "left">
    <tr>
        <td>Komórka 1</td>
        <td>Komórka 2</td>
    </tr>
<!-- Content: End -->
{$footer}
</body>
</html>

Unfortunately, so this effect (next url) Sad pe-dm.pl/rules.php


rules.php
<?php 

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

add_breadcrumb("Title here", "somename.php"); 

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

output_page($html);
?>

Help
Now it looks like this pe-dm.pl/rules.php

<html>
<head>
<title>Yourtitle
here</title>
{$headerinclude}
</head>
<body>
{$header}
<tableborder="0"
cellspacing="1"
cellpadding="4"
class="tborder">
<tr>
<td
class="thead"><span
class="smalltext"><strong>Your
titlehere.</
strong></span></
td>
</tr>
<tr>
<td
class="trow1">
<tableborder="1"
align="left">
<tr>
<td>Komórka
1</td>
<td>Komórka
2</td>
</tr>
</td></tr></
table>
{$footer}
</body>
</html>
Use the page manager plugin. http://mods.mybb.com/view/page-manager
What PHP code on the site? I
have such a thing


<table border="1">
<tr>
<th align = "left">Top 10 Zabójców</th>
</tr>
<tr><td align = "left">Nick</td>
</tr>
</table>
<?php
echo("Test");
?>
But the PHP code is ignored
pe-dm.pl/misc.php?page=1