phpBB

Development Wiki

Difference between revisions of "Templating Tutorial"

From phpBB Development Wiki

(Bebun work on Templating Tutorial -- 15% done, will finish it later)
 
m (Woops, wrong template syntax)
Line 19: Line 19:
 
<pre># General Information about this template
 
<pre># General Information about this template
 
name = myStyle
 
name = myStyle
copyright = &copy; olympuswiki Tutorial, 2007
+
copyright = &copy; 2007 olympuswiki Tutorial
 
version = 0.1.0</pre>
 
version = 0.1.0</pre>
 
# Now open the [[theme.cfg]] file located in /styles/myStyle/theme/
 
# Now open the [[theme.cfg]] file located in /styles/myStyle/theme/
Line 25: Line 25:
 
<pre># General Information about this theme
 
<pre># General Information about this theme
 
name = myStyle
 
name = myStyle
copyright = &copy; olympuswiki, 2007
+
copyright = &copy; 2007 olympuswiki Tutorial
 
version = 0.1.0</pre>
 
version = 0.1.0</pre>
  
[[olympuswiki-stub]]
+
{{olympuswiki-stub}}
  
[[User:Highway of Life|Highway of Life]] 02:34, 6 January 2007 (UTC)
+
[[User:Highway of Life|Highway of Life]] 02:35, 6 January 2007 (UTC)

Revision as of 02:35, 6 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"
  3. Go inside the MyStyle directory, and look for a file named style.cfg
  4. Open style.cfg in any text editor
  5. 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)