افزونه: اکو
There is a stalled attempt to move this functionality into core MediaWiki; for more information, see آگاهسازیها and Requests for comment/Notifications in core. |
Notifications وضعیت انتشار: پایدار |
|
---|---|
انجام | Notify |
توضیحات | یک سیستم اطلاع رسانی درون-ویکی را ارائه میدهد که میتواند توسط افزونههای دیگر استفاده شود. |
نویسنده(گان) | |
آخرین نسخه: | بهروزرسانیهای پیوسته |
سیاست سازگاری | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | >= 1.43 |
تغییر پایگاه داده | بله |
جدولها | echo_email_batch echo_event echo_notification echo_subscription echo_target_page echo_push_provider echo_push_subscription echo_push_topic echo_unread_wikis |
مجوز | MIT License |
بارگیری | |
|
|
|
|
|
|
Quarterly downloads | 128 (Ranked 45th) |
Public wikis using | 2,698 (Ranked 187th) |
Translate the Echo extension if it is available at translatewiki.net | |
Issues | Open tasks · گزارش یک مشکل |
افزونهٔ اکو یک سیستم اعلان درون-ویکی را ارائه میدهد که میتواند توسط سایر افزونهها استفاده شود. Thanks و ابزارهای بحث و گفتگو دو افزونهٔ مدیاویکی هستند که از پژواک استفاده میکنند.
راهاندازی
- به کاربر پایگاه داده باید حق «مرجع» برای پایگاه داده اعطا شده باشد. How you check this depends on how you set up the database in the first place. For example, if you used a control panel application, then that interface should provide a way to check and change the privileges of the database user (
$wgDBuser
in LocalSettings.php ). - Download and move the extracted
Echo
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo - کد زیر را در انتهای $LocalSettings خودتان اضافه کنید:
wfLoadExtension( 'Echo' );
- اسکریپت بهروزرسانی اجرا کنید تا به طور خودکار جدولهای پایگاه دادهها ضروری که این افزونه نیازمند دارد را ایجاد کند.
- If necessary configure at your convenience
- انجام شد – به Special:Version در ویکی خودتان بروید تا مطئمن شوید که افزونه با موفقیت نصب شده است.
برای اجازه دادن به اعلانهای خلاصه روزانه یا هفتگی برای ارسال از طریق پست (برای کاربرانی که آن را در تنظیمات برگزیده انتخاب میکنند)، اسکریپت زیر در فهرست برنامه افزودنی اکو باید به صورت روزانه اجرا شود، که میتواند در یک کار cron برنامهریزی شود:
maintenance/processEchoEmailBatch.php
پیکربندی
It is possible to use conditional user options to set different notification preferences for new users, without affecting existing users.
See Special:DisplayNotificationsConfiguration for local details.
پارامترها
Parameter | Default | Comment |
---|---|---|
$wgEchoEnableEmailBatch
|
true
|
Whether to turn on email batch function |
$wgEchoUseJobQueue
|
false
|
|
$wgEchoEmailFooterAddress
|
'' | The organization address (or whatever text you want to appear in the footer of the email notifications). Should be defined in LocalSettings.php |
$wgNotificationSender
|
$wgPasswordSender
|
The email address for both "from" and "reply to" on email notifications. Should be defined in LocalSettings.php |
$wgNotificationSenderName
|
"emailsender" message (MediaWiki) | Name for "from" on email notifications. Should be defined in LocalSettings.php |
$wgNotificationReplyName
|
No Reply | Name for "reply to" on email notifications. Should be defined in LocalSettings.php |
$wgEchoCluster
|
false
|
Use the main db if this is set to false, to use a specific external db, just use any key defined in $wgExternalServers |
$wgEchoSharedTrackingDB
|
false
|
Shared database to use for keeping track of cross-wiki unread notifications; false to not keep track of it at all |
$wgEchoSharedTrackingCluster
|
false
|
Cluster the shared tracking database is located on; false if it is on the main one. Must be a key defined in $wgExternalServers |
$wgEchoMaxUpdateCount
|
2000 | The max number of notifications allowed for a user to do a live update, this is also the number of max notifications allowed for a user to have. |
$wgEchoMaxMentionsCount
|
50 | The max number of mention notifications allowed for a user to send at once |
$wgEchoMentionStatusNotifications
|
false
|
Enable mention success/failure notifications |
$wgEchoMentionsOnMultipleSectionEdits
|
true
|
Trigger mentions for multiple-section edits |
$wgEchoMentionOnChanges
|
true
|
Trigger mentions for edits to existing comments, as long as a signature is added in the same section |
$wgEchoMaxMentionsInEditSummary
|
0 | Maximum number of users that will be notified that they were linked from an edit summary or 0 for no notifications |
$wgEchoBundleEmailInterval
|
0 | The time interval between each bundle email in seconds; set a small number for test wikis. This should be set to 0 to disable email bundling if there is no delay queue support |
$wgEchoNewMsgAlert
|
true
|
Whether or not to enable a new talk page message alert for logged in users. |
$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,
],
]
|
Define which notify types are available for each notification category. If any notify types are omitted, it defaults to $wgDefaultNotifyTypeAvailability. |
$wgEchoNotifiers
|
[
'web' => [ 'EchoNotifier', 'notifyWithNotification' ],
'email' => [ 'EchoNotifier', 'notifyWithEmail' ],
]
|
Definitions of the different types of notification delivery that are possible. Each definition consists of a class name and a function name. See also EchoNotificationController class. |
$wgEchoAgentBlacklist
|
[] | List of usernames which will not trigger notifications |
$wgEchoOnWikiBlacklist
|
Echo-blacklist | Page location of community maintained blacklist within NS_MEDIAWIKI containing one username per line which will not trigger notifications. Set to null to disable. |
$wgEchoPerUserWhitelistFormat
|
%s/Echo-whitelist | An sprintf format of the location of the per-user notification agent whitelist within the NS_USER namespace. %s will be replaced with the users name. The whitelists must contain one username per line which will always trigger notifications regardless of their existence in the blacklists. Set to null to disable.
|
$wgEchoCrossWikiNotifications
|
false
|
Whether to enable the cross-wiki notifications feature. To enable this feature you need to:
|
$wgEchoUseCrossWikiBetaFeature
|
false
|
Feature flag for the cross-wiki notifications beta feature
If this is This does not control whether cross-wiki notifications are enabled by default.
For that, use |
$wgEchoNotificationCategories
|
See extension.json | Define the categories that notifications can belong to. Categories can be assigned the following parameters. All parameters are optional:
اگر یک نوع اعلانها پارامتر دستهبندی نداشته باشد، بهطور خودکار به دسته |
$wgEchoNotificationIcons
|
See extension.json | Defines icons, which are 30x30 images. This is passed to BeforeCreateEchoEvent so extensions can define their own icons with the same structure. It is recommended that extensions prefix their icon key. An example is myextension-name. This will help avoid namespace conflicts.
You can use either a path or a url, but not both. The value of 'path' is relative to The value of 'url' should be a URL. You should customize the site icon URL, which is: |
$wgEchoNotifications
|
See extension.json | Define the event types for echo. Event definitions are in the form of 'event-name' => [ ... ].
|
$wgEchoConfig
|
See extension.json | Configuration for EventLogging. Individual schemas can be disabled. |
$wgEchoPerUserBlacklist
|
null
|
Boolean that enabled Per User Blacklist. |
ترجیحات کاربر
Preference | Default | Comment |
---|---|---|
$wgDefaultUserOptions['echo-email-frequency']
|
0 | How often to send emails, by default:
|
$wgDefaultUserOptions['echo-email-format']
|
Depends on $wgAllowHTMLEmail
|
Default user preference for whether to use HTML or text email. Either html or plain-text .
|
$wgDefaultUserOptions["echo-subscriptions-email-{$category}"]
|
false for most categories; depends
|
Default user preference for whether to notify via email for a particular category |
$wgDefaultUserOptions["echo-subscriptions-web-{$category}"]
|
true for most categories; depends
|
Default user preference for whether to notify via web for a particular category |
معماری
به بخش معماری صفحه ویژگی مراجعه کنید.
استفاده
Notification negative list / positive list
There are occasionally specific users, typically bots, which perform maintenance tasks that should not generate notifications. برای رسیدگی به این موارد، کاربران میتوانند به صورت سراسری از فایل LocalSettings.php (یا InitialiseSettings.php در مورد ویکیهای WMF) در لیست سیاه قرار گیرند:
$wgEchoAgentBlacklist = [ 'SampleBot', 'SampleUser' ];
There is also an on-wiki blacklist that can be maintained by the wiki's community. The location of the global on-wiki blacklist defaults to MediaWiki:Echo-blacklist. Individual users can override the blacklist by creating a whitelist. The whitelist location defaults to Special:MyPage/Echo-whitelist. All on-wiki lists expect to receive one case-specific username per line with no special markup or prefixes. For example:
SampleBot SampleUser
"Mention" option
One of the notification types that this extension allows is: "Notify me when someone links to my user page." ممکن است برای برخی از کاربران واضح نباشد، اما این اعلان خاص تنها زمانی کار میکند که شخصی که به صفحه کاربر دیگر پیوند میدهد، (~~~~) پست را نیز امضا کند.
After installation of the extension, a new tab "Notifications" is created in a user's Special:Preferences page. در قسمت «اطلاع رسانی به من در مورد این رویدادها»، در مقابل گزینه «اشاره»، هاورباکس میگوید: «وقتی شخصی به صفحه کاربری من لینک داد، به من اطلاع بده». اگر مدیری احساس میکند که شرط امضای پست در این متن راهنما واضح نیست، میتوان آن را با تغییر متن در صفحه MediaWiki:Echo-pref-tooltip-mention ویکی اصلاح کرد.
واژه شناسی
- notification - Any individual notice that is delivered by Echo
- message - A notification about activity in a Flow discussion
- alert - Any notification other than a message
همچنین ببینید
- Notifications/API
- Manual:Echo - برای جزئیات در مورد الزامات اشاره
- Extension:Echo/Creating a new notification type (کنونی)
- Notifications/Developer_guide (منسوخ شده)
این افزونه در یکی یا بیشتر پروژههای ویکیمدیا استفاده شده است. این احتمالاً به این معنی است که افزونه پایدار است و به اندازه کافی برای استفاده توسط وبسایتهای ترافیک-بالا به خوبی کار میکند. برای نام این افزونه در پروندههای پیکربندی CommonSettings.php و InitialiseSettings.php ویکیمدیا بگردید تا جایی که آنها نصب شده را ببینید. یک فهرست کامل از افزونهها نصبشده روی یک ویکی مشخص را میتوان در صفحۀ Special:Version دید. |
This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
- Extensions bundled with MediaWiki 1.40/fa
- Stable extensions/fa
- Notification extensions/fa
- MIT licensed extensions/fa
- Extensions in Wikimedia version control/fa
- AbortTalkPageEmailNotification extensions/fa
- ApiMain::moduleManager extensions/fa
- ArticleDeleteComplete extensions/fa
- ArticleUndelete extensions/fa
- BeforePageDisplay extensions/fa
- EmailUserComplete extensions/fa
- GetNewMessagesAlert extensions/fa
- GetPreferences extensions/fa
- LinksUpdateComplete extensions/fa
- LoadExtensionSchemaUpdates extensions/fa
- LoadUserOptions extensions/fa
- LocalUserCreated extensions/fa
- LoginFormValidErrorMessages extensions/fa
- MergeAccountFromTo extensions/fa
- OutputPageCheckLastModified extensions/fa
- PageSaveComplete extensions/fa
- PreferencesGetIcon extensions/fa
- RecentChange save extensions/fa
- ResourceLoaderRegisterModules extensions/fa
- RollbackComplete extensions/fa
- SaveUserOptions extensions/fa
- SendWatchlistEmailNotification extensions/fa
- SkinTemplateNavigation::Universal extensions/fa
- SpecialMuteModifyFormFields extensions/fa
- UserClearNewTalkNotification extensions/fa
- UserGetDefaultOptions extensions/fa
- UserGroupsChanged extensions/fa
- UserMergeAccountDeleteTables extensions/fa
- UserMergeAccountFields extensions/fa
- UserSaveSettings extensions/fa
- All extensions/fa
- Extensions used on Wikimedia/fa
- Extensions included in BlueSpice/fa
- Extensions included in Canasta/fa
- Extensions included in Miraheze/fa
- Extensions included in MyWikis/fa
- Extensions included in ProWiki/fa
- Extensions included in semantic::core/fa
- Extensions included in ShoutWiki/fa
- Extensions included in Telepedia/fa
- Extensions included in wiki.gg/fa
- Extensions included in WikiForge/fa
- Echo/fa