FANDOM


ExtendedPrivateMessaging adds additional features to Special:Chat, including easily-accessible group private messaging and alerts when users block and unblock you.

The screenshot shows the group PM creation screen, that dims the whole page (but doesn't render it unusable) except the help tooltip and userlist. You can also see in the background the (configurable) icon used for group private messages, and modified header to include all members.

Features

  • Intuitive group chat creation.
  • Stable group messages with editable group chat names.
  • Inline alerts a user you have a private message with blocks your messages.
  • Several bug fixes from vanilla Special:Chat.
  • (optional) Responsive group icons, depending on group members.

Installing

Add the following to your wiki's MediaWiki:Chat.js or your personal chat.js.

importScriptPage('MediaWiki:ExtendedPrivateMessaging/code.js', 'dev');

Or if you already have an importArticles call you can add this:

importArticles({
    type: "script",
    articles: [
        // Other scripts...
        "u:dev:MediaWiki:ExtendedPrivateMessaging/code.js",
        // ...
    ]
});

Customization

All variables are stored in the ExtendedPrivateMessaging object, which must be defined before the importArticles statement.

groupIcon
This is a string of a publicly available image to be used in place of the first avatar in the group list. Please keep this image to 30px in height and width. Default: https://i.imgur.com/Ib3A8Nl.png
enableExperimentalGroupIcons
This can be a boolean (or any truthy/falsey value for the matter) that will define whether or not to use group icons with user avatars. Default: false

Example:

var ExtendedPrivateMessaging = {
    groupIcon: 'https://i.imgur.com/ulaOCLw.png', // Might be more fit for wikis with dark themes than the default icon
    enableExperimentalGroupIcons: 'Hell yeah!'
};

Localization

Help translate the script here.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.