Announcement

Collapse
No announcement yet.

Adding Custom pages

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

  • Adding Custom pages

    I followed all the instructions in the Quick Tips and Customizations forum for adding a custom page, but I am not getting anything.

    I named the template custom_sudoku

    The instructions say:

    You are then able to call the custompage using

    http://<span style="color:red">www.u...rld.com</span>/misc.php?do=page&template=test2

    Change the red code with your domain and the blue code with your template name accordingly
    . (which I did, but where does that code go?)


    Then it has this:

    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.

    Where does the HTML code go? I entered the custom code from the web site that I want to add to my site, but when I use the http:// address I get a blank page.

    What do I do now?

  • #2
    You get a blank pages becouse you, probably, have added the template to another style on your forum. So, chose the style you've added in the new template, then put http://<domain>/misc.php?do=page&template=template in your web browser.
    *I'm italian, so my english is bad*

    Comment


    • #3
      I have it added to the default template (although I have a different template (skin) on the board. I still get nothing.

      Here is the code I added:

      $stylevar[htmldoctype]
      <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
      <head>
      $headinclude
      <title>$vboptions[bbtitle]</title>
      </head>
      <body>
      $header
      $navbar
      <!-- Custom Code Start Here -->
      <center>
      <div style='width:360px'>
      <IFRAME style="WIDTH: 360px; HEIGHT: 540px" src="http://sudokuframe.com.u.seekdotnet.com" frameBorder="0" DESIGNTIMESP="23032">
      </IFRAME>
      <div style='padding=top:5px;text-align:right;font-family:verdana,arial;font-size:11px'>Copyright <a href='http://sudoku.com.au'>Sudoku.com.au</a></div></div>
      <!-- / Custom Code Ends here -->
      $footer
      </body>
      </html>

      Am I missing something?

      Comment


      • #4
        What is the default skin for your forum? You will have to add this custom template to this skin.

        Comment


        • #5
          Sorry to bring up and old thread but I'm having problems with this and can't work out why as I did it with another page only about a month ago!

          I'm trying to add a page using this code:

          Code:
          $stylevar[htmldoctype]
          <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
          <head>
          	$headinclude
          	<title>$vboptions[bbtitle] - Terms of Use & Sites Rules</title>
          </head>
          <body>
          $header
          $navbar
          
          <iframe> iframe detail removed</iframe>
          
          
          
          
          $footer
          
          </body>
          </html>
          However I only get a blank page. So I tried copying the custom page that does work and I still get a blank page so I'm doing something stupid! I am using the default template but have made sure both templates have the code. I've also tried the google example but that results in blank page too.

          I'm naming the template store and using the following link to access:

          http://www.domain.co.uk/misc.php?do=page&template=store

          Any ideas as I'm baffled!

          TIA

          Comment

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