• Welcome, Guest. Please login or register.


    Login with username, password and session length
  • News


Welcome, Guest. Please login or register.
November 26, 2009, 08:22:04 AM

Login with username, password and session length
Permissions

Articles

M.C. Escher
"Ascending and descending"

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" for this one. To add more, do the same, but put a "|" inbetween, like: "about,Custom|my,My Page!"

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.

Recent
[April 21, 2009, 09:26:26 PM]

[March 26, 2008, 10:11:31 PM]

[March 26, 2008, 06:19:07 PM]

[March 26, 2008, 03:58:24 PM]

[March 24, 2008, 06:33:07 PM]

[March 22, 2008, 06:11:24 PM]

[March 21, 2008, 10:35:23 PM]
Members
Total Members: 5
Latest: Mar
Stats
Total Posts: 9
Total Topics: 7
Online Today: 1
Online Ever: 18
(March 21, 2008, 10:50:36 PM)
Users Online
Users: 0
Guests: 5
Total: 5
Last 5 Shouts:
March 21, 2008, 10:30:29 PM
dovete postare sul forum per creare degli articoli
March 21, 2008, 10:11:47 PM
ciao