schlaefer/saito-flattr
最新稳定版本:1.1.1
Composer 安装命令:
composer require schlaefer/saito-flattr
包简介
Flattr for Saito forum
README 文档
README
What
Plugin for Saito-Forum. Adds Flattr button to postings and user profile page.
Install
Either clone/copy the files in this directory into app/Plugin/Flattr or using composer:
{
"require": {
"schlaefer/saito-flattr": "*"
}
}
Add new database-fields:
ALTER TABLE `users` ADD `flattr_uid` VARCHAR(24) NULL DEFAULT NULL; ALTER TABLE `users` ADD `flattr_allow_user` TINYINT(1) NULL DEFAULT NULL AFTER `flattr_uid`; ALTER TABLE `users` ADD `flattr_allow_posting` TINYINT(1) NULL DEFAULT NULL AFTER `flattr_allow_user`; ALTER TABLE `entries` ADD `flattr` TINYINT(1) NULL DEFAULT NULL;
Empty the cache in the admin panel to register the DB-changes.
Add to saito_config.php:
CakePlugin::load('Flattr', ['bootstrap' => true]);
Uninstall
Remove database-fields:
ALTER TABLE `users` DROP `flattr_allow_posting`; ALTER TABLE `users` DROP `flattr_allow_user`; ALTER TABLE `users` DROP `flattr_uid`; ALTER TABLE `entries` DROP `flattr`;
Empty the cache in the admin panel to register the DB-changes.
统计信息
- 总下载量: 200
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-02