Announcement

Collapse
No announcement yet.

How to add Custom Pages to your forum

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Any Version] How to add Custom Pages to your forum

    If you would like to add custom pages (including header / footer of your forum) do the following:

    Add a new template in the style of your choice. You can name it whatever you want, it has to have the prefix
    Code:
    custom_
    though.

    You are then able to call the custompage using

    http://<domain>/misc.php?do=page&template=test2

    Change the red code with your domain and the blue code with your template name accordingly.

    Lets make an example.

    Admincp > Styles & Templates > Style Manager > In drop down choose Add New Template

    Name the template for example custom_google

    Use the following code :

    Code:
    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
    $headinclude
    <title>$vboptions[bbtitle]</title>
    </head>
    <body>
    
    $header
    $navbar
    <!-- Custom Code Start Here -->
    <center>
    <iframe src="http://www.google.com" width="80%" height="400"></iframe></center>
    <!-- / Custom Code Ends here -->
    $footer
    </body>
    </html>
    As you can see, I just use an iframe for you to see any results.

    Now use your web-browser and go to

    http://<domain>/misc.php?do=page&template=google

    And change the domain to your own.

    See attached a screenshot how the above example would look like. Also attached a default html code for a template.
    Attached Files
    Last edited by Gomjaba; Mon 20th Aug '07, 7:32am.
    I'm not under the alkafluence of inkahol like some thinkle peep I am!

  • #2
    A couple of notes:

    If you use the contents of the GENERIC_SHELL template as your base, you will get proper headers, footers, and navigation included as well.

    When linking to your custom page do not add the word custom into the link. For example to link to a Privacy page, you can create a template called custom_Privacy. However your link will look like:
    misc.php?do=page&template=Privacy
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment

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