2013-08-19 22:30:57 +09:00
|
|
|
Qvitter
|
|
|
|
==========================================
|
|
|
|
|
|
|
|
* Author: Hannes Mannerheim (<h@nnesmannerhe.im>)
|
2015-05-27 03:07:43 +09:00
|
|
|
* Last mod.: May, 2015
|
2015-05-30 00:30:03 +09:00
|
|
|
* Version: 5-alpha
|
2013-08-19 22:30:57 +09:00
|
|
|
* GitHub: <https://github.com/hannesmannerheim/qvitter>
|
|
|
|
|
|
|
|
Qvitter is free software: you can redistribute it and / or modify it
|
|
|
|
under the terms of the GNU Affero General Public License as published by
|
|
|
|
the Free Software Foundation, either version three of the License or (at
|
|
|
|
your option) any later version.
|
|
|
|
|
|
|
|
Qvitter is distributed in hope that it will be useful but WITHOUT ANY
|
|
|
|
WARRANTY; without even the implied warranty of MERCHANTABILTY or FITNESS
|
|
|
|
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
|
|
|
|
more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with Qvitter. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
Setup
|
|
|
|
-----
|
|
|
|
|
2015-02-28 07:05:10 +09:00
|
|
|
1. Install GNU social
|
2013-08-19 22:30:57 +09:00
|
|
|
|
2014-05-14 16:46:07 +09:00
|
|
|
2. Put all files in /plugins/Qvitter
|
2013-09-03 01:13:15 +09:00
|
|
|
|
2014-05-16 11:26:10 +09:00
|
|
|
3. Replace your lib/apiauthaction.php file with the one supplied in
|
2015-02-04 22:44:04 +09:00
|
|
|
edited-gnu-social-files/lib/apiauthaction.php. (this might not be needed if you are
|
|
|
|
running the latest GNU social nightly)
|
2013-08-19 22:30:57 +09:00
|
|
|
|
2014-05-16 11:07:30 +09:00
|
|
|
4. Add `addPlugin('Qvitter');` to your /config.php file.
|
|
|
|
|
2015-01-24 00:28:41 +09:00
|
|
|
5. It's recommended to set this setting in your /config.php file: `$config['thumbnail']['maxsize'] = 3000;`
|
|
|
|
|
|
|
|
6. There are a few settings in /plugins/Qvitter/QvitterPlugin.php. By default Qvitter is
|
2014-05-14 16:46:07 +09:00
|
|
|
opt-out for users. If you set `$settings['enabledbydefault'] = false;` Qvitter will
|
|
|
|
be opt-in instead.
|
|
|
|
|
2015-01-24 00:28:41 +09:00
|
|
|
7. Users can go to ://{instance}/settings/qvitter and enable or disable Qvitter.
|
2014-05-14 16:46:07 +09:00
|
|
|
|
2014-11-28 05:04:41 +09:00
|
|
|
Optional
|
|
|
|
-----
|
|
|
|
|
|
|
|
For easy updates, you can use /config.php to override the settings in /plugins/Qvitter/QvitterPlugin.php.
|
|
|
|
For example, add this to your /config.php file:
|
|
|
|
|
2014-11-28 05:08:41 +09:00
|
|
|
````
|
|
|
|
// Qvitter-settings
|
2014-11-28 05:04:41 +09:00
|
|
|
$config['site']['qvitter']['enabledbydefault'] = true;
|
|
|
|
$config['site']['qvitter']['defaultbackgroundcolor'] = '#f4f4f4';
|
|
|
|
$config['site']['qvitter']['defaultlinkcolor'] = '#0084B4';
|
|
|
|
$config['site']['qvitter']['timebetweenpolling'] = 5000;
|
|
|
|
$config['site']['qvitter']['urlshortenerapiurl'] = 'http://qttr.at/yourls-api.php';
|
|
|
|
$config['site']['qvitter']['urlshortenersignature'] = 'b6afeec983';
|
2015-01-24 00:28:41 +09:00
|
|
|
$config['site']['qvitter']['sitebackground'] = 'img/vagnsmossen.jpg';
|
2015-01-28 05:22:17 +09:00
|
|
|
$config['site']['qvitter']['favicon'] = 'img/favicon.ico?v=4';
|
2015-02-05 05:40:56 +09:00
|
|
|
$config['site']['qvitter']['enablewelcometext'] = true;
|
2015-02-04 22:44:04 +09:00
|
|
|
$config['site']['qvitter']['blocked_ips'] = array();
|
2015-01-24 00:28:41 +09:00
|
|
|
$config['thumbnail']['maxsize'] = 3000;
|
2014-11-28 05:07:38 +09:00
|
|
|
````
|
2014-11-28 05:04:41 +09:00
|
|
|
|
2015-05-27 03:07:43 +09:00
|
|
|
Note: This version of Qvitter is tested with GNU social version 1.1.1-alpha2 (7e47026085fa4f2071e694d9c3e3fe2aa5142135).
|