Bluetrait Weblog

Bluetrait 2: the settings file

Posted by Michael Dale on Sun, 04 Nov 2007 6:46 PM

The function of bt-settings.php will change with the introduction of Bluetrait 2.

The purpose of this file will be to allow users to hard set and modify certain values in Bluetrait without the need to modify the database. There are two main types of data that can be modified.

  1. Anything in bt-default-settings.php can be changed
  2. Any configuration values stored in the database can be changed.

The default settings file contains values such as debugging options, what html can be used in posts/comments/events and what email address is used to notify the admin of the site if there is a database error.

The configuration stored in the database contains values such as what plugins are loaded, domain name, rss settings etc; the majority of the settings.

The idea behind the settings file is that users can set these values and then not worry about them changing. So Bluetrait 2 doesn't come with bt-settings.php but with a sample file that can be used, this means the file isn't overwritten during an upgrade.

The settings file can also be useful for development as you can enable debugging and change the domain name, when you are ready to deploy the site simply delete the settings file and the default settings are back.

Comments?

HTML allowed: <a href="" title="" rel=""></a> <b></b> <blockquote cite=""></blockquote> <em></em> <i></i> <strike></strike> <strong></strong> <li></li> <ol></ol> <ul></ul>
ie: <b>bold</b>

Please note: you require cookies to be enabled on your computer to allow you to post. This is simply to stop spam. No personal information is stored. If for whatever reason you choose not to allow cookies your post will not be displayed until it passes "moderation".

Message:

Need to login? Click here

Name (optional)

Email (not shown)

WWW (optional)

Allow contact form email