BB Site Options

Currently the bbPress (in its infancy) does not have facility to save options and preferences in the database. This plugin creates and manages the options database in bbPress.

The will give facility to other plugins and hacks to store the preferences in database and retrieve it on the fly. The plugin also gives a common admin panel where small preference for plugins can be accesses from. the panel can be accessed by going to
Admin » Site Management
» Site Options.

Please Note: The plugin is a temporary solution for saving preferences. Once the core is developed and has capability to save options, this plugin will be discontinued.

Version and Last Update

Last updated on Jan 03 ‘07
Discontinued

Feedback and Support

Please leave your comments, bugs and feedback at this forum

Functions

site_options_check_install()

This function checks if the Site Options is installed. This function will call the installation function. Ideally the function will always return true. In a rare case the function returns false, the installation has failed and means that the application does not correct permissions to create table.

Developers should check for this function and execute this function before using any of the function that come with this plugin.

add_option(
$setting, // the name of the option
$value, // value of the option
$description = '', // brief description of the setting
$forum = 0 // forum the option applies (beta - do not use)
)

This function adds a new option to the database. this should be called in the plugin/hack initialization.

get_option(
$setting // name of the option to get
)

This function retrieves the value of the option from the database.

update_option(
$setting, // name of the option to update
$value // new value of the option
)

This function updates the value of an option in the database. if the option does not exist, it adds the option to the database.

delete_option(
$setting // name of the option to be deleted
)

This function deletes an option from the database. this can be used to reset all the values or for uninstallation.