Mejorar la imagen de GNU Social con Qvitter

En el audio de hoy, cortito y continuación del de GNUSocial, os cuento como he modificado GNUSocial para que sea como el mío de https://social.eduardocollado.com.

La idea es dejar GNUSocial como si fuera Twitter, un tema de twitter para GNUSocial.

En el directorio de plugins procedemos a clonar Qvitter

git clone https://github.com/hannesmannerheim/qvitter Qvitter

Y ahora añadiremos a config.php del directorio raíz:

<?php
if (!defined('GNUSOCIAL')) { exit(1); }

$config['site']['name'] = 'Titulo para la red';

$config['site']['server'] = 'xxxx.yy.com';
$config['site']['path'] = ''; 

$config['site']['ssl'] = 'always'; 

$config['site']['fancy'] = true;

$config['db']['database'] = 'mysqli://datosdemysql';

$config['db']['type'] = 'mysql';

$config['site']['theme'] = 'neo-quitter';

// Uncomment below for better performance. Just remember you must run
// php scripts/checkschema.php whenever your enabled plugins change!
// /opt/php-7.1/bin/php ./scripts/checkschema.php
$config['db']['schemacheck'] = 'script';

$config['site']['profile'] = 'singleuser';
$config['singleuser']['nickname'] = 'usuario';


    addPlugin(
        'TwitterBridge',
        array(
            'consumer_key'    => 'laquesea',
            'consumer_secret' => 'laquesea'
        )
    );


addPlugin('StoreRemoteMedia');


addPlugin('Qvitter');

// Qvitter-settings
$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'; // if your site is on HTTPS, use url to shortener.php here
$config['site']['qvitter']['urlshortenersignature'] = 'b6afeec983';
$config['site']['qvitter']['sitebackground'] = 'img/vagnsmossen.jpg';

$config['site']['qvitter']['favicon_path'] = Plugin::staticPath('Qvitter', '').'img/gnusocial-favicons/';
$config['site']['qvitter']['sprite'] = Plugin::staticPath('Qvitter', '').'img/sprite.png?v=40';
$config['site']['qvitter']['enablewelcometext'] = true;
// $config['site']['qvitter']['customwelcometext']['sv'] = '<h1>Välkommen till Quitter.se – en federerad<sup>1</sup> mikrobloggsallmänning!</h1><p>Etc etc...</p>';
// $config['site']['qvitter']['customwelcometext']['en'] = '<h1>Welcome to Quitter.se – a federated microblog common!</h1><p>Etc etc...</p>';
// $config['site']['qvitter']['customtermsofuse'] = 'Our custom terms of use';
$config['site']['qvitter']['customwelcometext']['es'] = '
Bienvenidos a <strong>xxxx.asdsadas.com</strong>, un nodo de GNU Social personal para mantener mis datos fuera del comercio de información.';

$config['site']['qvitter']['blocked_ips'] = array();

// Recommended GNU social settings
$config['thumbnail']['maxsize'] = 3000; // recommended setting to get more high-res image previews
$config['profile']['delete'] = true; // twitter users are used to being able to remove their accounts
$config['profile']['changenick'] = true; // twitter users are used to being able to change their nicknames
$config['public']['localonly'] = true; // only local users in the public timeline (qvitter always has a timeline for the whole known network)

addPlugin('StoreRemoteMedia'); // makes remote images appear in the feed

Y ya está, como veis es copiar y pegar básicamente.

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.