Blank vB Page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jawinn
    Senior Member
    • Dec 2005
    • 107

    Blank vB Page

    How would I create a blank vB page where I can add my own HTML code? The page would basically have the header and footer of vB but HTML code in the body.

    If this is unclear I have an example of what I want to do but don't know if it’s ok to post it.

    Thanks in advance,
  • Colin F
    Senior Member
    • May 2004
    • 17689

    #2
    Simply add a template, naming it for example custom_MYPAGE.
    It has to be prefixed with custom_.

    Copy this into it and add your own content:
    Code:
    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
        <!-- no cache headers -->
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="-1" />
        <meta http-equiv="Cache-Control" content="no-cache" />
        <!-- end no cache headers -->
        $headinclude
        <title>$vboptions[bbtitle]</title>
    </head>
    <body>
    $header
    $navbar
    [B]
    YOUR CONTENT HERE[/B]
    $footer
    </body>
    </html>
    Then, call that up using misc.php?do=page&template=MYPAGE
    without the custom_ this time.
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment

    • jawinn
      Senior Member
      • Dec 2005
      • 107

      #3
      great thanks, what would be the code to add a link to this new page in the nav bar?

      Comment

      • jawinn
        Senior Member
        • Dec 2005
        • 107

        #4
        Sorry for the bump, but how do I create a link in the nav bar to get to this new template?

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...