Topic on Extension talk:Echo

Changing user preferences? How to?

6
Kghbln (talkcontribs)

I have no clue how to set user preferences, e.g. I want to set e-mails for mentions by default. Both

$wgDefaultUserOptions['echo-subscriptions-email-mention'] = 1;

or

$wgDefaultUserOptions['echo-subscriptions-email-mention'] = true;

fail gloriously.

MSchottlender-WMF (talkcontribs)

You should be able to set that in "Preferences", under the "Notifications" tab. There's a matrix of checkboxes dictating which type of notification you wish to get via the web popup and/or email.

Kghbln (talkcontribs)

Thanks for your reply. I am aware of this and I already changed my preferences.

However I still do not know how to change the defaults for all new users that will be registering on the wiki without requiring them to got to their preferences to change them accordingly.

Sokote zaman (talkcontribs)

I have the same problem.

Lens0021 (talkcontribs)

Have you tried to create a new account after changing $wgDefaultUserOptions? Existing user accounts who had the (previous) default option and didn't set it explicitly (which means that it's not stored in the database) will then use the new default. Or simply press the "Restore all default settings (in all sections)" button? Because $wgDefaultUserOptions['echo-subscriptions-email-mention'] = true; works for me.

Sokote zaman (talkcontribs)

tnakyou

wfLoadExtension( 'Echo' ); #NOT Complate configrations--->>>

$wgEchoEnableEmailBatch = true;

$wgEchoUseJobQueue = true;

$wgEchoBundleEmailInterval = "3";

$wgEchoEmailFooterAddress = 'ویکی‌کد: دانشنامه جامع زبان‌های برنامه‌نویسی در ایران';

#$wgNotificationSender = xxxxxxxxxxxxxxxxxxxxxxxxxx

#$wgNotificationSenderName = xxxxxxxxxxxxxxxxxxxxxxxxxx

#$wgNotificationReplyName = xxxxxxxxxxxxxxxxxxxxxxxxxx

$wgEchoCluster = false;

$wgEchoMaxUpdateCount = "2000";

$wgEchoMaxMentionsCount = "500";

$wgEchoMentionStatusNotifications = false;

$wgEchoMentionsOnMultipleSectionEdits = true;

$wgEchoMentionOnChanges = true;

$wgEchoMaxMentionsInEditSummary = "10000";

$wgEchoNewMsgAlert = true;

$wgEchoShowFooterNotice = false;

#$wgEchoFooterNoticeURL = '';

$wgNotifyTypeAvailabilityByCategory = [

    // Otherwise, a user->user email could trigger an additional redundant notification email.

    'emailuser' => [

        'web' => true,

        'email' => false,

    ],

    'mention-failure' => [

        'web' => true,

        'email' => false,

    ],

    'mention-success' => [

        'web' => true,

        'email' => false,

    ],

];

$wgEchoNotifiers = [

    'web' => [ 'EchoNotifier', 'notifyWithNotification' ],

    'email' => [ 'EchoNotifier', 'notifyWithEmail' ],

];

#$wgEchoOnWikiBlacklist = xxxxxxxxxxxxxxxxxxxxxxxxxx

#$wgEchoPerUserWhitelistFormat = xxxxxxxxxxxxxxxxxxxxxxxxxx

$wgEchoCrossWikiNotifications = false;

$wgEchoUseCrossWikiBetaFeature = false;

#$wgEchoNotificationCategories = xxxxxxxxxxxxxxxxxxxxxxxxxx

$wgDefaultUserOptions['echo-show-alert'] = true;

$wgDefaultUserOptions['echo-email-frequency'] = "0";

$wgDefaultUserOptions['echo-dismiss-feedback-alert'] = "0";

$wgDefaultUserOptions['echo-email-format'] = "HTML";

#$wgDefaultUserOptions["echo-subscriptions-email-{$category}"] = xxxxxxxxxxxxxxxxxxxxxxxxxx

#$wgDefaultUserOptions["echo-subscriptions-web-{$category}"] = xxxxxxxxxxxxxxxxxxxxxxxxxx

#$wgEchoConfig = xxxxxxxxxxxxxxxxxxxxxxxxxx

#$wgEchoConfig = xxxxxxxxxxxxxxxxxxxxxxxxxx

$wgDefaultUserOptions['echo-subscriptions-email-mention'] = true;

Reply to "Changing user preferences? How to?"