Creating a new phpBB template

This tutorial will teach you how to create a new  template directory for phpBB2.

  1. Copy your templates/subSilver/ directory to templates/YourTemplate/ including all subdirectories.
  2. In all .tpl files inside templates/YourTemplate/ replace all instances of “subSilver” with “YourTemplate”. You can do that in any text editor with search/replace feature. Make sure that “YourTemplate” is exactly the same as your directory name. It is case-sensitive, so “YourTemplate” and “yourtemplate” are different names.
  3. Rename subSilver.cfg and subSilver.css to YourTemplate.cfg and YourTemplate.css
  4. Open theme_info.cfg and replace all “subSilver” with “YourTemplate” (including all $subSilver[0]… with $YourTemplate[0])
  5. Save all modified files. You’ve got yourself a new template. Now you can install it in admin control panel (this document will help you) and edit colors in admin control panel and edit tpl files.

Please note:

  1. New template name cannot contain any spaces or dashes in directory name - otherwise it will cause errors and won’t install.
  2. Template name is case-sensitive. Make sure that YourTemplate inside .tpl files and theme_info.cfg and in filenames of .cfg and .css files are exactly the same as directory name.

Originally written by Cyberalien @ phpBB.com

Share this post
del.icio.us Digg Furl Reddit Ask BlinkList blogmarks BUMPzee Blogg-Buzz Google Ma.gnolia muti Netscape Newsvine PlugIM ppnow Rojo Shadows Simpy Slashdot Socializer Sphere Spurl StumbleUpon Tailrank Technorati Windows Live Wists Yahoo! Help

 

Leave a Reply

You must be logged in to post a comment.


Bluepearl Network © 2004-2007 - Designed by Bluepearl Design