phpBB

Development Wiki

Templating Tutorial

From phpBB Development Wiki

Revision as of 02:50, 6 January 2007 by Highway of life (Talk | contribs)

Adding a New Style : Tutorial

Simple Tutorial on how to create or modify a new style for phpBB3/Olympus. We will be creating a new style called "myStyle".

  1. Duplicate the subSilver directory located in /styles/
  2. Rename the copy to "MyStyle"

Setting Style Configuration

  1. Go inside the MyStyle directory, and look for a file named style.cfg
  2. Open style.cfg in any text editor
  3. Set the contents of the file to the following:
# General Information about this style
name = myStyle
copyright = © 2007 olympuswiki Tutorial
version = 0.1.0
  1. Giving it a unique name "myStyle" will keep it separate from the other styles in the /style/ directory. Make sure this name is the same name as the name of the directory.
  2. Since this style is in Development, we give it version 0.1.0 See Version Numbering
  3. Now open the template.cfg file located in /styles/myStyle/template/
  4. Set the contents of the file to the following:
# General Information about this template
name = myStyle
copyright = © 2007 olympuswiki Tutorial
version = 0.1.0
  1. Now open the theme.cfg file located in /styles/myStyle/theme/
  2. Change the General Information section of the file to the following:
# General Information about this theme
name = myStyle
copyright = © 2007 olympuswiki Tutorial
version = 0.1.0
This OlympusWiki-related article is a stub. You can help in improving Olympus Documentation by expanding it.
Highway of Life 02:35, 6 January 2007 (UTC)