Linux 软件免费装

DF_FileConf

开发者 hovenko
更新时间 2007年4月17日 04:13
捐献地址: 去捐款
PHP版本: 2.1 及以上
WordPress版本: 2.1.3

标签

options configuration

下载

1.0

详情介绍:

This plugin can be useful if you are to move your blog to a different site. There are many options that needs to be changed if the URL of your blog changes, at least 'siteurl' and 'home'. This is normally done manually updating the values in the database table wp_options, since you can not reach the WordPress administration sites if these URLs are wrong. If you use a plugin that makes use of Google Maps you need to update the API key as well. This plugin has only been tested with the WordPress 2.1 branch, but might work with older versions. Please report on compatiblity with other versions.

安装:

This section describes how to install the plugin and get it working.
  1. Place the df_fileconf directory inside the /wp-content/plugins/ directory
  2. Inside the plugin directory copy the sample file file-config.sample.php to file-config.php and make appropriate changes according to the comments at the top of the file.
  3. Activate the plugin through the 'Plugins' menu in WordPress
Your configuration variable $fileconf must be an array/map that should look something like what is described at the top of the file file-config.sample.php. The array must be of key/value pairs where the key is the name of the option from the database where the value is the value you wish to override the option with. Beaware that options where the value is an array in both the database and this configuration they will be merged together. To completly replace an array option you need to first remove it completly by adding the option name to the array with the key '__unset'. Se the example below. There are three options that control the plugin: Basicly the configuration should look something like this: ` global $fileconf; $fileconf = array( // Settings for this plugin 'df_fileconf_debug' => false, 'df_fileconf_update' => false, 'df_fileconf_active' => true, 'siteurl' => 'http://localhost.localdomain', 'home' => 'http://localhost.localdomain', '__unset' => array( 'unwanted_array', ), ); `

常见问题:

Questions?

Just like Jepordy, I hold all the answers, but I don't have the questions...