Skip to content

How to Make A NoNonsense Forum Theme

Kroc edited this page Aug 4, 2012 · 6 revisions

1. Download and Install

  • Begin by downloading and installing NoNonsense Forum as per INSTALL.txt

2. Duplicate the Default Theme

Each theme is a folder within the "/themes" directory. You should never modify the default theme except for through "theme.config.php" because you would prevent yourself from updating NoNonsense Forum in the future. It is best for you to work from a copy of the default theme.

  • Make a copy of the "greyscale" folder within "/themes"

  • Rename the folder to whatever you want your theme to be called.
    It's best to stick to URL-safe letters such as a-z, 0-9, underscore and no spaces

3. Set the Forum to Your Theme

Now we must tell NoNonsense Forum to use your new theme. The name of the default theme is stored in "[/config.default.php] (https://github.com/Kroc/NoNonsenseForum/blob/master/config.default.php)" but you must not edit that file (otherwise you will not be able to update NNF).

  • Make a copy of "[/config.default.php] (https://github.com/Kroc/NoNonsenseForum/blob/master/config.default.php)" and rename it "config.php",
    NoNonsense Forum will now override the defaults with the options set in "config.php" and your configuration will persist between updates

  • Open "config.php" and change the value of the FORUM_THEME option from "greyscale" to the name of your new theme. It should look something like this:

    //folder name of the theme to use, in "/themes/*"
    @define ('FORUM_THEME',	'my_theme');
    
  • Save "config.php" and refresh your browser where NoNonsense Forum is running; if all is correct nothing will happen! No errors mean that NoNonsense Forum is now running from the new theme, which is -- for the moment -- an exact copy of the default theme.

    If you get an error message that the theme cannot be found, verify that the name of your theme folder is the same as is in "/config.php"

4. Get to Know the Layout of a Theme

Within a theme folder are a number of files for different purposes. Here is a list and brief description of each to give you an overview of what you'll be working with

Clone this wiki locally