Jump to content

Meza/Setting up a Cross-Site Notifications

From mediawiki.org
This capability is not yet correct. If you know how to implement this capability, please contribute what you know here.

Notes on setting-up Echo within a wiki family for cross-site notifications

In LocalSettings.php for each wiki add the lines:

$wgSharedDB = '<'''the name of the mariadb database you want to have all the notifications'''>'; 
$wgSharedTables[] = 'ipblocks';
$wgSharedTables[] = 'user_groups';
$wgSharedTables[] = 'interwiki';
$wgSharedTables[] = 'user_properties';

## Extension:Echo
wfLoadExtension( 'Echo' );
$wgEchoSharedTrackingDB = '<'''the name of the mariadb database you want to have all the notifications'''>';
$wgEchoUseJobQueue = true;
$wgEchoCrossWikiNotifications = true;
$wgEchoUseCrossWikiBetaFeature = true;
$wgDefaultUserOptions['echo-cross-wiki-notifications'] = true;

2. In the terminal:

sudo mysql -u'root' -p tCommons < /var/www/mediawiki/extensions/Echo/db_patches/echo_unread_wikis.sql
sudo php /var/www/mediawiki/maintenance/update.php --conf /var/www/each-wiki/LocalSettings.php

At this stage, you will receive cross-wiki notifications, but they are empty.

more work needs to be done on this capability

Ref: https://www.mediawiki.org/wiki/Topic:Ti052vw2gy2aeyho