Расширение:SocialProfile
Расширение SocialProfile встраивает в MediaWiki социальный профиль, user board и основную информацию профиля, в частности, аватары, друзей, недругов, user board, board blast, систему рангов уровней пользователя, награды и подарки. Пакет также уведомляет пользователей по электронной почте, когда другие пользователи отправляют запросы по добавлению их в друзей или недругов и/или отправляют им сообщение.
- За технической документацией (если вы системный администратор) обратитесь к Extension:SocialProfile/Technical documentation .
- За информацией для разработчиков обратитесь к Extension:SocialProfile/Developer information .
- За помощью по использованию SocialProfile обратитесь к Help:Extension:SocialProfile (сейчас в черновике).
Установка
- If you use the ExtensionDistributor to download SocialProfile, make sure that you select "master (latest development version)"; older versions are guaranteed to have lots of bugs and they are unmaintained, while master is always up-to-date and contains the newest features and bugfixes!
- You can also use git, like so:
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/SocialProfile
- Download the master branch и распакуйте файл(ы) в папку с названием
SocialProfile
в вашей папкеextensions/
. - Добавьте следующий код внизу вашего
LocalSettings.php
:require_once "$IP/extensions/SocialProfile/SocialProfile.php";
- Выполните скрипт обновления, который автоматически создаст необходимые таблицы, используемые расширением.
- The following directories should exist under the wiki's
$wgUploadDirectory
:
avatars/
— The directory where all user-uploaded avatar images are storedawards/
— System gift (award) and normal gift images will be stored here
- Move the directory
awards/
fromextensions/SocialProfile
into the images directory that is used in your MediaWiki installation.
- Move the directory
This directory should be writable. The images included in this folder by default can be used for awards if you upload them through Special:SystemGiftManagerLogo, but they won't show up as "defaults" the same way avatar default images do show up.
- Move the directory
avatars
fromextensions/SocialProfile
into the images directory used in your MediaWiki installation.
- Move the directory
This directory should be writable.
Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.
Parser functions
- {{#avatar:Username}} - retrieves the avatar picture for the specified user.
- {{#randomuserswithavatars}}
- {{#newusers}}
User Options
- echo-subscriptions-web-social-rel (requires Echo extension installed)
- echo-subscriptions-email-social-rel (requires Echo extension installed)
Configuration variables
$wgUserProfileDisplay['board'] = true;
$wgUserProfileDisplay['foes'] = true;
$wgUserProfileDisplay['friends'] = true;
$wgUserProfileDisplay['avatar'] = true; // If set to false, disables both avatar display and upload
$wgUserBoard = true;
$wgFriendingEnabled = true;
$wgAvatarKey = $wgDBname;
$wgUserPageChoice = true;
$wgUserProfileAvatarsInDiffs = true;
Примечания
- Upgrading - If you are upgrading from SocialProfile version 1.2 or older, you'll need to create four new database tables manually:
gift
,system_gift
,user_gift
,user_system_gift
.
If you're upgrading from 1.3, you'll need to create user_system_messages
database table.
- Since r93317, SocialProfile's namespaces are automagically registered, so you do not need to add them to
$wgExtraNamespaces
.
- SocialProfile uses either ImageMagick or PHP's built-in GD library (since r93067), depending on which one is available, for creating the resized avatar, award and gift image files.
Сообщение о багах
Снимки экрана
- Extension:SocialProfile/Screenshots - For screenshots of the extension and some very brief descriptions of the features.
![]() | Это расширение включено в следующие пакеты и/или вики-фермы: This is not an authoritative list. Some wiki farms/hosts may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
- Stable extensions/ru
- Special page extensions/ru
- Database extensions/ru
- Ajax extensions/ru
- GPL licensed extensions/ru
- Extensions in Wikimedia version control/ru
- Extensions which add rights/ru
- BeforePageDisplay extensions/ru
- CanonicalNamespaces extensions/ru
- LoadExtensionSchemaUpdates extensions/ru
- BeforeCreateEchoEvent extensions/ru
- EchoGetDefaultNotifiedUsers extensions/ru
- EchoGetBundleRules extensions/ru
- ParserFirstCallInit extensions/ru
- DifferenceEngineShowDiff extensions/ru
- DifferenceEngineShowDiffPage extensions/ru
- DifferenceEngineOldHeader extensions/ru
- DifferenceEngineNewHeader extensions/ru
- OutputPageBodyAttributes extensions/ru
- All extensions/ru
- Social tools/ru
- Extensions included in Canasta/ru
- Extensions included in Miraheze/ru
- Extensions included in MyWikis/ru
- Extensions by Fandom/ru