vonloxley / Shariff-Mediawiki

A mediawiki-extension for Shariff, protecting users privacy.
4 stars 4 forks source link

Unclear how to enable/disable services #5

Open krabina opened 4 years ago

krabina commented 4 years ago

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

krabina commented 4 years ago

Furthermore it is in my experience not necessary to edit the domain: entry in the shariff-backend/index.php

krabina commented 4 years ago

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="[ &quot;addthis&quot;, &quot;diaspora&quot;, &quot;facebook&quot;, &quot;flattr&quot;, &quot;flipboard&quot;, &quot;linkedin&quot;, &quot;mail&quot;, &quot;pinterest&quot;, &quot;print&quot;, &quot;qzone&quot;, &quot;reddit&quot;, &quot;stumbleupon&quot;, &quot;telegram&quot;, &quot;tencent-weibo&quot;, &quot;threema&quot;, &quot;tumblr&quot;, &quot;twitter&quot;, &quot;vk&quot;, &quot;weibo&quot;, &quot;whatsapp&quot;, &quot;xing&quot;, &quot;info&quot; ]"></div>';