比如说把AuthImage默认打开或者强制打开等等。
全文请看
http://www.pactofshadow.com/lifetype/2/articleperma/35.html安装方法:
下载samesetting.zip,然后解压,和其它插件一样,放置到plugins目录下。
在blogsettings.php文件中,添加成员函数
function getValue( $key, $defaultValue = null )
{
include_once( PLOG_CLASS_PATH."plugins/samesetting/pluginsamesetting.class.php" );
include_once( PLOG_CLASS_PATH.'class/plugin/pluginmanager.class.php' );
$value = Properties::getValue($key,$defaultValue);
static $pluginsamesettinginstance;
if (!isset($pluginsamesettinginstance))
{
$pm =& PluginManager::getPluginManager();
$pluginsamesettinginstance = $pm->_pluginInstances["samesetting"];
if (!$pluginsamesettinginstance)
$pluginsamesettinginstance = false;
}
if ($pluginsamesettinginstance)
{
return $pluginsamesettinginstance->GetValue($key,$value);
}
else
return $value;
}
然后,启用该插件即可。