Open krabina opened 4 years ago
Furthermore it is in my experience not necessary to edit the domain: entry in the shariff-backend/index.php
If anybody wants a version with all working services enabled, you can use this (and easily eliminate all you don't want):
$output = '<div class="shariff noprint" data-lang="$wgLanguageCode" data-backend-url="'.$wgScriptPath.'/extensions/Shariff/shariff-backend/" data-services="[ "addthis", "diaspora", "facebook", "flattr", "flipboard", "linkedin", "mail", "pinterest", "print", "qzone", "reddit", "stumbleupon", "telegram", "tencent-weibo", "threema", "tumblr", "twitter", "vk", "weibo", "whatsapp", "xing", "info" ]"></div>';
for me it is unclear how to enable/disable services.
The documentation says to edit https://github.com/vonloxley/Shariff-Mediawiki/blob/d220040068bafa80f456b2ecb79e0d3772dbbbfc/shariff-backend/index.php#L25-L27
But this does not change anything as it is hardcoded here: https://github.com/vonloxley/Shariff-Mediawiki/blob/d220040068bafa80f456b2ecb79e0d3772dbbbfc/Shariff.php#L39
Changing the entry in Shariff.php works, but there should preferrably be a configuration variable for LocalSettings.php