Hello guest, Please login or register.

Themes - Templates

What is a Template?

A template is a file that is apart of a theme that is used to display information on a specific page. This allows each page to be unique while still having the same theme.

How to create a Template?

Please take a look at the page on theme development for information on creating your own templates for your theme.

What Templates does Clan CMS need?

In order to support all the latest modules Clan CMS needs the following templates at a bare minimum:

Account (account.php)

Display's the user's account information.

Article (article.php)

Display's an article with detailed information and allowing comments on the article.

Articles (articles.php)

List's all the articles in the database that are published and divides them up into multiple pages.

Dashboard (dashboard.php)

This is the homepage for the site and includes articles and new users widget.

Forgot (forgot.php)

Display's a form for users to retrieve a reset code for changing their password.

Login (login.php)

Display's a form for users to login.

Match (match.php)

Display's a match with detailed information and allowing comments on the match

Matches (matches.php)

List's all the matches in the database and divides them up into multiple pages.

Page (pages.php)

Allows use of creating simple pages for success messages, error messages, and custom pages.

Polls (polls.php)

Display's polls that users can vote on.

Profile (profile.php)

Display's user information for their profile.

Register (register.php)

Display's a form to allow users to register.

Reset (reset.php)

Display's a form that allows users to reset their password.

Roster (roster.php)

Display's all squads with their members.

Sponsors (sponsors.php)

Display's all the sponsors and their descriptions.

Squad (squad.php)

Display's a squad with detailed information on their members, matches & articles


We also recommend creating the following templates to allow easier template making: (They do not have to be named these to work)

Header (header.php)

Display's the top of the theme that can be loaded in every other template.

Sidebar (sidebar.php)

Display's widgets, navigation, etc that can be loaded in every other template.

Footer (footer.php)

Display's the bottom of the theme that can be loaded in every other template.


In order to support the widgets in Clan CMS you will need the following templates in a folder called "widgets" included in your theme:

Articles (articles.php)

Display's the latest three articles.

Login (login.php)

Display's a form for users to login from anywhere on the site.

Matches (matches.php)

Display's the latest matches played.

New Users (new_users.php)

List's the 10 newest users in the clan.

Pages (pages.php)

List's the custom pages.

Polls (polls.php)

Allow users to vote on the active poll.

Sponsors (sponsors.php)

Display's the sponsors.

Users Online (users_online.php)

Display's what users are online, and how many guests are online.