: Custom Page - "About" :



M.C. Escher


"Ascending and Descending"
M.C. Escher
TinyPortals.net

Introduction..

This page illustrates one way of using the template system in SMF for adding custom pages. All you need is to make template files (PHP files really) and place it into a folder of the actual Novelty theme folder called "pages". Then you go to Admin section, "Themes and Settings" and look for "current theme settings".

There you can add the entries for the custom files. First its real name (minus "template.php") and the title you like to use. For example, this custom page is the file "about.template.php" and has "Custom" as the title. Therefore we insert "about,Custom,page" for this one. To add more, do the same, but put a "|" inbetween,
like: "about,Custom,page|my,My Page!,page" or example with link, (outside link): "about,Custom,page|my,My Page!,page|http://www.tinyportal.net,TP,link"
*Note!: => use the form: file[.template],title,type where type can be: 1.) page - Use "page" for a custom template file), or 2.) link - Use "link" for a regular link.

Content of custom pages

  • ..can be anything really, since its PHP pages, you can even add your own PHP routines in there. Note that its indeed still a part of SMF, so any values you might want to use from the forum, is available. If you look at the other custom page called "homepage.template.php" you will see its using a lot of SSI functions to show a simple "news" page. It can also mix PHP and HTML freely, as this template shows.
  • --|--
  • --|--
  • --|--
  • ..can be anything really, since its PHP pages, you can even add your own PHP routines in there. Note that its indeed still a part of SMF, so any values you might want to use from the forum, is available. If you look at the other custom page called "homepage.template.php" you will see its using a lot of SSI functions to show a simple "news" page. It can also mix PHP and HTML freely, as this template shows.
  • --|--

Bloc

.:: The Best Top Site ::.

  • *
    ***
    *****

    ^

      .::: TOP .^. WWW ::.

    * * * * * * *

  • SMF.org
  • TinyPortals.net
  • TinyPortals - ThemeShop
  • TinyPortMedia.com
  • RebelRoseNetworks
  • SMF.pl
  • Unicorn-Blog
  • Wizzi.pl
  • SMF-Helper

  • RicoRoco.com
  • SMF-Help!

  • Imagination is more important than knowledge. For knowledge is limited to all we now know and understand, while imagination embraces the entire world, and all there ever will be to know and understand.
    Albert Einstein
    (1879-1955)


  • Imagination is the beginning of creation. You imagine what you desire, you will what you imagine and at last you create what you will.
    George Bernard Shaw
    (1856 - 1950)

  • Happy-MarryX-mas
  |
Last News from: TinyPortal.net

Current Server Time:


On-Line: 6 Gości, 0 Użytkowników