RicoRoco - HOME Azure v.116
Witamy, Gość. Zaloguj się lub zarejestruj

Zaloguj się podając nazwę użytkownika, hasło i długość sesji
WINDOWS & PC Zone - Wszystko na temat: Windows XP & VISTA - Unattended Problemy, Dyskusje, Operacje na plikach i partycjach. Alternatywny Soft, Systemy & Open Source
   HOME   FORUM HELP SEARCH Kalendarz Download Gallery Chat Zaloguj się Rejestracja  

Recent Top
By Yurek3
[29.03.2009, 08:27:18]

By PdM
[11.06.2008, 18:21:50]

By gm1004
[19.05.2008, 16:53:50]

[18.05.2008, 18:38:30]

By Yurek3
[30.03.2008, 16:06:21]

By Yurek3
[29.03.2008, 04:40:05]

By Yurek3
[27.02.2008, 00:35:27]

[13.02.2008, 10:50:11]

[09.02.2008, 11:44:18]

[22.01.2008, 10:36:45]

M.C. Escher
"Ascending and descending"
1 Gość, 0 Users


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.

Top Links:

TinyPortals - ThemeShop
Polska Pomoc Simple Machines Forum
Polish Suport for TinyPortal

Imagination is more important than knowledge...
Albert Einstein

Last News from: TinyPortal.net
Geo Visitors Map  
25.03.2023, 18:41:50