Skip to content
Gen2 edited this page May 20, 2017 · 1 revision

Configuring NPFchan

Configuring NPFchan is not a complicated process; it's as easy as copying and pasting. Just remember: If you use an imageboard based on NPFchan, you should edit inc/instance-config.php with custom values. All configuration held in inc/config.php is the default, and will be the default on new installations. To set a configuration file, copy a configuration variable like $config['cookies']['httponly'] = true; into instance-config.php and edit it to your liking.

Config files

  • inc/config.php — Default site-wide configuration file. It is not advised to edit this file.
  • inc/instance-config.php — Custom site-wide configuration file.
  • <board>/config.php — Per-board configuration. This doesn't exist by default, and you'll need to make it manually if you want to use it.

The configuration variable ($config) is just one huge associative array, occasionally split into “sections”.

Load order

  • inc/config.php$config is reset with the defaults
  • inc/instance-config.php — Some $config values are overwritten or changed.
  • <board>/config.php — Per-board configuration is changed.

Comments

inc/config.php is filled with comments. It's a wonderful source of documentation. — Read them!

Based on

Tinyboard Configuration