title: vBulletin 4.0 custom pages
body: <p>I'm trying to make custom pages using the new vBulletin 4.</p>
  
  <p>My PHP file uses the code below:</p>
  
  <pre><code>$templater = vB_Template::create('TEST');
  $templater-&gt;register_page_templates();
  $templater-&gt;register('navbar', $navbar);
  $templater-&gt;register('pagetitle', $pagetitle);
  print_output($templater-&gt;render());
  </code></pre>
  
  <p>My template looks like this:</p>
  
  <pre><code>{vb:stylevar htmldoctype}
  &lt;html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"&gt;
    &lt;head&gt;
      &lt;title&gt;{vb:raw vboptions.bbtitle} - {vb:raw pagetitle}&lt;/title&gt;
      {vb:raw headinclude}
      {vb:raw headinclude_bottom}
    &lt;/head&gt;
    &lt;body&gt;
  
      {vb:raw header}
  
      {vb:raw navbar}
  
      &lt;div id="pagetitle"&gt;
        &lt;h1&gt;{vb:raw pagetitle}&lt;/h1&gt;
      &lt;/div&gt;
  
      &lt;h2 class="blockhead"&gt;Title&lt;/h2&gt;
      &lt;div class="blockbody"&gt;
        &lt;div class="blockrow"&gt;
          Text
        &lt;/div&gt;
      &lt;/div&gt;
  
      {vb:raw footer}
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>My question relates to the use of one single template for around 50 pages, which used HTML and PHP together and were working in vBulletin 3.</p>
  
  <p>Will I need to use a separate template for each custom page that I make from the existing pages? </p>
  
  <p><strong>EDIT 1</strong>: I've opened a <strong>BOUNTY worth 100 points</strong> for this question. If you need any more details on my question, please leave a comment.</p>
  
  <p><strong>EDIT 2</strong>: Originally, I was using <code>eval('$mytemplate = "' . fetch_template('mytemplate') . '";');</code>  using vB3. This has broken the pages in vB4. If I follow ARandomOWI's post, will I be following the best approach?</p>