phpBB

Development Wiki

Difference between revisions of "Templating Tutorial"

From phpBB Development Wiki

m (Changed type of stub.)
m (Tutorial)
Line 31: Line 31:
  
 
{{tutorial-stub}}
 
{{tutorial-stub}}
 +
 +
[[Category:Tutorials]]

Revision as of 06:45, 7 January 2007

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