StatusNet配置文件config.php(安装参考)

StatusNet安装配置。

以下是config.php刷屏,O(∩_∩)O~

//使用URL Rewrite
$config['site']['fancy'] = true;
//对手机浏览友好
$config['site']['mobile'] = true;

//Settings
$config ['location']['share'] = false; // 设置是否显示“地理共享”选择框(checkbox);
$config ['location']['sharedefault'] = false; //设置用户地理共享默认选择,设置为false,则所有新注册的用户均关闭地理位置
$config['attachments']['uploads'] = false; //关闭上传

//卸载不需要的插件
unset($config['plugins']['default']['Mapstraction']);//关闭地理信息分享
unset($config['plugins']['default']['OStatus']);//关闭Ostatus
unset($config['plugins']['default']['OpenID']);//关闭OpenID
unset($config['plugins']['default']['WikiHashtags']);//关闭WikiHashtags
unset($config['plugins']['default']['Geonames']);//关闭Geonames

// Twitter 设置
$config['admin']['panels'][] = 'twitter';//将twitter选项加到管理员菜单中
$config['twitter']['signin'] = false;

// Twitter integration source attribute. Note: default is StatusNet
$config['integration']['source'] = 'StatusNet';

// Enable bidirectional Twitter bridge
//
// NOTE: if you enable this you must also set $config['avatar']['path']
//
$config['twitterimport']['enabled'] = true;

// Twitter OAuth settings. Documentation is at http://apiwiki.twitter.com/OAuth-FAQ
//下面设置在twitter中注册的API
$config['twitter']['consumer_key']    = '';
$config['twitter']['consumer_secret'] = '';

//打开twitter连接插件
addPlugin('TwitterBridge');

//打开MobileProfile插件,为手机浏览行方便
addPlugin('MobileProfile');

其中,“$config['integration']['source']”是你注册twitter api时的API名字。如果有中文,记得把config.php保存为“UTF 无BOM”编码格式。

Leave a comment