| |

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
May 22, 2013, 08:49:43 AM
01-02-2011
No Holes! Cry Players
A majority of player love the new edgeless galaxies but some have complained about the voids that can be encountered.

In response, Standard Galaxies 121 through 130 have had the "holes" squeezed out for a more compact galaxy experience. Join a new galaxy to try it out!
   Home   Forum Help Search Login Register  

Purchase Premium Features














Recent Topics
[Today at 08:42:29 AM]

[Yesterday at 06:59:13 PM]

[Yesterday at 01:51:08 PM]

[May 20, 2013, 04:00:32 PM]

[May 20, 2013, 03:05:52 PM]
Members
Total Members: 4450
Latest: Rackamerale
Stats
Total Posts: 77153
Total Topics: 2842
Online Today: 30
Online Ever: 271
(January 19, 2011, 08:54:18 PM)
Users Online
Users: 6
Guests: 9
Total: 15
Permissions


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.