Create custom pages in MyBB with the Page Builder

amtekkie · Today

The Page Builder (Content Manager module) makes custom pages: rules, about, contact, landing pages or a custom home page, each with a clean address, SEO tags, optional CSS and group access.

Create a page

  1. Activate Content Manager in MyStudio → Modules; open MyStudio → Content Manager.
  2. Add Page: type the title; the address fills itself in (community-rules).
  3. Write HTML with MyBB's template variables. A new page starts with the forum's header and footer around your section.
  4. Preview, choose Published, press Ctrl+S.
MyStudio Page Builder editor for custom MyBB pages
(1) Title, address and the page's link. (2) The page editor with syntax colours. (3) Page settings: meta title and description, allowed groups, custom CSS and JS. (4) Draft or published, preview and save.

What a page can contain

{$headerinclude}
{$header}
<section>
    <h1>Community rules</h1>
    <p>Welcome, {$mybb->user['username']}! Please read these rules.</p>
</section>
{$footer}
Variables{$header}, {$footer}, {$mybb->user['username']}…, insertable from a list.
Conditions<if> blocks, e.g. one message for guests, another for members.
Theme stylesYour theme's classes and colours work; plus page-only CSS.
JavaScriptFor super admins or those allowed in Delegation.

Every save passes MyBB's template security check: a page can never run PHP.

Address, SEO and access

SettingEffect
Address/community-rules with SEO permalinks, else misc.php?ms_page=community-rules
Meta title, descriptionSearch results and share cards (empty = the page title)
Allowed groupsEveryone, or chosen groups only
Draft / publishedDrafts are admin-only; published pages join the sitemap

Use a page as your home page

The Front page setting (Pages tab) shows the forum index, the portal or any published page at your forum's address. A landing page with a link to the forums is popular.

A custom link with an icon in MyStudio Options → Menu.

Pages, blog or collections?

PagesOne-off layouts.
BlogNews and articles.
CollectionsMany entries of one kind, like these docs.