MyBB Community Forums

Full Version: Create a content for a category.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey! I have a site, but I wanted to do a new 'category' in the Navigation Menu:#
The question is: HOW TO ADD CONTENT TO THE DONATION CATEGORY...

Script:

<html>

<head>
<title>Donate</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td class="thead"><span class="smalltext"><strong>Donations</strong></span></td>
</tr>
<tr>

{$footer}
</body>
</html>
There are probably two ways of creating a new page:
  1. Create a new PHP file, meaning to writing your own script to use templates and other features from MyBB. Or a static HTML page.
  2. Write a little plugin to attach a new page under ./misc.php page:

In either way you'll have to add the menu item to corresponding template all by yourself. See this document for details: https://docs.mybb.com/1.8/development/pl...-new-page/
http://www.qwery.eu/donate.php

I hacve it, but I want to fill the empty space...
Replace "< CONTENT GOES HERE >" with your content.

<html>
<head>
<title>{$settings['bbname']} - Donate</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>Donations</strong></td>
</tr>
<tr>
<td class="trow1">
< CONTENT GOES HERE >
</td>
</tr>
</table>
{$footer}
</body>
</html>